PDA

View Full Version : Custom Apache Build System


Pages : [1] 2

DirectAdmin Support
06-19-2003, 08:50 PM
Hello all,

This thread holds information about our customapache build script. It allows everyone to rebuild apache easily and customize php more easily.

Comes with:
Apache 1.3.33
mod_ssl 2.8.22
mod_perl 1.29
php 4.3.11
zend 2.5.7
gd 2.0.33
libjpeg 6b
libpng 1.2.7
libmcrypt 2.5.7
zlib 1.2.1
curl 7.12.3
mod_frontpage 1.6.1
Frontpage 5.0.2.2510
mhash 0.9.1
zzip 0.10.82

As root, type:cd /usr/local/directadmin
mkdir customapache
cd customapache
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build all



And if you want to have Zend, after the whole thing finishes, type:
./build zend

and answer all questions.
Zend install = /usr/local/Zend
php.ini = /usr/local/lib
Apache config dir = /etc/httpd/conf
php = 4.3.9
apache bin = /usr/sbin

it will try to restart the server, which might fail, so type
service httpd restart

I've tested it on my box at home, and our test box. Let me know how it goes for you guys. Takes about 15 minutes on a 750Mhz.

You can have a look at the <? phpinfo(); ?> that it will produce here:
http://files.directadmin.com/info.php

If you have any comments on the default ./configure for apache and php, I'd love to hear them.

Thanks,

John

Two_A_T
06-19-2003, 08:59 PM
Nice!

Although I think I'll wait for a non-beta :) Guess I'm too cautious LOL

Great job again John!

ProWebUK
06-20-2003, 01:26 AM
:( still no box to try it out on yet :(

DirectAdmin Support
06-20-2003, 01:28 AM
Its 1:30am local time here, I'm going to run it on this server.

(In case anyone wonders why apache is dead for 15 minutes or so)

John

DirectAdmin Support
06-20-2003, 01:45 AM
Success!

That was actually very painless.

DirectAdmin's Task Queue sent me an email telling me that httpd was down, right on queue. :)

Total httpd downtime: 9 minutes 20 seconds
Thats with running "./build zend" seperately. If you are reading this, you know it worked ;)

I'll continue to monitor the server to see if anything is missing/broken, but everything seems to be perfect at the momment :)

John

ProWebUK
06-20-2003, 01:56 AM
missed the note by a few minutes :P sounds ok though

Chris

StingRay
06-20-2003, 11:46 AM
A few comments on the PHP info. (comparing it to one of mine)

- variables_order = GPCS (what about EGPCS?)
- Max Requests = Per Child: 1000 - Keep Alive: off - Max Per Connection: 100 (or Per Child: 0 - Keep Alive: on - Max Per Connection: 100 )

PHP config missing.
- bcmath
- calendar
- imap
- mcrypt (very important)
- pear

DirectAdmin Support
06-20-2003, 11:53 AM
Hello,

I'll look at the options you've included. Keep in mind that you can add any configure options you want with this script.

John

jlasman
06-20-2003, 01:39 PM
John,

Just my us$0.02 worth...

My suggestion is you should include all the php options people might possibly want in your base install, unless you see some kind of security issue...

the reason being that if everyone's base apache/php install is subtly different you may have problems with support later.

Just my us$0.02.

Jeff

The Prohacker
06-20-2003, 01:58 PM
Originally posted by jlasman
My suggestion is you should include all the php options people might possibly want in your base install, unless you see some kind of security issue...


The only big problem with including everything is that the more options you compile into PHP the larger the binary will be and the more ram it will use..

Adding in 10-15 more options wouldn't really hurt it.. But you can't support everything...

On a dev box where speed doesn't really mater this is my configure line:

'../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=php' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--disable-debug' '--enable-memory-limit' '--with-layout=GNU' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-exec-dir=/usr/lib/php4/libexec' '--disable-static' '--with-curl=shared,/usr' '--with-dom=shared,/usr' '--with-dom-xslt=shared,/usr' '--with-dom-exslt=shared,/usr' '--with-zlib-dir=/usr' '--with-gd=shared,/usr' '--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr' '--with-imap-ssl' '--with-ldap=shared,/usr' '--with-mcal=shared,/usr' '--with-mhash=shared,/usr' '--with-mm' '--with-mysql=shared,/usr' '--with-unixODBC=shared,/usr' '--with-recode=shared,/usr' '--enable-xslt' '--with-xslt-sablot=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr'


While on production servers its mainly:

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-kerberos' '--with-mcrypt' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-zlib'


Not all modules get along with each other that well..


Also DA doesn't directly use PHP so its compilation shouldn't add to much of a support differnce, and if there is a problem, the user can just be instructed to do a stock recompile and fix it all...

DirectAdmin Support
06-20-2003, 03:36 PM
Ok, I've added another pile of php configure options.

have a look:

http://files.directadmin.com/info.php

Also, we've tested the script on quite a few servers now... should be removing its beta status shortly.

John


The info.php above no longer shows *as* many things (gd etc) because I've recompiled it without. The customapache does include them, just make sure you have libjpeg and libpng

TAH-Max
06-30-2003, 03:47 PM
Wow.... DirectAdmin is like cPanel except without the bugs, flaws and security issues. I got DirectAdmin about an hour ago, and although it was a PAIN to install (kept having issues where it was downloading update.tar.gz but it was fake because it was about 59k :D) I can see I'm going to love this thing. :D... DirectAdmin Support I haven't seen an ad for DirectAdmin around. Contact me on max.tappenden@victa.freeserve.co.uk to arrange some free advertising...you deserve it my friend :)

ProWebUK
06-30-2003, 03:56 PM
more than deserve it :D

Two_A_T
06-30-2003, 04:52 PM
I gave them unlimited free banner rotations on my auction site but that doesn't do them justice since the site's new!

Glad to see others spreading the word too!

TAH-Max
06-30-2003, 04:55 PM
My site is very new (27th June) but I have many things going on with it and within a month I'm expecting 150+ members :D It's a forum related to hosting/business/programming/design etc. I've basically offered them 1000 views / week in the rotation and will upgrade it quickly as the site grows :D

ProWebUK
06-30-2003, 05:12 PM
none of my personal sites have got high traffic :(

DirectAdmin Support
07-03-2003, 09:30 AM
Hello,

I've updated custom apache to include libjpeg, libpng and zlib. Most servers already have them installed, but for the ones that don't, this will make your life much easier ;)

For existing customapache users who don't currently have gd installed, from your customapache dir type,

rm configure.php
./build update
./build php

to get all of the new features. Everyone else just follow the steps in the first post as usual.

John

jlasman
07-03-2003, 10:31 AM
Ive just printed out this entire thread and I'm going to try it on the server this long holiday (here in the US) weekend. I've never did a custom php install before; we just pay Plesk to do it for us.

So I guess there's a time to try it out :) .

What's customapache? Have I missed something?

Jeff

DirectAdmin Support
07-03-2003, 10:46 AM
Customapache is just what we're calling the whole jumble of software. It's custom becuase you can edit the configure.* files to set up the programs anyway you wish (experts only, you must ensure you have required libraries if you can the configure.* files).

Most people will just run ./build all, and not change anything.

John

TAH-Max
07-04-2003, 08:09 AM
Yeah that's what I did, and then ./build zend

It's great

http://66.28.214.169/info.php -- default PHP config with ./build zend also

DirectAdmin Support
07-10-2003, 02:46 PM
Some people don't have openssl-devel installed which will prevent the customapache script from compiling. To check if you have it, run:

rpm -q openssl-devel

to install it, run:

up2date -u openssl-devel

then run the ./build all program again.

Also, if you have an older version of customapache, you may have outdated versions of the configure.* files (unless you've customized them). It's recommended that you delete both configure.* files then run ./build update before building again.

John

Quincy
07-18-2003, 09:21 PM
make[2]: *** [wbmp.lo] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/gd-2.0.15'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/customapache/gd-2.0.15'
make: *** [all] Error 2


Wut's Up? :mad:

DirectAdmin Support
07-18-2003, 09:54 PM
Hello,

The error is probably shown farther up in the compile text -- what you pasted isn't able to help me determine your problem.

Solving it via the forum is generally quite difficult, so send us your ip and root password, and we'll be able to help you out. :)

John

Quincy
07-19-2003, 09:49 AM
What's your email to send my information to?

DirectAdmin Sales
07-19-2003, 09:50 AM
support@directadmin.com

or

https://www.directadmin.com/clients/safesubmit.php

DirectAdmin Support
07-22-2003, 03:32 PM
Hello,

The customapache script now support apache 1.3.28 and mod_ssl 2.8.15.

You must change your configure.apache_ssl file to have 1.3.28 instead of 1.3.27, or you can just delete the file. Deletion is easiest.

To update:

cd /usr/local/directadmin/customapache
rm configure.* (manually edit configure.apache_ssl if you have it customized)
./build clean
./build update
./build all


This was probably mentioned before, but some people run into some problems with the script. Normally, they don't have openssl-devel or patch. To install them, run:

up2date -u patch
up2date -u openssl-devel

John

Clearhosting
07-31-2003, 03:25 AM
Hello all, i had a question because i am a total noob.
Im buying 2 new servers and i always paid someone to update and configure my servers for me now i want to save money by switching from ensim to DA and i had some questions:

Whats the step through plan like this:
1. Install linux (wich version) we now have redhat 7.3
2. Install custom apache from this post
3. install DA

Am i done installing then ? or what ? Well as i said total noob questions :):o

DirectAdmin Support
07-31-2003, 09:10 AM
All that is required for DirectAdmin is a fresh install of Redhat *without* any other control panels on it. You can install any of Redhat 7.2,7.3 or 8.0.

We will do the installation for you, so you don't need to worry about how to do it.

John

http://www.directadmin.com/installguide.html

Clearhosting
08-02-2003, 07:47 AM
Do you guys also install zend etc. ?

And do you guys install a theme as well ?

DirectAdmin Support
08-02-2003, 01:11 PM
Hello,

Zend is built into the package, but is not included with the ./build all command. You can just run ./build zend to install it. Follow the directions at the begging of this thread for answers to the questions it asks.

John

ProWebUK
08-27-2003, 05:23 PM
just thought i'd mention php is now at 4.3.3 stable :)

updated all our current plesk / ensim servers to 4.3.3 and everything running fine, may want to update the script to include 4.3.3 over 4.3.2 :D

Chris

DirectAdmin Support
08-27-2003, 06:21 PM
Thanks for the info.

Anyone who wants the new php can simply type:cd /usr/local/directadmin/customapache
./build update
./build phpand press 'n' for recompiling the other libraries.

John

Dixiesys
09-06-2003, 09:26 PM
Am I correct in assuming these php updates are part of the latest version?

Everything I check seems to indicate the versions match so I'm just checking :)

DirectAdmin Support
09-07-2003, 12:32 AM
Hello,

Yes, that's the beauty of the customapache script. All I do is upload the new php tar.gz file, change the version # in the build script, and let people know there is an update and to run ./build update; ./build all (or ./build php for php). This allows all systems, on any OS, to be kept updated quite easily.

John

ctnchris
09-22-2003, 01:29 PM
Would doing this recompile gd to have freetype font support?

DirectAdmin Support
09-22-2003, 04:31 PM
No, we just added the new php. You can add freetype by downloading the source into the customapache directory, untarring it, ./configure; make; make install; it .. then add the required configure lines when building gd or php (im not sure what actually uses it)

John

Icheb
09-26-2003, 03:13 AM
It worked great, had a total downtime of about 2 minutes.
The only problem is, i wanted to try to get the asp apache module to work, but it really doesn't want to compile...

But ok, you can't have everything, the installer is quite good, allthough isn't it better for most users to send all ./configure and make output (including the errors) to a log file for later review instead of the terminal screen you are useing ?

snickn
10-07-2003, 05:48 PM
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

This is while trying to build Zend with the custom buildapache. Just wanted to let everyone know.. I'll also post how I fixed it (if I fix it)

jasonyates
10-12-2003, 12:50 PM
I dont have a problem as such but after i ran the Custom Apache build thing i get this error message when restarting httpd.

Stopping httpd: [ OK ]
Starting httpd: [Sun Oct 12 12:34:16 2003] [warn] module perl_module is already
loaded, skipping
[Sun Oct 12 12:34:17 2003] [warn] NameVirtualHost 65.77.219.27:80 has no Virtual
Hosts
[Sun Oct 12 12:34:17 2003] [warn] NameVirtualHost 65.77.219.27:443 has no Virtua
lHosts
[ OK ]

It restarts ok and has been working ok for a few days but i thought i better check.

DirectAdmin Support
10-12-2003, 12:58 PM
Hello,

The virtualhosts is normal, it means apache was told to listen on those ips, but nobody has been added to them yet. It's just a warning, that doesn't matter.

The perl message also isn't too important. You can comment out one of the LoadModule directives for perl in the /etc/httpd/conf/httpd.conf if you want. What happened was we have perl included in the httpd.conf file, and when mod_perl is compiled, it decides to add it again. One entry will be ignored, but it's anything but fatal :)

John

SlashChick
10-14-2003, 06:24 PM
I'd just like to add my feature request for FreeType to be installed by default with PHP.

I really like what I've seen of DirectAdmin so far! :D

rix
10-20-2003, 11:34 AM
[Tue Oct 21 01:32:48 2003] [notice] caught SIGTERM, shutting down
[Tue Oct 21 01:32:48 2003] [error] Cannot remove module mod_frontpage.c: not found in module list
[Tue Oct 21 01:32:56 2003] [error] Cannot remove module mod_frontpage.c: not found in module list
[Tue Oct 21 01:32:56 2003] [notice] Apache/1.3.28 (Unix) mod_ssl/2.8.15 OpenSSL/0.9.7a PHP/4.3.3 mod_perl/1.27 FrontPage/5.0.2.2623 configured -- resuming normal operations


is there anything that i should be worried ?

how do i remove that error? tried commenting several lines on frontpage...error still shows up

rockit
10-20-2003, 12:38 PM
Hey there :o)

Does the customapache script allow for command line PHP installation? And if not, what configure option can I give to enable that during upgrade?

Thanks!

DirectAdmin Support
10-20-2003, 01:43 PM
Hello,

re: php compile: you can customize the configure line for php by editing the /usr/local/directadmin/customapache/configure.php file, then running ./build php.

re: frontpage error: You don't need to be worried, but some commenting should fix the problem... you can send us your root info if you want us to have a look.

John

s.h.a.zz.y
10-21-2003, 05:47 PM
Have you guys not considered the CPANEL type of APACHE build?
It works wonders and is really good..

Just my few cents to make this CP even better.

The Prohacker
10-21-2003, 11:34 PM
Originally posted by s.h.a.zz.y
Have you guys not considered the CPANEL type of APACHE build?
It works wonders and is really good..

Just my few cents to make this CP even better.


The menu used in it is open source.. Its also used for Apache Tool Box for choosing modules..

I guess it wouldn't be bad so there could be several optional Apache modules that could be installed by selection..

s.h.a.zz.y
10-22-2003, 05:55 AM
Originally posted by The Prohacker
The menu used in it is open source.. Its also used for Apache Tool Box for choosing modules..

I guess it wouldn't be bad so there could be several optional Apache modules that could be installed by selection..

Yeah I would like a base install and add anything that I need, instead of having to choose whats on offer.

-Shazad

DirectAdmin Support
10-22-2003, 12:37 PM
Hello,

Noted. There are a few options with our build script. Just type:

./build

John

Icheb
10-23-2003, 03:13 AM
Originally posted by DirectAdmin Support
Hello,

Noted. There are a few options with our build script. Just type:

./build

John

This is already something good, but i think what everyone means is a system to select additional modules, as example i'll take my server. 1 costumer needs libpdf to be compiled with PHP, this requires freetype, gd, libjpeg, libpng and some more...
What everyone means is a (perhaps ncurses based) menu system so that they can select what modules need to be installed with, and that when that's done a script runs to see if those modules are already installed, and if not, downloads and installs them.
Then rewrites the ./configure for php and starts compiling.
I know that this can be done, but is quite hard to do.
Maybe the menu system for kernel compile can be adapted easier than making an entire system for it.

DirectAdmin Support
10-23-2003, 11:13 AM
Hello,

Just a reply to those who might have had problems with -lltdl when compiling php, to run:

ln -s libltdl.so.3 /usr/lib/libltdl.so

(assuming /usr/lib/libltdl.so.3 exists) If not, you can get libtool-libs
from files.directadmin.com/services/<os>/libtool-libs-<version>.i386.rpm

John

rix
10-24-2003, 02:59 PM
what should i do if i want to build php as static ?

thoroughfare
10-31-2003, 08:35 AM
I'm running DA on a UML-based VDS, and got this:

/etc/init.d/httpd: line 48: ulimit: open files: cannot modify limit: Invalid argument
/etc/init.d/httpd: line 49: ulimit: open files: cannot modify limit: Invalid argument


What does it mean?

Cheers,
Matt

DirectAdmin Support
10-31-2003, 10:44 AM
Hello,

We currently use:

ulimit -S -n #

you can try editing the /etc/init.d/httpd file and use

ulimit -n #

to see if that makes any difference



Re: static php: I havn't done php as static.. can't say. It will probably involve adding a "-static" flag somewhere

John

thoroughfare
10-31-2003, 05:21 PM
:confused: I did what you suggested but httpd still fails to restart, and doesn't even give error messages this time... :confused:

Matt

ProWebUK
10-31-2003, 05:22 PM
check your log files

thoroughfare
10-31-2003, 05:29 PM
/etc/httpd/logs/error_log?

Cheers,
M

thoroughfare
10-31-2003, 05:30 PM
PS Maybe related to my problems with OpenSSL... http://www.directadmin.com/forum/showthread.php?s=&postid=4891#post4891

Thanks,
Matt

thoroughfare
10-31-2003, 05:33 PM
Ok it's *definetly* due to my problems with OpenSSL, aplogies :)

Matt

ctnchris
11-07-2003, 09:57 AM
Where exactly do I add the configure lines for freetype?

Icheb
11-07-2003, 10:14 AM
Originally posted by ctnchris
Where exactly do I add the configure lines for freetype?

Before ./build all, you must edit configure.php with an text editor (this is the php ./configure).
To do this, freetype must have already been installed on the server.

RingToons
11-11-2003, 06:43 AM
how to downgrade from php 4.3.4 to 4.3.3?
I have run the update last dat (./build all) but now some forums doesent work anymore!

Just let me know!

toml
11-11-2003, 08:27 AM
Do you happen to be on RedHat 9, and run the Zend Optimizer? I can see that causing a lot of problems. Something I am working on figuring out. I haven't tried my forums, but I know phpMyAdmin doesn't work when I have Zend enabled.

RingToons
11-11-2003, 08:34 AM
how to disable zend?

toml
11-11-2003, 08:50 AM
vi /usr/local/lib/php.ini and at the very bottom, put a semi-colon in front of the three lines dealing with zend. They should be the last three entries in that file.

RingToons
11-11-2003, 09:40 AM
Originally posted by toml
vi /usr/local/lib/php.ini and at the very bottom, put a semi-colon in front of the three lines dealing with zend. They should be the last three entries in that file.

remove the 3 lines?
How can I get off vi /usr/local/lib/php.ini with saving?

toml
11-11-2003, 09:59 AM
follow these steps and don't type the quotes:

1) type 'vi /usr/local/lib/php.ini'
2) type ':$'
3) use arrow keys to position cursor before each of the following three lines, then hit the letter 'i' and then hit the character ';', followed by hitting the 'Esc' key. After you are done it should look like this:
;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension=/usr/local/Zend/lib/ZendOptimizer.so

4) hit the 'Esc' just to be sure you are out of editing mode, then type ':wq' and hit the 'Enter' key. This will write the file, and quit out of vi.

Rob T
01-23-2004, 06:02 AM
What configure lines would I need to add to configure.php to have curl-ssl compiled in with php? I am trying to run DirectAdmin and it needs curl-ssl, not just plain curl for order processing.

Perhaps it would be helpful for some us lazy RPM/shell script folks if someone make a quick list of some of the more common things that get compiled in with php that are not included with the DA configure.php script and list out the additions to configure.php that are needed to install them.

Thanks!

ProWebUK
01-23-2004, 07:15 AM
Originally posted by RingToons
remove the 3 lines?
How can I get off vi /usr/local/lib/php.ini with saving?

If you prefer use pico, I advise you to backup your php.ini also....

to exit vi simply press esc (To get out of insert mode) then type:

:x <enter>

replace <enter> with a hit on your enter key ;)

Chris

DirectAdmin Support
01-23-2004, 12:38 PM
Re: curl-ssl

you'd probbaly need to add:

--with-curl-ssl \

John

ClayRabbit
01-27-2004, 07:13 PM
I see in httpd.conf:
HAVE_PERL
HAVE_PHP3
HAVE_DAV
... etc

Where this constant can be defined/undefined?

DirectAdmin Support
01-28-2004, 11:28 AM
Hello,

Those are added to the command line when apache is started. If you run "ps -ax" you'll notice how long the apache boot command is. These values are assemled by the "moduleargs()" function in the /etc/init.d/httpd boot script.

John

jlasman
01-28-2004, 01:22 PM
To really see how long it is, type:

ps -wax | grep httpd

On our system, it's:

/usr/sbin/httpd -DHAVE_PERL -DHAVE_MMAP_STATIC -DHAVE_VHOST_ALIAS -DHAVE_ENV -DHAVE_DEFINE -DHAVE_LOG_CON

Jeff

DirectAdmin Support
01-29-2004, 11:05 AM
hehe...even longer.. had to go into the /proc/#/cmdline to get it:

/usr/sbin/httpd -DHAVE_PHP4 -DHAVE_PERL -DHAVE_MMAP_STATIC -DHAVE_VHOST_ALIAS -DHAVE_ENV -DHAVE_LOG_CONFIG -DHAVE_LOG_AGENT -DHAVE_LOG_REFERER -DHAVE_MIME_MAGIC -DHAVE_MIME -DHAVE_NEGOTIATION -DHAVE_STATUS -DHAVE_INFO -DHAVE_INCLUDE -DHAVE_AUTOINDEX -DHAVE_DIR -DHAVE_CGI -DHAVE_ASIS -DHAVE_IMAP -DHAVE_ACTIONS -DHAVE_SPELING -DHAVE_USERDIR -DHAVE_ALIAS -DHAVE_REWRITE -DHAVE_ACCESS -DHAVE_AUTH -DHAVE_AUTH_ANON -DHAVE_DIGEST -DHAVE_PROXY -DHAVE_CERN_META -DHAVE_EXPIRES -DHAVE_HEADERS -DHAVE_USERTRACK -DHAVE_EXAMPLE -DHAVE_UNIQUE_ID -DHAVE_SETENVIF -DHAVE_FRONTPAGE -DHAVE_DEFINE -DHAVE_SSL

:)

John

MQ-James
02-08-2004, 12:51 PM
I keep getting segmentation errors whatever I do and I can't start apache due to the needing of php and php wont compile due to those errors
ideas?

toml
02-08-2004, 10:37 PM
Originally posted by MQ-James
I keep getting segmentation errors whatever I do and I can't start apache due to the needing of php and php wont compile due to those errors
ideas?

Which errors are you getting? I know you are getting segmentation faults, but you don't say what errors you are getting compiling php. If you are getting errors using php with Zend, then you need to compile your zlib as a shared library(./configure --shared). If that is not your problem, you need to be a bit more clear as to what exactly your problem is.

host4leicester
02-09-2004, 01:11 AM
Here is the error we are getting (same server as mq-james)


Make Complete
Installing php...
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2

*** The install has failed, do you want to try to install it again? (y,n):

host4leicester
02-09-2004, 03:52 AM
We managed to get apache working again by disabling SSL on all of the accounts.

We kept getting the error "SSL Engine" spelling mistake on link 99 or summit until we commented all of them...

any ideas why?

(also none of the domains work still, its almost like apache is still down..)

ProWebUK
02-09-2004, 08:07 AM
Do you have IMAP in your configure line?

Chris

host4leicester
02-09-2004, 08:14 AM
In which configure line?

ProWebUK
02-09-2004, 08:21 AM
/usr/local/directadmin/customapache/configure.php

host4leicester
02-09-2004, 08:22 AM
there is nothing in that file.
is this wrong?

it said all files were succesfully installed...

toml
02-09-2004, 08:45 AM
Originally posted by host4leicester
Here is the error we are getting (same server as mq-james)


Make Complete
Installing php...
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2

*** The install has failed, do you want to try to install it again? (y,n):

A good way to find the source of this problem is to do the command find . -name core -exec file {} \;.That should file the core dump generated from the make. It should also tell you which program is actually causing the seg fault.

Also, something else you may want to do, is:
cd /usr/local/directadmin/customapache
rm -f configure.*
./build update
./build clean
./build all

That should rebuild everything from scratch. If you still get seg faults doing this, then there is something else wrong with your system.

ProWebUK
02-09-2004, 08:48 AM
Originally posted by host4leicester
there is nothing in that file.
is this wrong?

it said all files were succesfully installed...

If its not in the file that is not the problem... I have seen the pear error previously where the path specified for IMAP is incorrect.

Chris

ProWebUK
02-09-2004, 08:55 AM
cd /usr/local/directadmin/customapache
rm -f configure.*
./build update
./build clean
./build all


Try that as Tom mentioned, if you still get the error I think I may know where the problem stands :) - if you have custom configure lines back them up before deleting them and restore *after* a successful recompile. Just noticed your SSL problem which makes me think think the problem could be with OpenSSL

Chris

host4leicester
02-09-2004, 09:12 AM
well it compiled succesfully and it restarted succesfully but its still acting like its not working (domains not loading...)

also last time I had to comment the ssl section in the config files for all users. this time the ssl section isnt even there...

ProWebUK
02-09-2004, 09:14 AM
Originally posted by host4leicester
well it compiled succesfully and it restarted succesfully but its still acting like its not working (domains not loading...)

Is BIND running ok? are you getting any errors? can you access through the IP/~user?

Chris

host4leicester
02-09-2004, 09:16 AM
no and BIND is not showing up in the stats in DA (which im sure it usually is)

How do I test it or recompile it?

toml
02-09-2004, 09:17 AM
Working domains not loading is a result of the /etc/httpd/conf/httpd.conf not loading the domain config files. At the bottom, it should be including a file for each domain. Those files should be located in /usr/local/directadmin/data/users/${user}/httpd.conf
where the ${user} is the owner of the domain.

host4leicester
02-09-2004, 09:19 AM
yes they are that is not the problem, I'm pretty sure its BIND... as before in previous post how do I find out?

ProWebUK
02-09-2004, 09:23 AM
service named status
service named start (if its off)
service named reload (if its on)

Chris

host4leicester
02-09-2004, 09:25 AM
I also get the following error when restarting apache after enabling ssl.

Syntax error on line 1520 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration

host4leicester
02-09-2004, 09:29 AM
I have reloaded named and the domains are still down (and IP's)
I am convinced its SSL, because I can't enable it without getting the errors above when restarting apache...

Any ideas?

ProWebUK
02-09-2004, 09:32 AM
rpm -qa | grep "openssl"

Output?

Chris

host4leicester
02-09-2004, 09:36 AM
openssl-devel-0.9.6b-35.8
openssl-0.9.6b-35.8

DirectAdmin Support
02-09-2004, 11:09 AM
Hello,

Note to anyone trying to restart apapache and gets SSLEngine errors, you *must* use:
service httpd restartbecause apachectl doesn't pass any of the -DHAVE_SSL type commands when starting apache.(there are probably about 30 of them)

For any bind related issues, normally I find that boot scripts are the cause. Namely the "stop" part... I've been replacing any rndc commands with "killproc named".. and for restarts, I replace rndc commands with"stop" then "start". Basically, all the rndc commands were getting hung up and this ended up creating many copies of scripts trying to do things, but they never finish.
Type: "ps -ax | grep named" to see what's running. You should get at *most* 2 results, 1 being "[named]", the other being the program you just ran (doesn't always show up).

John

MQ-James
02-09-2004, 11:31 AM
I always use the service command. We managed to fix the issue. Now to fix the MySQL issue onwards and upwards...

Icheb
02-10-2004, 11:24 PM
John,

A client of mine mailed you yesterday (dutch time :D) and asked you about a seg fault error with child processes, you recommended a recompile. It worked fine for a few hours, but then the httpd childs all died, and only one parent was left, but this one didn't do anything anymore.
I forced a restart this morning, but this really is getting irritating. Httpd keeps failing on us.

The ./configure.php contains :

#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--with-freetype-dir=/usr/local/lib \
--enable-sockets \
--enable-track-vars

It's standard, only the freetype thingy has been added.

The Apache httpd is standard.

I recompiled all modules without errors...

Can you think of any solution ?

DirectAdmin Support
02-11-2004, 11:40 AM
I've already replied to your question on the other thread:
http://www.directadmin.com/forum/showthread.php?s=&threadid=1879

Also make sure you *always* do a "./build clean" before you do anything when modifying the configure.php scripts. Perhaps try removing --with-freetype and see if that fixes it (again, with a build clean), just to isolate the problem.

John

neorder
02-12-2004, 06:36 AM
is this custom Apache a necessary step for me? i installed the most recent version of DA, all softwares were up to date, so i do not recompile my apache, am i right?

ProWebUK
02-12-2004, 09:01 AM
If you installed the DA package the last few days you should ok, if you had DA already and just upgraded it recently then you may need to recompile some software.

Chris

NoBrains
02-28-2004, 11:04 AM
Hello all,

This is a great package my only prob is that... I don't need webalizer so I comented the webalizer call in "build" file

After all installation process is done I start the httpd service and it doesn't execute php :(
It shows it as plain text... Couldn't figure out which lines I'm missing

Thanks :(

DirectAdmin Support
02-28-2004, 06:59 PM
Hello,

The webalizer part of the build is only run if /usr/bin/webalizer doesn't exist. (/usr/local/bin/webalizer on FreeBSD).. so if you create a dummy file, then DA won't do anything. To get php going, you should be able to run:

./build clean
./build all

or "./build php" for php only. Also, make sure that php is actually enabled for that domain :) (User Panel -> Advanced Options -> Domain Administration -> domain.com -> php = ON )

You can also check /usr/local/direcatdmin/data/users/username/httpd.conf to see if the php engine flag is on.

John

NoBrains
02-29-2004, 01:21 AM
Hello again, thanks for the reply.

I'm new to all this I think it's just an Apache configuration issue.

These are the lines that mention "php" in my httpd.conf.
Could anyone tell me if they are correct / enough plz :/

LoadModule php4_module /usr/lib/apache/libphp4.so
AddModule mod_php4.c
<IfModule mod_dir.c>
DirectoryIndex index.php index.php3 index.php4 index.php5 index.html
</IfModule>
AddType application/x-http-php .php php3 php4
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>


Thanks in advance.

DirectAdmin Support
02-29-2004, 01:43 PM
Hello,

Yes, those line are more or less what I have. There are a few more LoadModule/AddModules lines, but they only apply if you are using older php modules.

John

iTec
03-13-2004, 10:45 PM
I was looking a easy way to install Zend and this was it!!! Thanks DA staff.

Only problem I encountered was when the zend installer went to restart Apache it could not restart for "some unknown reason". I did a reboot instead and in Php info, zend version now shows

DirectAdmin Support
03-14-2004, 02:22 PM
Hello,

yes, zends method of restarting apache doesn't work with DA (uses apachectl I think). So just run "service httpd restart" after it's installed ("/usr/local/etc/rc.d/httpd restart" for FreeBSD)

John

Eric
03-30-2004, 12:07 AM
How do I find out what modules are currently installed for apache?


Thanks
Eric

DirectAdmin Support
03-30-2004, 11:15 AM
Create an info.php file with the following

<? phpinfo(); ?>


Then view the page. The apache modules should be listed under the "apache" section.

John

Eric
03-30-2004, 12:56 PM
Heh... Why didn't I think of that. :eek:

Eric
03-30-2004, 01:38 PM
It's not missing anything, is it? I installed DA by executing setup.sh

Apache Version
Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7a PHP/4.3.4 mod_perl/1.27 FrontPage/5.0.2.2510

Loaded Modules
mod_ssl, mod_php4, mod_perl, mod_frontpage, mod_setenvif, mod_so, mod_headers, mod_expires, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env, mod_vhost_alias, http_core

DirectAdmin Support
03-31-2004, 12:59 PM
Looks fine to me. Are you looking for anything in particular? Is something not working?

John

Eric
03-31-2004, 03:25 PM
Everything has worked fine so far; it's just that webmin is not picking up some of the modules (see attached image).

Icheb
03-31-2004, 11:08 PM
Originally posted by Eric
Everything has worked fine so far; it's just that webmin is not picking up some of the modules (see attached image).

Note that using webmin is NOT recommended while also using DA :D
Perhaps since those modules can also be found in DA (i thought something like > login as user > advanced > modules) or something... Note the 'something' there, since i'm not really sure

jlasman
03-31-2004, 11:18 PM
Originally posted by Icheb
Note that using webmin is NOT recommended while also using DA :D
Not recommended by whom, Icheb?

By you?

i've never seen the recommendation to not use webmin made by anyone else before, and I know many DA server administrators who use it quite successfully.

There are perhaps a few things you shouldn't do with webmin, but in general DA is a lot more friendly towards webmin than any of the other control panels I've used.

Jeff

ctnchris
03-31-2004, 11:51 PM
Originally posted by jlasman
Not recommended by whom, Icheb?

By you?

i've never seen the recommendation to not use webmin made by anyone else before, and I know many DA server administrators who use it quite successfully.

There are perhaps a few things you shouldn't do with webmin, but in general DA is a lot more friendly towards webmin than any of the other control panels I've used.

Jeff

Its not recommended because direct admin cannot support it
(they even said it in this thread: http://www.directadmin.com/forum/showthread.php?s=&threadid=381&highlight=webmin )

jlasman
04-01-2004, 07:03 AM
Thanks for bringing this to my attention.

I'll discuss it with Mark, and if necessary, John, by email today.

I think we can get that thread amended; webmin is at least as safe as the command line with DirectAdmin, probably a bit safer in that it won't let you do certain things improperly.

Webmin, as a control panel, is fairly light-handed; it doesn't use any of it's own files and so has nothing to keep in synchronization with the OS.

So is DA, really. While DA does have some of it's own files, they generally neither impact, nor get impacted by, reasonable administration from the command line or reasonable administration by DirectAdmin.

Jeff

ProWebUK
04-01-2004, 08:53 AM
I see where John/Mark are coming from...
I also see where Jeff is coming from...

In my opinion the end response needs to be in the middle of both the views of DA and the views of Jeff.

(In my opinion...) The best option would be:#

DirectAdmin allow it with *LIMITED* support rather than kill support totally, if anything seems entirely out of place (rewritten configs removed data etc) then possibly drop the support for the issue....... if its a clear DA issue then support is continued as normal..

Must disagree with a comment though Jeff, "webmin is at least as safe as the command line with DirectAdmin, probably a bit safer in that it won't let you do certain things improperly."

With command line you generally have the experience to determine where the file gets written when you type in the path... with webmin (of for the sake of argument, any control panel) you allow it to do its own configs modify its own files.

Chris

jlasman
04-01-2004, 10:10 AM
I can certainly see where you're coming from, as well.

I can't forsee of a circumstance under which webmin would overwrite an existing control file in a way that would damage anything, although there might be some. I'd like to hear some anecdotal evidence if there is any.

For example: DNS...

DA keeps DNS files in the right place. Webmin shouldn't have any problems with it, except that Webmin could create DNS records which DA wouldn't understand.

When I've created zone files (manually) with records that DA didn't understand (for example to add MX records pointing to backup mail servers) it didn't break anything. (It did create MX records that DA couldn't fully understand, but DA kept the records, and you could make changes to DA without affecting the records.)

I'd like to see or hear of some specific examples of how Webmin could break DA.

I can see how John might be unwilling to offer free unlimited support to people who break things because they've used Webmin, that's completely reasonable.

I also remember when Cobalt (before Sun bought them) told everyone that if you even logged and added something like chkrootkit your complete warranty was voided. It's those kinds of blanket statements I like to see avoided, and clarified if possible.

I remain fully committed to DA, and if it means anything, I'm certainly willing to support DA for people who are also using Webmin :) .

Jeff

ProWebUK
04-01-2004, 10:35 AM
Well..... I have only ever used webmin once and that was faintly, its not really of much interest to me, im not going to state what WILL cause problems, I have not tested and dont intend to although looking at the modules some that may want to be avoided:

Editing disk quotas
sendmail config manager

Besides that.... if it modifies rather than writes entire configs for everything it looks ok :)

Originally posted by jlasman
I remain fully committed to DA, and if it means anything, I'm certainly willing to support DA for people who are also using Webmin :) .

I think its the same for most who support users currently, both on the forums and off :)

Chris

jlasman
04-01-2004, 11:06 AM
I'm not sure if editing quotas will cause any problems; certainly it won't if command line editing of quotas won't.

And of course I wouldn't edit sendmail :) .

But that comes under the whole "common sense" thing.

If you don't do anything with webmin you wouldn't do from the command line you should be okay.

Jeff

ProWebUK
04-01-2004, 11:28 AM
Originally posted by jlasman
I'm not sure if editing quotas will cause any problems; certainly it won't if command line editing of quotas won't.

The max quotas shown in the panel are in the DA user configs.... the disk quotas are there to simply force them quotas as an actual limit...

so you could modify the disk quotas and it would allow overages etc, later causing problems when you have accounts in DA showing used/max 150/100

Sendmail, yes its common sense, although you must consider the fact users with little knowledge of DA may go playing, reenabling sendmail etc etc... you get the idea



If you don't do anything with webmin you wouldn't do from the command line you should be okay.


Totally disagree. With the command line you dont have a list of menus with nifty little options that make you think "hmmm do I try this"
:)

Chris

neorder
05-03-2004, 12:34 PM
i tried to rebuild zend but got error

[root@tk customapache]# ./build zend
File already exists: .tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors

Location of php.ini:
/usr/local/lib
Press return to continue...

./build: line 1260: ./install.sh: No such file or directory

also tried ./build clean and rebuild everything.

no choice now, i'm going to install zend manually. but do you konw what's the problem here?

ProWebUK
05-03-2004, 01:12 PM
Corrupted package from the look of that error...

cd /usr/local/directadmin/customapache
rm -f *.tar.gz
./build clean
./build update
./build zend

Chris

neorder
05-03-2004, 07:53 PM
Originally posted by ProWebUK
Corrupted package from the look of that error...

cd /usr/local/directadmin/customapache
rm -f *.tar.gz
./build clean
./build update
./build zend

Chris

thanks ProwebUK, i did try that before but failed, in the end i downloaded zend from zend website, and installed it, no problem throught :)

ProWebUK
05-04-2004, 08:50 AM
Perhaps a corrupted package on the DA website then...

DirectAdmin Support
05-05-2004, 02:25 PM
Hello,

What OS are you using? The "ZENDNAME" value in the build script is set based on the operating system version number.

I also just had a look and Enterprise wasn't added to the build script, so give it a try now (I've added a few changes).

John

neorder
05-05-2004, 08:35 PM
Originally posted by DirectAdmin Support
Hello,

What OS are you using? The "ZENDNAME" value in the build script is set based on the operating system version number.

I also just had a look and Enterprise wasn't added to the build script, so give it a try now (I've added a few changes).

John

oh, i used RH9, not RHEL.

thank you.

DirectAdmin Support
05-06-2004, 01:29 PM
Is it working? If not, whats the contents of your /etc/redhat-release file?

John

motobrandt
05-11-2004, 05:11 PM
Originally posted by DirectAdmin Support
Hello all,

I just finished a beta version of the apache build system for DirectAdmin. It allows everyone to rebuild apache easily and customize php more easily.

Current Version: 1.1.8

Comes with:
Apache 1.3.29
mod_ssl 2.8.16
mod_perl 1.27
php 4.3.4
zend 2.1.0a
gd 2.0.15
libjpeg 6b
libpng 1.2.5
libmcrypt-2.5.7
zlib 1.1.4
curl 7.10.5
mod_frontpage 1.6.1
Frontpage 5.0.2.2510

As root, type:

cd /usr/local/directadmin
mkdir customapache
cd customapache
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build all

And if you want to have Zend, after the whole thing finishes, type:
./build zend

and answer all questions.
Zend install = /usr/local/Zend
php.ini = /usr/local/lib
Apache config dir = /etc/httpd/conf
php = 4.3.4
apache bin = /usr/sbin
John
Is this still current? I have never done this custom Apache Build and I would love to get Zend going.
I'm using FreeBSD 4.8 do you think that these scripts will work for me? I only have my production machine right now. SHould I try this?

thanks,brandt

DirectAdmin Support
05-12-2004, 03:41 PM
Hello,

The build script is current.. some of those versions are not. I'll update them shortly. We currently have zend 2.5.1 (May 12th, 2004).. it was added about a month ago.

If you have DirectAdmin, you have already run the build script. This script is part of the installation of DirectAdmin.

John

Dixiesys
05-12-2004, 03:43 PM
I'd really love to see freetype added into this mix maybe as an alternate module you can enable if you want.

Icheb
05-15-2004, 02:27 AM
Hi,

John, could you perhaps add Apache 1.3.31 ? (http://httpd.kookel.org/httpd/apache_1.3.31.tar.gz)

Thanks in advance :)

@ Dixiesys:
Just install Freetype:

cd /usr/src
wget -q http://easynews.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.8.tar.gz
tar xzpf freetype-2.1.8.tar.gz
cd freetype-2.1.8
./configure
make
make install
cd /usr/local/directadmin/customapache

Edit the configure.php file; add:
--with-freetype-dir=/usr/local/lib
If it isn't the last line don't forget the ' \'.
My current configure.php mods/changes or stuff that isn't in the normal configure.php (i think):

--with-pdflib \
--with-freetype-dir=/usr/local/lib


Note that i'm not sure if the make make install actually works for freetype as i guessed that part :D

Hope you can use it...

edit:
Don't forget to rebuild everything with the customapache builder afterwards. It shouldn't overwrite your new configure.php

DirectAdmin Support
05-15-2004, 02:28 PM
I'll update the script to Apache 1.3.31 later today (have to test and also get the new mod_ssl, which I assume is out too).

John

jlasman
05-15-2004, 04:13 PM
I'm confused, John.

And if I'm confused, I bet a few others are as well.

When something included in your Custom Apache Build System gets updated, possibly for a security issue, just what is it we have to do?

Do we have to find the software first, install it in a particular directory or directory first?

Or what?

Thanks.

Jeff

ProWebUK
05-15-2004, 08:07 PM
Originally posted by jlasman
I'm confused, John.

And if I'm confused, I bet a few others are as well.

When something included in your Custom Apache Build System gets updated, possibly for a security issue, just what is it we have to do?

Do we have to find the software first, install it in a particular directory or directory first?

Or what?

Thanks.

Jeff

You have to wait for it to be updated by DA, update then run the script.

A pain, but I have a project to try patch up the waits... I could also consider a way to use local packages, although it would be under advanced and hidden deep in the documentation so only users who know what their doing would play (hopefully!)

Chris

jlasman
05-15-2004, 11:56 PM
Originally posted by ProWebUK
You have to wait for it to be updated by DA, update then run the script.
I'm still a bit confused but I'm getting there...

1) wait until DA issues updates. Where do I find them?

2) update

What do I have to do to update? Just download the updates into my DA system, or unpack them, install them with RPM? what?

3) then run the script?

Meaning the Custom Apache script I presume.

Can you help me fill in the blanks?

Thanks.

Jeff

ProWebUK
05-16-2004, 03:46 AM
Originally posted by jlasman
I'm still a bit confused but I'm getting there...

1) wait until DA issues updates. Where do I find them?



The script uses


http://files.directadmin.com/services/customapache/


If you run a ./build update the latest packages will be in your custom apache directory (/usr/local/directadmin/customapache) you can then get these and then download them from the link above and do what you want with them..... note: some packages are not standard AFAIK

Originally posted by jlasman
I'm still a bit confused but I'm getting there...

2) update

What do I have to do to update? Just download the updates into my DA system, or unpack them, install them with RPM? what?



At the moment customapache uses half rpm half source build (for different things... mysql is source for example where as httpd is not..

Trying to fade out the mix with my script by going all RPM, since RH is a rpm based distro thats how it should be, and doing things that way will stop broken dependencies with httpd as it currently does for most (if you dont realise it now, you will in the future).

Generally, updates are announced here then you just run:

./build clean
./build update (which downloads the new package sources and rpms)
./build X(or all)

Originally posted by jlasman
3) then run the script?

Meaning the Custom Apache script I presume.


Correct ;)

Chris

jlasman
05-16-2004, 10:20 AM
Originally posted by ProWebUK
Generally, updates are announced here
Almost done, Chris :) .

just where is here?

Any particular forum or thread?

Thanks.

Jeff

ProWebUK
05-16-2004, 10:30 AM
Here would be on the forum, in the version updates section :)

http://www.directadmin.com/forum/forumdisplay.php?s=&forumid=29

A few updates already there:

http://www.directadmin.com/forum/showthread.php?s=&threadid=2633
http://www.directadmin.com/forum/showthread.php?s=&threadid=897
http://www.directadmin.com/forum/showthread.php?s=&threadid=739

Chris

jlasman
05-16-2004, 11:14 AM
Thanks, Chris.

I've got a bunch of servers I'm responsible for I want to update.

Any known problems?

Thanks.

Jeff

ProWebUK
05-16-2004, 11:55 AM
Not as far as I know :)

Chris

DirectAdmin Support
05-16-2004, 12:01 PM
Updated apache to 1.3.31 and mod_ssl to 2.8.17

John

bonnmac
05-18-2004, 11:13 PM
With the new version, I'm getting a failed to make error. Any ideas?

<=== src/modules/ssl
===> src/modules/frontpage
/bin/sh: line 1: cd: frontpage: No such file or directory
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.31/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.31'
make: *** [build] Error 2

*** The make has failed, do you want to try to make again? (y,n):

jmstacey
05-18-2004, 11:48 PM
Is there any possibility of having customapache also install turk mmcache? Since its about the same as zend and needs to be installed before zend it would be a nice addition to the system. :)

Icheb
05-19-2004, 05:53 AM
Originally posted by bonnmac
With the new version, I'm getting a failed to make error. Any ideas?

<=== src/modules/ssl
===> src/modules/frontpage
/bin/sh: line 1: cd: frontpage: No such file or directory


This qualifies as a problem.
I don't know but, are you sure all stuff is downloaded ? (frontpage .tar.gz file?)

I haven't had the time to recompile here, but i'll give it a shot in the weekend :D

DirectAdmin Support
05-19-2004, 11:21 AM
Hello,

You might be using a really old configure.apache_ssl file. Try deleting it, then run "./build update" again, then try to compile it.

John

bonnmac
05-20-2004, 01:26 AM
That worked.

nappa
06-06-2004, 02:28 AM
Can you please add ModGzip to that list of software that are automatically installed ? Even if it's adding another seperate command like build zend.

The reason that I've asked is that I've tried to install it using the guide provided on the DA forum, and I got an error. I had to remove the httpd.conf and then rebuild everything.

sander815
06-14-2004, 07:15 AM
just updated, but httpd restart gives me this:
Stopping httpd: [ OK ]
Starting httpd: [Mon Jun 14 15:19:51 2004] [warn] module perl_module is already loaded, skipping
[ OK ]

ProWebUK
06-14-2004, 07:18 AM
You can ignore it, but if you want to fix you should find duplicates of:

<IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so
</IfDefine>

within the httpd.conf

Chris

sander815
06-14-2004, 07:50 AM
its there twice:

</IfDefine>
LoadModule frontpage_module /usr/lib/apache/mod_frontpage.so
LoadModule perl_module /usr/lib/apache/libperl.so

and

<IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so
</IfDefine>

ProWebUK
06-14-2004, 08:17 AM
Just comment out one of them..

#LoadModule perl_module /usr/lib/apache/libperl.so

Chris

sander815
06-14-2004, 02:02 PM
when i run phpinfo(); to see some info on php, i see:
Client API version 3.23.49??

[root@server01 admin]# mysql -V
mysql Ver 12.22 Distrib 4.0.18, for pc-linux (i686)
[root@server01 admin]#


is that a problem?

ProWebUK
06-14-2004, 02:14 PM
no, the client api and mysql versions are 2 different things.

Chris

deltaned
06-17-2004, 11:36 AM
When I do: ./build zend I get:
[root@rotterdam customapache]# ./build zend
File already exists: .tar.gz

gzip: stdin: unexpected end of file
tar: Kind retourneerde status 1
tar: Fout afsluiting uitgesteld na eerdere fouten

Location of php.ini:
/usr/local/lib
Press return to continue...

./build: line 1266: ./install.sh: Onbekend bestand of map

How to fix it?

DirectAdmin Support
06-17-2004, 12:46 PM
Hello,

Looks like you have a half downloaded zend file. Delete the empty/partially downloaded zend tar.gz file and then run:

./build update_data
./build zend

John

deltaned
06-17-2004, 12:54 PM
Where can i find the tar file of zend?

sander815
06-17-2004, 01:13 PM
how do i know if i have zend?
phpinfo?

ProWebUK
06-17-2004, 01:15 PM
Originally posted by sander815
how do i know if i have zend?
phpinfo?

yep.

Chris

DirectAdmin Support
06-20-2004, 03:06 PM
Originally posted by deltaned
Where can i find the tar file of zend?

/usr/local/directadmin/customapache/ZendOptimizer-*-i386.tar.gz

John

Earendil
06-23-2004, 07:48 PM
[root@fluffy customapache]# ./build zend
File already exists: .tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors

Location of php.ini:
/usr/local/lib
Press return to continue...

[root@fluffy customapache]#

On a fresh install, already tried:

- removing all archives
- ./build clean
- ./build update
- ./build update_data

System is: RedHat Linux 9 (Shrike)
Note: this was a fresh install...

Earendil
06-24-2004, 02:47 PM
Found the problem, the actual version was RedHat 9 (Shrike)
Only 9.0 is supported by build, so I edited that to 8.0 | 9 | 9.0 | ...

Then it worked :)

DirectAdmin Support
06-25-2004, 02:24 PM
ah, ok, ill update that.

John

outpernet
07-03-2004, 09:28 AM
Originally posted by Earendil
Found the problem, the actual version was RedHat 9 (Shrike)
Only 9.0 is supported by build, so I edited that to 8.0 | 9 | 9.0 | ...

Then it worked :)

im having the same problem. where youu have to edit that?

Earendil
07-03-2004, 03:19 PM
pico /usr/local/directadmin/customapache/build

:)

(alternatively nano or vm)

sayaendo
08-16-2004, 08:43 PM
Hello,

Could someone tell me how to add mbstring? :)

I'm a newbie on DA and could not find any post on mbstring.

Best Regards,

jmstacey
08-16-2004, 10:48 PM
Since this is not part of the customapache build system you will have to install it yourself.

sayaendo
08-16-2004, 11:21 PM
Hi jmstacey
Thanks for your reply

Could you answer three more questions if you know?

1. Do I need to modify configure.php after I insall mbstring?
2. If we do customapache/build after I add mbstring, doesn't customapache/build overwrite(erase) mbstring? This question is related to Q1.
3. Is there any plan to add mbstring to customapache/build?

Thanks in advance!!:p

jmstacey
08-16-2004, 11:35 PM
1. I think you modify the configure file to install mbstring in the first place

2. Not unless you clear the configure files when doing a complete apache/php upgrade following the instructions located here:
http://help.directadmin.com/item.php?id=26
Otherwise I think it should be fine.

3. I have no idea on this since I am not on the DA Staff, but my guts tell me no since its not really a base system necessity. (for the most part)

I haven't tried installing mbstring but you can give this a try if you feel up to it. Just to help you get started hopefully since I gathered this from the php.net website.

Modify the file /usr/local/directadmin/customapache/configure.php
and add the following to the end of the file
--enable-mbstring=en

And maybe the following as well, not sure
--enable-mbstr-enc-trans
--enable-mbregex

See http://us3.php.net/mbstring under the installation section.

After you've done that try running
./build php in the /usr/local/directadmin/customapache directory.

Be sure to backup your original configure.php file and php.ini just in case.

If that seemed successful verify the variables available in the php.ini file to configure mbstring. (See the php.net/mbstring under Runtime Configuration)


After you've done all that try restarting apache or your server and see if it all works. If not better restore your php.ini file and recompile php without mbstring and start to debug.d

sayaendo
08-17-2004, 05:23 PM
Thanks a lot!!:)
Your information really helped me.

mbstring is essential for Japanese, Chinese & Korean.
It seems very strange to me because Chinese Language pack is available for DA and I assume many Chinese people are using DA.

jmstacey thaks again!!

interfasys
08-18-2004, 09:42 AM
Just a quick note.
It never hurts to run a :
# pear upgrade-all
from time to time. This will get the latest version of your installed pear packages needed by some php applications.

RayManZ
11-08-2004, 02:13 PM
Hey

I just updated but something went serious wrong. No idea what.

First i did ./ build update and then ./build all. Everything went fine and everything worked well

Then i wanted to have Zend as well so i typed ./build zend. That work too. But after the httpd restart it failed. Apache is down and i can't get it up.

I don't know where to look cause i'm not that good with freebsd or anything like that :(

First i worked well for a short time. Then apache crashed.

Now i want to rebuild and i had put back the old php.ini and kicked out the references to zend and restart apache but still no luck.

it says it started but i can't acces anything. Very weird...

Plz help :(

Webcart
11-30-2004, 03:40 AM
Try looking for hints in the output of this command:

tail /var/log/httpd/error_log


Or post it here and we might be able to help.
If you post it, also include output of this command:

uname -a

mr. green
12-18-2004, 04:27 AM
Originally posted by Earendil
Found the problem, the actual version was RedHat 9 (Shrike)
Only 9.0 is supported by build, so I edited that to 8.0 | 9 | 9.0 | ...

Then it worked :)

Same problem here. I have RHE AS release 3 and I had to add "AS" to that line. Then it worked ;)

anima
12-29-2004, 04:20 AM
Hi,

Would it be possible for someone to explain the easy way to install mod_rewrite with customapache?

The framework of my site is based around url rewriting, and i am confused as to whether i need to install extra files to get it to work?!?!

Thank you for your help in advance.

Webcart
12-29-2004, 04:44 AM
Originally posted by anima
Hi,

Would it be possible for someone to explain the easy way to install mod_rewrite with customapache?

The framework of my site is based around url rewriting, and i am confused as to whether i need to install extra files to get it to work?!?!

Thank you for your help in advance.

What version of DA are you using?
It should be set up by default unless this is a really old installation.

anima
12-29-2004, 01:13 PM
Originally posted by Webcart
What version of DA are you using?
It should be set up by default unless this is a really old installation.

DirectAdmin v1.23.3

The output of phpinfo() is as follows:

System FreeBSD leeloo.altrospective.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Mon Dec 27 15:32:47 UTC 2004 cologuys@leeloo.rootcube.com:/usr/src/sys/i386/compile/MYKERNEL i386
Build Date Dec 29 2004 05:37:22
Configure Command './configure' '--with-apxs' '--with-curl' '--with-curl-dir=/usr/local/lib' '--with-gd' '--with-gd-dir=/usr/local/lib' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-kerberos' '--with-mcrypt' '--with-mhash' '--with-mysql' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xml' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--with-zip' '--with-openssl' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars'

Also imap doesn't seem to be working either...

Webcart
12-30-2004, 07:29 AM
mod_rewrite is not a PHP module, that's why you don't see it in PHP configuration command.

Why don't you test mod_rewrite on your server?

Create the following .htaccess file and put it into public_html directory:

RewriteEngine on
RewriteRule ^thisismytest/(.*) $1


Then point your browser to http://YOURDOMAIN/thisismytest/
where YOURDOMAIN should be replaced with the domain name corresponding to public_html dir.

If you get the same page you would get by pointing your browser to http://YOURDOMAIN/ then mod_rewrite works fine on your server.

anima
12-30-2004, 07:33 AM
I know it's not a php module. It's an apache module.

