Web Hosting Talk







View Full Version : cpanel, php and apache


mrfunnyman2
10-31-2001, 11:17 PM
Yesterday I was trying to compile php with png support, but it looks like any change i make to php doesn't register.

For example i ran this command:


./configure --with-apxs=/usr/local/apache/bin/apxs --with-png-dir=/usr


And it looked like everything was good with no error.

When i run <? phinfo() ?> show nothing of PNG support.

GB library is already compiled.

Any help?

nexcess.net
11-01-2001, 06:35 PM
just curious..

you did do a:

make
make install

right?

Chris

cyansmoker
11-01-2001, 09:02 PM
Originally posted by nexcess.net
just curious..

you did do a:

make
make install

right?

Chris

LOL...

Well, no, seriously, you did, right?

mrfunnyman2
11-01-2001, 11:38 PM
of cource i did. :)

nexcess.net
11-01-2001, 11:52 PM
If you look at the compile date on the top of the php 'phpinfo' page does it reflect the time/date of your latest compile. I just want to get a handle on if apache actually is seeing the new php installation. It could be that the config/make went fine but apache isn't aware of the new version (for a myraid of reasons).

So, the question is, are you sure the phpinfo page reflects the php version you just installed?

Sorry for being so simplistic about this stuff but it's usually a minor dumb problem that causes these things to happen (this is not an insult, just speaking from experience ;) ).

Chris

JTY
11-02-2001, 12:32 AM
You did remember to restart Apache?

mrfunnyman2
11-02-2001, 12:52 AM
The date is July which the wrong date. Yes i restarted apache, I tried to compile multiple times but nothing works. Especially when cpanel is running.

mrfunnyman2
11-02-2001, 12:56 AM
i am compiling with APXS.

Here is the proccess i take:

./configure --with-apxs=/usr/local/apache/bin/apxs
make
make install
then copy the php.ini to the proper folder.

then i run phpinfo and no change shows up.

nexcess.net
11-02-2001, 05:49 PM
check mod_php4.so in your apache modules directory to see if it's date reflects that of your last 'make install'. if you are installing as root then it should be correct, but if installing as a normal user you wouldn't be able to overwrite the .so file.

also, check your httpd.conf to see exactly which mod_php4 you are loading, it may be in some other spot than the default.

Vince
11-02-2001, 06:40 PM
Hi,

Since you're running Cpanel, you should use the buildapache package provided by DarkOrb.
This will upgrade everything Apache related on your machine, and you can choose configuration options and such through a menu interface.

Simply download it from here (http://layer1.cpanel.net/buildapache.sea) and type chmod 755 buildapache.sea; ./buildapache.sea

This should do the trick.
Remember, always backup your Apache directory before you consider making any significant upgrades.

Vince.

Mivo
11-21-2001, 11:39 PM
Hi Vince,

Wouldn't it harm anything if all the modules presented by buildapache.sea were selected?

Thanks.

Originally posted by Vince
Hi,

Since you're running Cpanel, you should use the buildapache package provided by DarkOrb.
This will upgrade everything Apache related on your machine, and you can choose configuration options and such through a menu interface.

Simply download it from here (http://layer1.cpanel.net/buildapache.sea) and type chmod 755 buildapache.sea; ./buildapache.sea

This should do the trick.
Remember, always backup your Apache directory before you consider making any significant upgrades.

Vince.