Forum Moderators: coopster
why two version? i'll explain:
So i was trying to get the GD library working with my app. specifically it was telling me that it couldn't find the imagejpeg function. no biggie i thought, an excuse to upgrade to 4.4.0 i'll just recompile php with gd and everyone will be happy.
i used this configure directive:
[code]
./configure
--with-apxs=/usr/local/apache/bin/apxs
--with-xml
--enable-bcmath
--enable-calendar
--enable-ftp
--enable-magic-quotes
--with-mysql=/usr
--enable-discard-path
--with-pear
--enable-sockets
--enable-track-vars
--enable-versioning
--with-zlib
--with-gd <--- w0ot!
[\code]
anyways so i restart apache and voila... phpinfo() is telling me i have php4.4.0 - yay for me, so i go to resize my image and i'm stuck with the error. i gave up
This morning i was going through phpmyadmin and decided to check the php version it's using. and sure enough, a phpinfo() provoked from there is still 4.3.11 - so i'm wondering is it possible that apache is still pointing to the original php, and if so - where?! the problem is this stupid cpanel program they installed. i wanted a clean slate so i knew what was where. but oh well
With the cPanel/WHM interface, you control your PHP and Apache configurations through the WHM. You go in there and from the list of options, goto "Software" and under Software you choose "Update Apache"
From that page, you pick which Apache version you want, the apache modules you want, and if you've selected the PHP module, you can pick which PHP version you want installed and which extensions you want installed with it.
Then click on the "Start Build" button and it will do its thing and you are good to go ;)
You enter WHM by going to any of the following:
[yourserverip...]
[yourserverip:2086...]
or for an SSL connection
[yourserverip...]
[yourserverip:2087...]
The login user is "root" and the password is your root users password. Yeah this does seem kind of dumb logging in with root, but connect over SSL and you'll be fine.
Whooda thunk? That cpanel junk is driving me crazy. But that was useful. Oh my, that rules. But what do i do about the php 4.4 that i installed previously? will this overwrite it? I haven't really checked.
but another question has arisen. Now all the sessions are screwed up. i keep getting the message permission denied. I think it might have something to do with suEXEC so i chowned /tmp to nobody.nobody and chmod'd it to 666; but to no avail. It's saying to please verify that the current setting of session_save_path is correct. (/tmp) and it is... it has been. lol what did i break this time?!
I recall having alot of problems with the suexec, and eventually just turned it off and let PHP run as the apache user (nobody)