You are not logged in.

#1 2010-05-29 17:54:02

orlandu63
Member
Registered: 2010-03-29
Posts: 29

[solved] php-apache is not working

i have been going at this for almost 2 hours and believe to have exhausted all potential solutions.

what i have done:

1. installed apache (2.2.15) and php-apache (5.3.2) through pacman
2. altered apache's configuration file. the relevant pieces are:

LoadModule mime_module modules/mod_mime.so
LoadModule dir_module modules/mod_dir.so
LoadModule php5_module modules/libphp5.so
AddHandler application/x-httpd-php .php # replacing with SetHandler or AddType doesn't work either
AddHandler application/x-httpd-php-source .phps

3. created and attempted to access a basic php file

what i should see: the output of the interpretation of the php file

what i see: the source code of the php file

i suspect that apache is ignoring the AddHandler directive for one reason or another. Worthy of note is that apache doesn't throw an error if the second parameter to AddHandler (the handler name) is invalid -- is this normal behavior?

(also, error logs don't mention a thing even in the most verbose level)

does anyone know what i'm doing wrong or how to make php-apache work?

extra information:

patrick@scrap ~ % apachectl -M
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 authz_host_module (shared)
 mime_module (shared)
 dir_module (shared)
 php5_module (shared)
Syntax OK

Last edited by orlandu63 (2010-05-29 19:09:55)

Offline

#2 2010-05-29 18:31:35

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: [solved] php-apache is not working

LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf

That's everything I needed to add to /etc/httpd/conf/httpd.conf.


1000

Offline

#3 2010-05-29 19:09:44

orlandu63
Member
Registered: 2010-03-29
Posts: 29

Re: [solved] php-apache is not working

it turns out that i originally tuned php's configuration file for a usage under fastcgi and set the engine parameter to Off, which must be on under apache. i apologize for wasting the bandwidth of whomever has clicked this thread.

Last edited by orlandu63 (2010-05-29 19:10:14)

Offline

Board footer

Powered by FluxBB