LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-24-2008, 02:42 PM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
Can't find doc or tutorial on how to add PHP5 to Apache 1.


I've googled and searched here, but I can't find the information. I'm sure this is a simple procedure, but no idea what it is. I already have PHP5 and apache 1 installed. I just don't know how to make them work together.

Any help is appreciated.
 
Old 05-24-2008, 02:48 PM   #2
jcvlz
LQ Newbie
 
Registered: May 2008
Posts: 14

Rep: Reputation: 0
Depending on your distro and whether you're using a package manager (and which one), most pkg managers should do it automatically.

I'm pretty sure you should be able to find all the docs you need between the following 3 sites:

1) Your distro's docs
2) http://www.php.net/
3) http://httpd.apache.org/
 
Old 05-24-2008, 04:41 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,289

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Did you look at the official PHP documentation on this subject?
 
Old 05-25-2008, 11:38 AM   #4
centralb
LQ Newbie
 
Registered: Jan 2007
Distribution: Redhat, Debian, "Custom"
Posts: 27

Rep: Reputation: 15
To start, it would help for you to provide some details:
  1. How is apache installed -- is it through a package manager (rpm or apt, ofr example) or did you download and compile it from source?
  2. Are you looking to have Apache1 working with PHP5 only or also with MySQL? If so, what versions do you have installed, or plan to install -- specifically (Apache 1.xx, PHP 5.xx, MySQL x.xx).
  3. Is there any specific software you plan to use once PHP5 and Apache are setup?
 
Old 05-29-2008, 12:23 AM   #5
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
Thanks for the replies.

I did try both of those websites, but neither had documentation for apache 1.3 and php5 together. I've tried to extrapolate from different versions but with no success.

I'm now trying to do this on Ubuntu Feisty, using apt-get to install apache and php, but I'm open to alternative installation methods.

If I simply type:

$sudo apt-get install apache

and...


$sudo apt-get install php5

my php files are treated as uploads by a browser (which doesn't do that on properly setup sites).

Yes, I would like to use mysql. The reason I haven't gone for a more express LAMP installation is that lamp--I believe--installs apache2, and also because this is somewhat of an academic exercise for me. I'd like to learn a little about apache and how it's modules are handled, and also get php5 running at the same time.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the proper way to add modules to an installation of php5? EnderX Linux - Software 5 02-21-2007 01:59 AM
Where can I find a php v4.4.4 doc book? naihe2010 Programming 3 11-30-2006 11:22 AM
Add GD Support to PHP5 on RHEL4 U4 SlaughterB Red Hat 0 11-12-2006 12:00 AM
how to add mysql to php5 connectivity issues Lorend Linux - Software 4 11-03-2006 05:16 AM
Where should I find the KDevelop Doc. playback Programming 2 02-15-2004 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration