LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-02-2001, 08:35 PM   #1
cpinyit
LQ Newbie
 
Registered: Jun 2001
Posts: 5

Rep: Reputation: 0
Smile Apache and PHP


how to configure and combine the apache with PHP (yup, combine this 2 thing together, let it be a mail server)
thanx>
 
Old 07-02-2001, 09:32 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Download the source for php and apache.

Build php with config options:

Code:
'./configure' \
'--with-apache=/usr/src/apache_1.3.19' \
'--enable-track-vars' \
'--enable-shared'
Use the correct absolute or a relative path to your apache. Run make and then make install. When complete go to the apache dir and configure apache with the following:

Code:
./configure \
"--enable-shared=max" \
"--enable-module=rewrite" \
"--enable-module=most" \
"--with-layout=Apache" \
"--activate-module=src/modules/php4/libphp4.a" \
"--activate-module=src/modules/standard/mod_so.o"
This will staticly link in the php library into the httpd executable. Run make, then make install and it should be done.

Both the php and apache come with good build and install documentation, so I suggest that you read it. I may have left some details out.

Gary
 
Old 07-03-2001, 02:38 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
If you don't have the Apache source available (or don't want to rebuilt it) you can build PHP as a Apache module... I think you just issue --with-apxs when you run ./configure. Its been a while since I've needed to reinstall... (you could even build it as a traditional stand alone interpreter then use it the same way you would with any other CGI script although this looses a lot of the feature that makes PHP nice). I imagine that (don't quote me on this) using Crabboy's method would produce a slightly faster PHP implementation)

HTH

Jamie...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration