Current time: 12-26-2024, 11:01 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
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #2
RE: php4 complaining about mysql, possible to only use php5 for whole system?
As far as i know, php 4 isn't supported anymore at the newer ispcp versions.

So if you use the stable Version, php4 won't work
04-16-2009 09:10 AM
Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #3
RE: php4 complaining about mysql, possible to only use php5 for whole system?
(04-16-2009 09:10 AM)Lucan Wrote:  As far as i know, php 4 isn't supported anymore at the newer ispcp versions.

So if you use the stable Version, php4 won't work

Yeah, and php5 has been out for awhile, would like to just use it.

I tried apt-get remove php4 and apt-get remove php

But it said they aren't installed, however if i type php[tab][tab] i get this:
Quote:# php
php php-cgi php4 php5-cgi

Also, I have a phpinfo() file in the same directory as the gallery install and it correctly shows php5 information.

I don't know why gallery is trying to access php4 and it's mysql extension
04-16-2009 09:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #4
RE: resolved: php4 complaining about mysql, possible to only use php5 for whole system?
I fixed my issue, there was some permission problems throughout the web directory.

php4 seems to be still on my system, but never used and is no longer on the installed packages list.

Thanks all for your help Smile
04-16-2009 11:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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