OK, so NO ONE helped me on this, so I had to figure crap out on my own. SO! The good news is that I successfully upgraded PHP. Now, I am a firm believer in the way forums work, so just in case someone has the same situation as me, here is what I did:
I figured out the my version of PHP
was in fact dynamic, but not for the reasons listed above. If you make a file and do a <?php phpinfo() ?> you can see how PHP was configured. If you see --with-apxs anywhere, then your PHP is dynamic. apxs is an apache program that lets you add modules.
Now, if you see --with-apache, then PHP is static.
I DID NOT uninstall/delete anything during the upgrade process. If your PHP is dynamic, it's a little easier to upgrade in that there are fewer steps. Here is what I did:
Download the newest TARBALL from php.net. Untar it to /usr/local/src/ (I made the src directory and that's were I will put all my original sources.)
Then go into the source directory it just made, configure, make the binaries, and install it:
Code:
cd php-4.x.x/
./configure --with-apxs=/usr/local/apachessl/bin/apxs --with-mysql --enable-trans-sid --enable-debug=no --enable-track-vars --with-gd --with-ttf --with-freetype-dir --enable-gd-native-ttf --with-zlib-dir
make
make install
I backed up my old php.ini file and put the php.ini-dist file in it's place:
Code:
cd /usr/local/lib
cp php.ini /root/php.ini.BAK
cd /usr/local/src/php-4.x.x
cp php.ini-dist /usr/local/lib/php.ini
That's it! If you have a static module, I know you have to recompile apache, but I haven't done it before, so I don't want to tell someone something that crashes their server. Sorry.