Current time: 05-17-2024, 01:17 PM Hello There, Guest! (LoginRegister)


Post Reply 
resolved: php4 complaining about mysql, possible to only use php5 for whole system?
Author Message
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #1
resolved: php4 complaining about mysql, possible to only use php5 for whole system?
Hi everyone, I think im still recovering from my upgrade from etch to lenny. I have two gallery2 installs and both fail to work.

Both sites output "Error" to the browser.

If I run them from the shell like so:
Quote:# php5-cgi -f main.php
...
outputs correct html!

however, it fails if i do this:
Quote:# php4 -f main.php
PHP Warning: mime_magic: type search/400 \\input text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\section text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\setlength text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentstyle text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\chapter text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentclass text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform invalid in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20050606+lfs/mysql.so' - /usr/lib/php4/20050606+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

I am guessing that apache for the gallery folder is trying to use php4 and the mysql extension is no longer found.

I am wondering if it is possible to have the whole system just use php5, rather than having both php4 and php5. Some how i think my system is confused with which php version to use.

Any ideas? Thanks!
James
(This post was last modified: 04-16-2009 10:57 AM by jemmrich.)
04-16-2009 09:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
resolved: php4 complaining about mysql, possible to only use php5 for whole system? - jemmrich - 04-16-2009 09:04 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)