Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-15-2006, 04:51 AM   #1
Registered: Jul 2006
Posts: 31

Rep: Reputation: 15
More than 2 Instances of PHP on same Server?

Hi, I've got my own webserver and I have different sites on it. I normally set these up using Plesk , useing Plesk to add PHP to each site if the site needs it. I only have the option of using PHP 5.x.x. A new site uses software which requires PHP 4.x.x. Can I FTP and install PHP 4.x.x specifically for that site only?
Thing is I dont understand how this work, I mean is there ONE SINGLE instance of PHP for my Whole server, and when I add PHP to a iste Im simply saying , OK , you have access to PHP OR is there a seperate instance for each site. If the second case is true, obviously that would mean each site had its own php.ini file. And of course if the fisrt is true, then there is only one instance of the php.ini file.

If the first case is true, what I can do about the required lower instance of PHP for the new site?

If the second case is true, which directory shoudl I install PHP 4.x.x?

Thanks in advance
Old 10-15-2006, 03:59 PM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
AFAIK you cannot add php4 and php5 modules to the same webserver. If you need to do will have to install a second apache, and bind it to a different port, or else they will fight over port 80. Obviously this is not an acceptable solution.

Get another server that can run apache/php4 or update the software to use php5...
Old 10-16-2006, 09:30 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 10

Rep: Reputation: 0
How do I find out which version of php comes with Fedora 5? I don't have an install but really need a distro that comes with PHP5, just looking at the Fedora site and can't seem to find which version they ship with.

Many thanks

Old 10-17-2006, 03:00 AM   #4
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
dwmartini, please start your own thread the next time as there is no real relation with the original post (please corretc me if I'm wrong).

Last edited by Wim Sturkenboom; 10-17-2006 at 03:01 AM.
Old 10-18-2006, 03:32 AM   #5
Registered: Jul 2006
Posts: 31

Original Poster
Rep: Reputation: 15
ok, how can I down grade the php version. I mean shoudl I unistall php first? then install a lower version. Into which folder should I install php into.

Also a side line. I installed Java somewhere when I first got the server. I had and still dont know what Im doing, but where should I have installed Java? I want all the websites to be able to use Java if they need to. This isn't a hosting/resller thing by the way. Just me and a couple of websites.

Last edited by gloveny; 10-18-2006 at 03:43 AM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba, multiple server instances crispyleif Linux - Software 2 04-03-2006 11:28 AM
configuring a server so that clients can execute different instances of same app. drsparikh Linux - Networking 3 02-18-2006 09:24 AM
Multiple instances of PHP cubax Linux - Newbie 6 12-30-2004 09:04 PM
multiple instances of PHP installation cubax Linux - General 1 12-29-2004 08:03 PM
php: different mail server from php.ini rayds Programming 0 09-14-2004 04:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 PM.

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