Page 1 of 1
Error on one server but another
Posted: Mon Jun 25, 2007 11:05 pm
by pinehead18
Fatal error: Call to undefined function: stripos()
Any reason this would give me an error on my server but not on any other box i put it on?
I know its not the code since it works on 2 other servers.
Thanks for the advice.
Posted: Mon Jun 25, 2007 11:12 pm
by feyd
Could it have something to do with the following quote from the manual?
stripos() wrote:stripos
(PHP 5)
stripos — Find position of first occurrence of a case-insensitive string
Posted: Mon Jun 25, 2007 11:31 pm
by pinehead18
Well according to debian i have php5 installed.
But not according to phpinfo
Suggestions on that/
Posted: Mon Jun 25, 2007 11:39 pm
by Benjamin
Install PHP 5 or use a different method.
Posted: Mon Jun 25, 2007 11:46 pm
by pinehead18
Sorry let mereword this.
Everythign was working fine. Except i needed php5.
I do a apt-get isntall libapache2-php5
Only problem is i only have apache1.
Now all my domains stoped pointing to the right spot and now point to "it works"
I checked the config files but they are all the same.
Any suggestions?
Posted: Mon Jun 25, 2007 11:59 pm
by Benjamin
I'm guessing that your httpd.conf file was overwritten. There should be an auto generated backup. See if you can find httpd.conf.bak
If you find that, rename the current httpd.conf to httpd.conf.new and rename httpd.conf.bak to httpd.conf and restart apache.
I have no clue if that will restore things or not, and even if it does the file may require some modifications to get it working with the new version of PHP.
That's about all the advice I can give you.
Posted: Tue Jun 26, 2007 12:18 am
by feyd
Is there a reason you didn't use the following?
Code: Select all
apt-get install php5 libapache-mod-php5
Posted: Tue Jun 26, 2007 6:52 am
by pinehead18
I did, the first time i accidently did libapache2 which messed it all up since i have apache 1.
But i think i fixed it. And did libapache says its installed but it wont add the mods to httpd.conf so it wont work on my site.
Any ideas how to get it working?
Posted: Tue Jun 26, 2007 7:10 am
by feyd
Manually modify your httpd.conf.
Posted: Tue Jun 26, 2007 6:01 pm
by pinehead18
I did that.
When i added the libphp5.c or whatever the whoel thing stopped working and just add module did not fix the problem