Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th February 2006, 18:03
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default Howto suggestion suse PhP ver 4 + Ver 5

edit: forget all this junk ( I have edited it all out anyway), see later thread in this post. Thanks to Falko for getting me back on the right track.

=========original post before edits =====================
After following the suse 10 howto (and despite my fooling around and breaking a few things ) I now have a fully operational web and email server that works with secure mail transport with every mail client I have tried and can remotely add users etc.

THANK YOU !!!

Wait, wait for it, you know its coming -



But, (see, you knew it was coming, the dreaded "But" ) now that I am all setup my users almost instantly asked me for a group calendar and shared contact/address book program. The problem is everything I find is for PHP4 and wont, at least the 3 I tried, run on PHP5. I found the tutorials on debian on running PHP5 as a mod and PHP4 as CGI and while I tried to emulate them on SuSE, I did not get far.

As it appears that almost all the mature applications are PHP4 I need to be able to run it. Actually I think I would prefer to have PHP4 as the default thru-out the system. The good news is that the sever is still just a test box and not in production so I can do anything to it I want for the next couple of weeks.

Would love a SuSE 10 how to on getting PHP4 on the machine after the perfect install or as an option during the initial perfect setup. If possible with PHP4 installed as the primary (highest performance) PHP version and PHP5 as the alternative.

Perhaps my perception of applications is incorrect but it appears from my 2 days of digging thru sourceforge and freshmeat that it will be a while before we have php5 mature apps.

Anyway, give it some thought, even a quick and dirty do this, do this, do this, to get php4 on as a CGI alternative would be greatly appreciated (and save my ass ) I know you are super busy so thanks for even considering it.



Back to goggle hoping to find enough info to do it myself but with small hope of success.

Best Regards:
Bill Parrish.
<old csh programmer overwhelmed with apache and system stuff >

Last edited by wwparrish; 13th February 2006 at 03:06.
Reply With Quote
Sponsored Links
  #2  
Old 12th February 2006, 22:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

There shouldn't be many differences between SuSE and Debian.
Install SuSE's PHP4 Apache module and PHP5 as CGI, then enable the PHP4 module in the Apache configuration and add PHP5 as CGI. Of course, paths differ on both distributions, but the concept is the same.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th February 2006, 01:40
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

my god man, dont you sleep ! thanks. at a loss on what to do next either to get back to where I started or to get php4 installed.

reread your post, goint to try that, uninstall apache mod php5, install apache mod php4 then just php 5 (cgi -module only, not quite clear on that. )

well php4 is all I really need atm anyway. thanks again !

Last edited by wwparrish; 13th February 2006 at 03:08.
Reply With Quote
  #4  
Old 13th February 2006, 01:55
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

ok, deleted all packages concerned with php off the machine
rebooted
going to install just apache php4 mod and and dependent sw and test php4.

/pray++
Reply With Quote
The Following User Says Thank You to wwparrish For This Useful Post:
AbannyvabVask (20th December 2013)
  #5  
Old 13th February 2006, 03:01
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default SuSe10 perfect setup with php5 down-rev to php4 quick and dirty.

haha as usual I overthink everything, All that is needed is below. Ignore the crap in the first thread of this post.

to down rev the suse 10.0 perfect install to use php4 instead of php5 the following worked for me. Note this was a clean system with only a couple of empty web sites and test emails users. Your mileage my vary.

Might not be needed but I shut down apache and made sure it was off during the entire process until I was ready to test.

shutdown apache /etc/init.d/apache2 stop
use yast and remove everything concerned with php
(reboot = probally not needed but I did it anyway. )
use yast and grab the apache2 php4 mod
use yast to resolve any dependencies by loading any addional ph4 modules needed.
checked the vhosts file (which had the php and php4 stuff in it already.
just for reference:

...
...
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web5/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler php-script .php4
AddType application/x-httpd-php .php .php3 .php4 .php5
Action php-script /cgi-bin/php4
ErrorLog /var/www/web5/log/error.log
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
...
...

restarted apache2

check log - clean !!!!!!!!

point browse at the test file (see the how-to)

BINGO !!!
PHP Version 4.4.0
Server API Apache 2.0 Handler


apps might require additional php4 modules just keep an eye on your logs if something does not work.

Last edited by wwparrish; 13th February 2006 at 03:10.
Reply With Quote
  #6  
Old 2nd April 2006, 18:17
M.Behrens M.Behrens is offline
Junior Member
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello!

My Server is installed with SUSE 9.3 Prof.

I have some questions to this HowTo.

First I stop the Apache with /etc/init.d/apache2 stop
Then I go in the Yast2 --> Software --> install or delete software --> search
Now I search for php
Then I delete "apache2_mode_php5" (Is that right?) and "PHP5" as soon as "PHP5-..." (That are 50 packages) (Is that right?)
Now I reboot the Server.
Then I go in the Yast2 --> Software --> install or delete software --> search
Now I search for php and install "apache2_mode_php4", "PHP4" and "PHP4..." (That are only 43 packages) (Is that right?)
I need the following packages "mod_php4-..." (3 packages)????????
Than I start the Apache.

Why are then still the following entries in the vHost (php5 is deleted or not, I which wrongly understood?)?

...
...
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web5/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler php-script .php4
AddType application/x-httpd-php .php .php3 .php4 .php5
Action php-script /cgi-bin/php4
ErrorLog /var/www/web5/log/error.log
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

...
...

Thanks for the assistance!

Last edited by M.Behrens; 2nd April 2006 at 18:19.
Reply With Quote
The Following User Says Thank You to M.Behrens For This Useful Post:
AbannyvabVask (22nd December 2013)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unknown filter was not added: PHP ddelbia Installation/Configuration 31 7th October 2008 21:30
[error] an unkown filter was not added: PHP Arien Installation/Configuration 12 7th October 2006 15:17
Howto Suse 10 x86_64 and ISPConfig SeaWolf Tips/Tricks/Mods 10 28th January 2006 22:07
Can not access website after uploading brianetilley Installation/Configuration 21 11th January 2006 20:43
Sharedip Ivan Installation/Configuration 3 7th December 2005 16:36


All times are GMT +2. The time now is 17:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.