View Full Version : Reinstalling PHP
Tried installing Zend optimizer and something keeps it from working properly so we've turned it off. Now php is acting funny. It works for some accounts and not for others. Just wondering how to reinstall PHP or if there is something to do to reconfigure it.
-Seth
S2S-Robert
12-15-2003, 06:04 PM
I believe you have to use the custom apache build system, but I'm not sure how this works.
Why don't you try finding out and perhaps make a HOWTO? *hint* ;)
ProWebUK
12-15-2003, 06:42 PM
Just recompile apache and run the build php during the script process. Check the custom apache sysytem thread for information, i know John has posted a few times information regarding upgrade procedures there.
If you wish you can compile directly from source also, just use your current configure line found in phpinfo() :)
Chris
loopforever
12-15-2003, 07:09 PM
Just replace your php.ini file with the original one (you DID make a backup, right?!) and restart apache. That will solve your problem. Don't waste your time recompiling PHP and Apache...
ProWebUK
12-15-2003, 07:14 PM
locate php.ini
I know DirectAdmin has spares hanging around somewhere :p
FarCry
12-15-2003, 10:33 PM
You need to re-make zlib with a staticly (? maybe dynamic) linked .so file.
There was a huge discussion on it relating to why whois.cart was making servers seg fault. do a seach for whois.cart.
http://www.directadmin.com/forum/search.php?s= <-- your best friend on these forums!
ProWebUK
12-15-2003, 10:47 PM
Originally posted by phriendly-Mark
You need to re-make zlib with a staticly (? maybe dynamic) linked .so file.
Depends. could be the case could not be.. theres always a chnace php is simply switched off for certain domains :D
Dont forget, he said he turned zend OFF.
Either way its probably worth recompiling zlib :)
Chris
I'll give it a try. DA have a php.inc laying around, not sure if I saved my backup...:eek:
ProWebUK
12-16-2003, 08:42 AM
I'm pretty sure zend makes a backup of your php.ini anyway. Last time i used it im usre it created php.ini.bak or similar.
If you cant find one just run:
# updatedb
# locate php.ini
Chris
/usr/local/lib/php.ini
/usr/local/lib/php.ini-zend_optimizer.bak
/usr/local/directadmin/customapache/php-4.3.3/php.ini-dist
/usr/local/directadmin/customapache/php-4.3.3/php.ini-recommended
/usr/local/directadmin/customapache/php-4.3.3/pear/tests/php.ini
/usr/local/directadmin/customapache/ZendOptimizer-2.1.0a-Linux_glibc21-i386/zui_files/php.ini
/usr/local/directadmin/customapache/ZendOptimizer-2.1.0b-Linux_glibc21-i386/zui_files/php.ini
/usr/local/directadmin/customapache/ZendOptimizer-2.0.3-Linux_glibc21-i386/zui_files/php.ini
/usr/local/Zend/etc/php.ini
/usr/local/Zend/etc/php.ini-zend_optimizer.bak
Seems it's all over the place :D Any ideas as what I should do hear?
Thanks!
Seth
ProWebUK
12-16-2003, 06:01 PM
Originally posted by Seth
/usr/local/lib/php.ini
/usr/local/lib/php.ini-zend_optimizer.bak
/usr/local/directadmin/customapache/php-4.3.3/php.ini-dist
/usr/local/directadmin/customapache/php-4.3.3/php.ini-recommended
/usr/local/directadmin/customapache/php-4.3.3/pear/tests/php.ini
/usr/local/directadmin/customapache/ZendOptimizer-2.1.0a-Linux_glibc21-i386/zui_files/php.ini
/usr/local/directadmin/customapache/ZendOptimizer-2.1.0b-Linux_glibc21-i386/zui_files/php.ini
/usr/local/directadmin/customapache/ZendOptimizer-2.0.3-Linux_glibc21-i386/zui_files/php.ini
/usr/local/Zend/etc/php.ini
/usr/local/Zend/etc/php.ini-zend_optimizer.bak
Seems it's all over the place :D Any ideas as what I should do hear?
Thanks!
Seth
The one Zend would have backed up is more than likely:
/usr/local/lib/php.ini-zend_optimizer.bak
and i would guess the default DirectAdmin one is:
/usr/local/directadmin/customapache/php-4.3.3/php.ini-recommended
Chris
ProWebUK
12-16-2003, 06:26 PM
Also ensure you restart apache for these changes to take effect.
Chris
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.