I have tested it.
As i said the structure of my main site is based around using .htaccess.

Webcart
12-30-2004, 07:57 AM
Then I am not sure what happend.

Is this a new server with a clean install?

If not, did you try to upgrade your apache?
( Here is the link that explains how to do that:
http://help.directadmin.com/item.php?id=1 )

Or may be it stoped working after the upgrade?

markus
01-02-2005, 04:13 AM
anima, check your phpinfo. There's a section related to Apache settings where you should see all apache "Loaded Modules".

You could also check your /etc/httpd/conf/httpd.conf file. You should see the following lines:

LoadModule rewrite_module modules/mod_rewrite.so

AddModule mod_rewrite.c

AFAIK, mod_rewrite does NOT come with default apache installation. Check your configure.apache_ssl (under directadmin/customapache). You should have enabled mod_rewrite. You can do so by using the --enable-module=rewrite --enable-shared=rewrite options. Alternatively, you can enable all stable modules (look at the apache-version/INSTALL file, section LIST OF AVAILABLE MODULES) by using the --enable-module=all --enable-shared=max options.

Here's my configure.apache_ssl:

#!/bin/sh
./configure \
--with-apache=../apache_1.3.33 \
--with-ssl=/usr \
--prefix=/etc/httpd \
--exec-prefix=/etc/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc/httpd/conf \
--enable-module=all \
--enable-module=ssl \
--enable-shared=max \
--enable-suexec \
--suexec-docroot=/ \
--suexec-caller=apache \
--suexec-userdir=public_html \
--includedir=/usr/include/apache \
--libexecdir=/usr/lib/apache \
--datadir=/var/www \
--iconsdir=/var/www/icons \
--htdocsdir=/var/www/html \
--manualdir=/var/www/html/manual \
--cgidir=/var/www/cgi-bin \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--proxycachedir=/var/cache/httpd \
--with-perl=/usr/bin/perl \
--add-module=mod_frontpage.c \
--enable-module=auth_digest \
--disable-module=auth_db \
--disable-module=auth_dbm

Then, if you need to rebuild apache do:

cd /usr/local/directadmin/customapache
./build apache_mod_ssl
service httpd restart


Hope that helps

Webcart
01-02-2005, 10:35 AM
Originally posted by markus
AFAIK, mod_rewrite does NOT come with default apache installation. [/B]

We have a number of servers with DA installed.
They all had mod_rewrite available by default.

markus
01-02-2005, 11:08 AM
Yes, the file configure.apache_ssl comes with the --enable-module=all --enable-shared=max options already in place by default.

Howwver, that's a DA feature, not an Apache default.

anima's problem with mod_rewrite is really strange, so it's just something else to look at... :rolleyes:

jschurawlow
01-22-2005, 09:01 PM
To my knowledge mod_perl had not worked at all when I did the initial install on my FreeBSD 4.10-stable box and well I did a manual build of it and got it working once since then did not work at all. Following directions on this thread now hopefully it works to enable mod_perl properly now ran the ./build update etc once i wgetted the newest one. I will post again once it completes the update.

-Justin

jschurawlow
01-22-2005, 09:19 PM
rebuilt using the build script yet mod_perl still doesn't seem to be working properly, I am getting 500 Internal Server Errors with any perl script I attempt to run even the most basic ones. Anyone have any ideas where I can start looking at?

-Justin

jmstacey
01-22-2005, 11:43 PM
Are all of your files and directories set properly? (username:username not username:apache)

jschurawlow
01-22-2005, 11:47 PM
I believe so I will go triple check em now. As far as I can recall they are though.

jschurawlow
01-22-2005, 11:52 PM
yup as usual wrong chown of the files. I chmod'd the scripts earlier but my absent mind forgot to friggin chown them as well. as we all do on IRC *SMACK* anyways thanks for the reminder.

jschurawlow
01-23-2005, 05:21 PM
Ok here is some fun, ran the update and all went through without a single error but now neither the webmail nor the squirrelmail is working. Anyone able to fill me in on what to do to get them to load up properly?

it is giving the following errors:
Warning: fsockopen(): unable to connect to localhost:110 in /var/www/html/webmail/inc/class.uebimiau_mail.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/webmail/inc/class.uebimiau_mail.php:66) in /var/www/html/webmail/msglist.php on line 21

and squirrelmail:
Warning: fsockopen(): unable to connect to localhost:143 in /var/www/html/squirrelmail-1.4.2/functions/imap_general.php on line 454

the pop3/smtp though is working properly. It is as if when i did all the updating the php4 imap support got erased. Anyone able to assist?

-Justin

jschurawlow
01-23-2005, 06:42 PM
Just noticed one of the previous thread posters had a problem with imap as well on their freebsd server. My server is running 4.10-stable I will also note and after this update if done as the admin instructed on this thread imap does not work anymore. Would someone with DA please update us on how to fix this?

-Justin

Webcart
01-23-2005, 09:34 PM
SSH into your server and type:
telnet localhost 110
You should see something similar to

[root@~ webcart]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 Welcome to vm-pop3d 1.1.6 <89581.1106541299@your.host.name>


This is to make sure your POP3 service is actually running.

Next thing, check how your PHP is compiled. From your SSH session, type:

cd public_html
cat > i.php
<?phpinfo();?>
^D

^D means Ctrl-D.
Then send us a link to see how your PHP is compiled and configured.

jschurawlow
01-24-2005, 12:20 AM
figured out where one problem lies with this. the ipv6 localhost in /etc/hosts was before ipv4 switched it around so it goes to the loopback address properly now. Not getting a response though now at all on localhost (127.0.0.1). www.comcrapst.net/phpinfo.php is how the php is presently compiled. I even restarted vm-pop3d still no go had to manually killall vm-pop3d it though as DirectAdmin did not want to stop it when i clicked the 'stop' link for it.

/edit getting a timeout on telnetting to localhost
telnet localhost
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Operation timed out
Trying ::1...

although my pop3/smtp is working using a pop3 email client it seems to just not be listening on the localhost for connections also.

jschurawlow
01-24-2005, 12:29 AM
Yet another problem solved by going in and killing the portsentry daemon I run to assit in port scan blocking. Aparently it yet again got in the way with a port conflict of 110 I see. I apologize for wasting posts here when I could of simply double checked for a port issue.

-Justin

Chrysalis
01-24-2005, 11:33 AM
yeah check portsentry config, because by default on the middle settings it blocks imap port which of course you dont want, I havent known it to block port 110 tho.

smiling_pig
04-04-2005, 04:20 AM
Its possible to update the PHP version to 4.3.11 on this apache build?

Thanks

interfasys
04-04-2005, 04:38 AM
Not with the official file, you have to mod it to get 4.11.

smiling_pig
04-04-2005, 04:46 AM
Sorry for the lamme question but is there a "How to" to update manually PHP?

I only found how to update to PHP5 and I think its different.

Thanks

interfasys
04-04-2005, 04:50 AM
http://www.directadmin.com/forum/showthread.php?s=&threadid=7601

sayaendo
04-09-2005, 08:37 PM
Hi,

Could someone enlighten me how to add Dom XSLT?

Thanks in advance!!

Best Regards,

:)

Webcart
04-09-2005, 08:42 PM
Originally posted by sayaendo
Hi,

Could someone enlighten me how to add Dom XSLT?

Thanks in advance!!

Best Regards,

:)

Here we go: http://help.directadmin.com/item.php?id=23

sayaendo
04-09-2005, 08:56 PM
Hi Webcart,

Thank you for your information.
Maybe my question was vague.
I would like to know what line I need to add.

http://us3.php.net/manual/en/ref.domxml.php

The server is live and I do not want to mess it up.:(

Best Regards,

Webcart
04-09-2005, 09:13 PM
Originally posted by sayaendo
Hi Webcart,

Thank you for your information.
Maybe my question was vague.
I would like to know what line I need to add.

http://us3.php.net/manual/en/ref.domxml.php

The server is live and I do not want to mess it up.:(

Best Regards,

Don't worry, you wont mess anything up :) Your current config will keep working until you do Apache restart, meaning you can try compiling the new config and if it fails in the middle, it will not affect anything. If it compiles OK, but doesn't bring Apache up after restart, just remove the lines you added and make a build again. You will revert to the original set up.

Regarding exact config lines: it would depend on the OS you use and your current system configuration.
The following might be sufficient:

--with-dom \
--with-dom-xslt \


make sure you have libxml and libxslt installed, though.

sayaendo
04-09-2005, 10:32 PM
Hi Webcart,

Thank you for your quick reply.

Just two more questions, please.
1. How do I know if libxml and libxslt are installed or not?

2. If not, how can I install them?
Do I need to download from
http://xmlsoft.org/ ?

Best Regards,

:p

Webcart
04-09-2005, 10:35 PM
Originally posted by sayaendo
Hi Webcart,

Thank you for your quick reply.

Just two more questions, please.
1. How do I know if libxml and libxslt are installed or not?

2. If not, how can I install them?
Do I need to download from
http://xmlsoft.org/ ?

Best Regards,

:p

It would help to know your OS ;)

sayaendo
04-09-2005, 10:37 PM
Hi Webcart,

OS is Fedora Core2.

Webcart
04-09-2005, 10:41 PM
Originally posted by sayaendo
Hi Webcart,

OS is Fedora Core2.

I believe you should have them available in RPMs.

To check whether you have these RPMs already installed, type

rpm -q -a | grep libxml
rpm -q -a | grep libxslt


Hope that helps.

sayaendo
04-09-2005, 10:58 PM
Hi,

libxslt-1.1.5.1 is installed.

However after I did ./build php, I've got error and it says:

Checking for DOM EXSLT support ... no not found
Configure error: Please reinstall the libxslt >= 1.0.3 distribution.

What's wrong with it?

Best Regards,

Webcart
04-10-2005, 02:43 PM
Originally posted by sayaendo
However after I did ./build php, I've got error and it says:
Checking for DOM EXSLT support ... no not found
Configure error: Please reinstall the libxslt >= 1.0.3 distribution.
What's wrong with it?


PHP build script can't find libxslt library. Find out where it is installed and add that path to --with-dom-xslt like this:

--with-dom-xslt=/PATH/TO/libxslt

interfasys
04-10-2005, 02:51 PM
That's the theory ;), but if you unpack a source package in the same folder as the other DA modules it should work.

Webcart
04-10-2005, 03:33 PM
Originally posted by interfasys
That's the theory ;), but if you unpack a source package in the same folder as the other DA modules it should work.

Actually, unpacking and using source of 3rd party library looks like a hard way of doing things to me: it might require other libraries, which you will have to download, unpack and [statically] compile with it. Or it might require dynamically linked libraries, which should be already installed on the system. If required dynamically linked libraries aren't available, the build will be completed successfully, but Apache won't start.

Using RPMs eliminates such problems because any RPM should include information about package dependencies.
Since libxslt is already installed on that system, it is now only necessary to provide the correct path to the library.

interfasys
04-10-2005, 04:27 PM
On FreeBSD systems it may not be as easy. Even though there is ports, it doesn't always work well fo PHP. It seems some packages have to be built with special instructions for "build" to work.

Webcart
04-10-2005, 04:31 PM
Originally posted by interfasys
On FreeBSD systems it may not be as easy. Even though there is ports, it doesn't always work well fo PHP. It seems some packages have to be built with special instructions for "build" to work.

Well, we are taking about FC2 right now :)
Could you still give me example of what couldn't be compiled from ports? I might have tips for you as well ;)

interfasys
04-10-2005, 04:47 PM
Well, PHP 4.3.11 doesn't compile, but it's another problem (zlib detection is broken).

With 4.3.10, with-dom doesn't work per example. It always returns not found, no matter what path I throw at it (none, /usr/local/, /usr/local/lib/, etc.)

It used to work though, so someone did a good job last time ;). The funny thing is that almost no custom install work except GD and freetype (from ports). I wonder if this has something to do with compat4 or compat/linux

Webcart
04-10-2005, 07:41 PM
Originally posted by interfasys
Well, PHP 4.3.11 doesn't compile, but it's another problem (zlib detection is broken).

With 4.3.10, with-dom doesn't work per example. It always returns not found, no matter what path I throw at it (none, /usr/local/, /usr/local/lib/, etc.)

It used to work though, so someone did a good job last time ;). The funny thing is that almost no custom install work except GD and freetype (from ports). I wonder if this has something to do with compat4 or compat/linux

Guess you updated the ports and found some broken build scripts. It sometimes happens, especially if you are lucky :)

I don't think it has anything to do with Linux compatibility, though.
Try using --with-dom without any path. It should use built-in extension then. Also, consider using packages rather than ports when installing libraries.

If you need more detailed help, please let us know exact version of FreeBSD, installed packages/ports and a full error message.

sayaendo
04-10-2005, 11:15 PM
Hi Webcart,

I add --with-dom-xslt=/usr/lib and have got the same error.

Webcart
04-11-2005, 12:18 AM
Originally posted by sayaendo
I add --with-dom-xslt=/usr/lib and have got the same error.

Try --with-dom-xslt=/usr :)

sayaendo
04-11-2005, 12:32 AM
Hi Webcart,

The same result. :(

Webcart
04-11-2005, 12:36 AM
Originally posted by sayaendo
The same result. :(

PM complete output of the build and the output of the following commands:

uname -a
rpm -q -a
locate xslt


EDITED: and the content of configure.php file.

ethanhoo
04-28-2005, 08:12 PM
Hello,

I did

./build clean
./build update
./build all

It compiles succesfully. After that I install Zend.

In <? phpinfo() ?>, gd is still showing:
Gd Version: bundled (2.0.28 compatible)

But the one being compiled is gd-2.0.33.

Is there a step I missed?

jmstacey
04-28-2005, 10:29 PM
Did you say yes to everything when it asked if you wanted to rebuild libraries even though they were installed?

If gd and other application sources have been updated you can just run ./build php

ethanhoo
04-28-2005, 10:32 PM
Originally posted by jmstacey
Did you say yes to everything when it asked if you wanted to rebuild libraries even though they were installed?

If gd and other application sources have been updated you can just run ./build php

Yes, I said yes to everything.

Chrysalis
04-28-2005, 11:05 PM
the mess up is bad configure.php switches, I did email john about this.

the current switches have an incorrect path to gd making the gd you compiling redundant for php and it cannot find it so uses the bundled version.

edit /usr/local/directadmin/customapache/configure.php

remove the 2nd gd line, and set the main line like this.

--with-gd=/usr/local \

so

--with-gd \
--with-gd-dir=/usr/local

is wrong.

also all the paths in there point to /usr/local/lib are wrong, I am still awaiting a reply from john on this.

jmstacey
04-28-2005, 11:21 PM
Should have looked there aswell. Since upgrading to php5 I've been building by hand skipping this problem.

ethanhoo
04-29-2005, 12:41 AM
Originally posted by Chrysalis
the mess up is bad configure.php switches, I did email john about this.

the current switches have an incorrect path to gd making the gd you compiling redundant for php and it cannot find it so uses the bundled version.

edit /usr/local/directadmin/customapache/configure.php

remove the 2nd gd line, and set the main line like this.

--with-gd=/usr/local \

so

--with-gd \
--with-gd-dir=/usr/local

is wrong.

also all the paths in there point to /usr/local/lib are wrong, I am still awaiting a reply from john on this.

It now shows 2.0 or higher. Does that mean it's 2.0.33 now?

jmstacey
04-29-2005, 01:13 AM
I would assume so :)

mr. green
04-30-2005, 03:43 AM
Originally posted by Chrysalis
the mess up is bad configure.php switches, I did email john about this.

the current switches have an incorrect path to gd making the gd you compiling redundant for php and it cannot find it so uses the bundled version.

edit /usr/local/directadmin/customapache/configure.php

remove the 2nd gd line, and set the main line like this.

--with-gd=/usr/local \

so

--with-gd \
--with-gd-dir=/usr/local

is wrong.

also all the paths in there point to /usr/local/lib are wrong, I am still awaiting a reply from john on this.

I'm getting compile errors if I change configure.php this way. Resetting it to the original configure.php yields a smooth compilation with a "bundled gd library" according to phpinfo.

interfasys
04-30-2005, 06:37 AM
Those GD switches only work if you compile or provide GD yourself.

Also, make sur you remove --with-xml, it doesn't exist anymore.

mr. green
04-30-2005, 12:55 PM
Originally posted by interfasys
Those GD switches only work if you compile or provide GD yourself.


I did, but it seems different versions of gd.h are present on my system (one in /usr/include and one in /usr/local/include ). Maybe I should change the dir in configure.php to point to the most recent gd.h ...

Chrysalis
04-30-2005, 01:36 PM
if its in /usr/local/include then you use /usr/local not /usr/local/include as the switch.

mine is also /usr/local/incude/gd.h and I use /usr/local correctly.

If the switch makes your compile crash out then try recompiling gd on the system, also does your compile fail on the configure stage or when it is actually compiling?

ethanhoo
05-02-2005, 08:57 PM
I tried to use the GD library for GIF. But it doesn't work.

In button.php:
<?php

header("Content-type: image/gif");
$string = $_GET['text'];
$im = imagecreatefromgif("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagegif($im);
imagedestroy($im);

?>

In gdtest.php:
<html>
<body>
<img src="button.php?text=testing">
</body>
</html>

In images directory, there's a button1.gif file.

The web browsers (FireFox and IE) does not display the image.

ethanhoo
05-03-2005, 01:38 AM
Do I need libgif?

Icheb
05-03-2005, 02:04 AM
Originally posted by ethanhoo
Do I need libgif?
Donno, but you could correct this:
$im = imagecreatefromgif("images/button1.png");
Check the php manual, a .png is not equal to a .gif :)

Rest is fine, I guess :D

ethanhoo
05-03-2005, 02:23 AM
No, no, no.

It was a typo when I post the message. The file extension is gif. I want to use GIF in the PHP file.

And, no, it doesn't display.

ctnchris
05-03-2005, 06:25 PM
Im having trouble compiling php on a new box running centos. I get the following:
ext/standard/html.lo(.text+0x3b): In function `determine_charset':
/usr/local/directadmin/customapache/php-4.3.11/ext/standard/html.c:658: undefined reference to `mbstring_globals'
main/rfc1867.lo(.text+0x1c): In function `php_mb_flush_gpc_variables':
/usr/local/directadmin/customapache/php-4.3.11/main/rfc1867.c:58: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0x34):/usr/local/directadmin/customapache/php-4.3.11/main/rfc1867.c:59: undefined reference to `php_mb_gpc_encoding_detector'
main/rfc1867.lo(.text+0xa1):/usr/local/directadmin/customapache/php-4.3.11/main/rfc1867.c:61: undefined reference to `php_mb_gpc_encoding_converter'
main/rfc1867.lo(.text+0xa47): In function `substring_conf':
/usr/local/directadmin/customapache/php-4.3.11/main/rfc1867