LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 11-18-2005, 10:07 AM   #1
mrkww
LQ Newbie
 
Registered: Nov 2005
Location: Alabama
Distribution: FC4
Posts: 1

Rep: Reputation: 0
Question FC4 and PHP


I am trying to get PHP to work that comes packaged with FC4. I have apache up and running and have a test html file that is coded with php. Is there something else I have to do in order for php to work? I figured it would be ready to go once FC4 and apache was started. Thanks in advance!
 
Old 11-18-2005, 01:38 PM   #2
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Rep: Reputation: 30
php enabling

Hi,
I am not using linux at this time or hve been for a while. I am just in the process of learning php for a job. Refer to your readme file to see what lines you need to add to your httpd.conf file. I am using it on windows with php. Im guessing it would be similiar. Maybe the auto confg isnt pointing to your php.dll or cgi in the right location. Its 2 or 3 lines you must add correctly or it wont work.

eg for cgi install:
Installing as a CGI binary

You need to insert these three lines to your Apache httpd.conf
configuration file to set up the CGI binary:

Example 2-5. PHP and Apache 2.0 as CGI
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php

# For PHP 4
Action application/x-httpd-php "/php/php.exe"

# For PHP 5
Action application/x-httpd-php "/php/php-cgi.exe"

or

Installing as an Apache module

You need to insert these two lines to your Apache httpd.conf
configuration file to set up the PHP module for Apache 2.0:

Example 2-6. PHP and Apache 2.0 as Module
# For PHP 4 do something like this:
LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

Note: Remember to substitute the c:/php/ for your actual path to
PHP in the above examples. Take care to use either php4apache2.dll
or php5apache2.dll in your LoadModule directive and not
php4apache.dll or php5apache.dll as the latter ones are designed to
run with Apache 1.3.x.

Note: If you want to use content negotiation, read related FAQ.


But that is only my versions of Apache and php being Apache 2, most are a little different, you need to look up installing on linux
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Windows XP & FC4 with FC4 already installed kt8993 Linux - General 8 10-18-2006 04:26 PM
FC4 eMachines ndiswrapper problem (don't think it has anything to do with FC4) unknownmosquito Linux - Laptop and Netbook 2 12-04-2005 11:50 AM
Problems on installing PHP 4.4 in FC4 MAGI Linux - Software 4 09-16-2005 09:20 PM
problems installing MySQL & PHP on FC4 alpineedge3 Linux - Newbie 9 07-23-2005 05:00 PM
Converting a FC4 dvd to FC4 cd set? prem1000 Fedora 2 06-17-2005 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 01:28 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
Open Source Consulting | Domain Registration