LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-24-2005, 12:33 AM   #1
Eric45008
LQ Newbie
 
Registered: Jan 2005
Location: Michigan, USA
Distribution: Slackware 10.0
Posts: 24

Rep: Reputation: 15
Php5 >> Php4


I have been using PHP 4 for a while now and it worked great on my server. I upgraded to PHP5 and now 90% of my php scripts show up blank. Is there anyway to make Apache2 load the old modules? What files do I need to change? -Eric
 
Old 04-24-2005, 02:40 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
just change the php module apache loads in httpd.conf. But if you installed from a slackpack, your previous installation has prolly been wiped out. So, easiest way is to first remove the php package, then install again the php4 package you had.

Remember tho, that with /var/log/apache2/error_log at your usage, you could allways solve the problems, instead of fleeing to a previous version.
 
Old 04-24-2005, 03:21 AM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You can also try to run the scripts from command-line, sometimes usefull for debugging. And when they show "blank pages" it's often because the script had an error before showing anything.
 
Old 04-24-2005, 03:48 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
I think this could be something to do with register globals, you may have to rewrite your scripts using super global arrays.
 
Old 04-24-2005, 08:18 AM   #5
Eric45008
LQ Newbie
 
Registered: Jan 2005
Location: Michigan, USA
Distribution: Slackware 10.0
Posts: 24

Original Poster
Rep: Reputation: 15
Well, it's not always errors. When I installed PHPBB it rejected it saying that the PHP version was incompatible with MySQL 4.

Also, how do you uninstall a package?
 
Old 04-24-2005, 08:41 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
A lot of forum software and content management systems are not yet compatible with php5. Phpbb works with mysql 4, I use it myself. To uninstall, go to the directory from which you installed and do "make uninstall" as root.
 
Old 04-24-2005, 08:43 AM   #7
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
See this url to check compatibily between PHP4 and 5
http://fr2.php.net/manual/en/migrati...compatible.php

To uninstall a package : removepkg <package name> or use pkgtool
 
Old 04-24-2005, 08:43 AM   #8
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
If the package was installed from a slackware package (.tgz) you can just do as root:
removepkg packagename
 
Old 04-24-2005, 01:06 PM   #9
Eric45008
LQ Newbie
 
Registered: Jan 2005
Location: Michigan, USA
Distribution: Slackware 10.0
Posts: 24

Original Poster
Rep: Reputation: 15
I removed:

php4
php5
apache2


Apache refuses to start. I REALLY need to get this thing running:

Right after I removed apache2 I deleted all the apache2 directories on the server and tried to install the apache2-php4 package on linuxpackages.net:

root@ehost:~# installpkg apache2.tgz
Installing package apache2...
PACKAGE DESCRIPTION:
Executing install script for apache2...
cat: etc/apache2/httpd.conf: No such file or directory

Last edited by Eric45008; 04-24-2005 at 01:39 PM.
 
Old 04-24-2005, 01:43 PM   #10
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
Why not use apache version (1.3.33) that comes with slackware ?
It works well with php here
 
Old 04-24-2005, 01:52 PM   #11
Eric45008
LQ Newbie
 
Registered: Jan 2005
Location: Michigan, USA
Distribution: Slackware 10.0
Posts: 24

Original Poster
Rep: Reputation: 15
I prefer Apache2...how would I get back to 1.3 anyway and install php + mysql for it? Hmm I think I'm gonna have to reinstall slackware and reinstall all the packages.
 
Old 04-24-2005, 02:10 PM   #12
Eric45008
LQ Newbie
 
Registered: Jan 2005
Location: Michigan, USA
Distribution: Slackware 10.0
Posts: 24

Original Poster
Rep: Reputation: 15
I finally got the package to install correctly. I get this error when I try and start Apache:

# apachectl start
/usr/sbin/httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory

Please help.
 
Old 04-24-2005, 04:34 PM   #13
Eric45008
LQ Newbie
 
Registered: Jan 2005
Location: Michigan, USA
Distribution: Slackware 10.0
Posts: 24

Original Poster
Rep: Reputation: 15
Removed apache2-php package again, added apache2 alone, then added php4 alone. Apache2 works great without php but with php:

Cannot load /usr/modules/libphp4.so into server: /usr/modules/libphp4.so: cannot open shared object file: No such file or directory
 
Old 04-24-2005, 05:09 PM   #14
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Try to locate libphp4.so in your system and make a symlink to it in /usr/modules/ so apache can find it. I think you can also achieve this by modifing apache config files and set it to look for libphp where it's.
 
Old 04-24-2005, 05:32 PM   #15
Eric45008
LQ Newbie
 
Registered: Jan 2005
Location: Michigan, USA
Distribution: Slackware 10.0
Posts: 24

Original Poster
Rep: Reputation: 15
I did that before, when I did it said something about an undefined variable.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 to PHP4 on FC4? kz26 Fedora 5 10-24-2005 05:09 AM
replacing PHP4 with PHP5 in SuSE 9.2? paganprogrammer Linux - Software 3 07-03-2005 01:25 AM
Slack 10.0 PHP4 -> PHP5 update pdxluddite Slackware 2 03-29-2005 01:37 AM
upgradeing from php4 to php5 mgarcia001 Debian 0 09-30-2004 07:31 PM
installing PHP4 and PHP5 on apache jerry_redhat Linux - Software 2 07-08-2003 10:27 PM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration