You are not logged in.

#1 2008-09-09 18:49:37

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

apache + php problem

I cant get my apache working with php .. I stuck to the howto,however, without success .. Here is my apache.conf http://pastebin.com/m17ef877 I've got both php and apache installed.Any ideas ?

Offline

#2 2008-09-09 20:56:38

boondox
Arch Linux f@h Team Member
From: Ft. Lauderdale, FL
Registered: 2008-08-05
Posts: 6

Re: apache + php problem

Do you get any errors?
What happens when you run a php page?

The one thing i did notice on my lamp server is i cant just use

<? phpinfo(); ?>

but i needed to use php in-front of the code block

<?php phpinfo(); ?>

I also noticed you didnt add the following in the <IfModule mime_module> section of the httpd.conf but i don't know if that's required or not.

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Hope this helps, even a little bit to get you into the right direction.


..~::[ boondox ]::~..

Offline

#3 2008-09-10 08:30:16

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: apache + php problem

I dont get any errors .. it just shows a blank page when I open a index.php file.I tried what you told but It still isn't working.I'm not sure whether the php is compiled with apache2 support because i've this problem everytime when i tried to run LAMP and the only decision that helped was to rebuilt php on my own with apache2 support..Any other ideas?

Offline

#4 2008-09-10 12:13:34

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: apache + php problem

I didn't install LAMP. I just installed Apache2, PHP5 and Postgresql and everything worked almost immediately OOB.

Zl.

Offline

#5 2008-09-10 16:16:00

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: apache + php problem

Insane-Boy wrote:

I dont get any errors .. it just shows a blank page when I open a index.php file.I tried what you told but It still isn't working.I'm not sure whether the php is compiled with apache2 support because i've this problem everytime when i tried to run LAMP and the only decision that helped was to rebuilt php on my own with apache2 support..Any other ideas?

What are your error log settings in /etc/php/php.ini?

Offline

#6 2008-09-10 17:14:47

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: apache + php problem

Where could a php log file be seen ?

Offline

#7 2008-09-10 17:18:02

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: apache + php problem

As reported here -> http://wiki.archlinux.org/index.php/LAMP
add

LoadModule php5_module  /usr/lib/httpd/modules/libphp5.so
AddHandler php5-script php

to your httpd.conf


Till the last battle, till the last bottle.
aur - twitter

Offline

#8 2008-09-10 19:35:20

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: apache + php problem

Still doesnt work..... when i open the page it shows only a blank page, nothing more :[

Offline

#9 2008-09-10 19:51:04

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: apache + php problem

It all works now.. it wasn't a php problem, it was a permission problem.Thank you, all tongue

Offline

#10 2008-09-13 18:17:40

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: apache + php problem

Insane-Boy wrote:

It all works now.. it wasn't a php problem, it was a permission problem.Thank you, all tongue

I'm having the same problem, where was the permission error?

Last edited by synthead (2008-09-13 18:18:18)

Offline

Board footer

Powered by FluxBB