Hi, sorry for my late reply back here.
I don't want 2 PHP versions at the same time--I have one running, and I want to use another, and get rid of the first one
I used to --with-apxs2 option when compiling PHP and everything seemed to work fine, but there seems to be an issue with libphp5.so? When I try to restart Apache, I get this error:
Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: sapi_globals
I haven't been able to find much information on how to solve this, I don't know if I'm still missing a package or something, but how do I know which one? Any help with this would be greatly appreciated.
Thanks!
-----------------------------------------
Resolved! In case anyone else runs into this problem, turns out I needed to configure PHP with the "--with-pic" option in a *clean* php directory (I just unpacked the PHP zip again). Worked after that.
Also had to symlink httpd.conf to apache2.conf:
ln -s /etc/apache2/apache2.conf /etc/apache2/httpd.conf