Re: Apache, PHP4 and mysql in fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Do, den 21.07.2005 schrieb Jeffrey Lee um 19:03:

> I cant seem to get php4 to work in apache on fc4. My php install was
> done first then apache2. Php was compiled from source because I cant
> find it on yum. Apache was installed from yum. Any help is
> appreciated.

> Jeff

You need to tell Apache to handle PHP, which is done by the Fedora
packages through an /etc/httpd/conf.d/php.conf file.

$ cat /etc/httpd/conf.d/php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
 
LoadModule php4_module modules/libphp4.so
 
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddType application/x-httpd-php .php .inc
 
#
# Cause PHP interpreter to display files with a .phps extension as
source.
#
AddType application/x-httpd-php-source .phps
 
#
# Add index.php to the list of files that will be served as directory
# indexes.
#

These instructions can be placed into the httpd.conf.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 19:13:34 up 5 days, 23:46, load average: 0.17, 0.14, 0.14 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux