Results 1 to 3 of 3
Hello,
I have been trying to run some php files for a website i am currently building, but it seems that apache does not allow me to access them.. every ...
- 02-20-2011 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 2
apache wont run php.. squeeze.. help?
Hello,
I have been trying to run some php files for a website i am currently building, but it seems that apache does not allow me to access them.. every time i try to access them i get a forbidden warning and it shows a new window in order to download the file..
at first i though it was a permissions problem so i did chmod og+wx [filename] to the files i needed to run.. but after that i still could not run the php files..
also, i have linked my files to the /var/www/ location but when i go to localhost on my browser i cant see those files, although they are allowed to be executed and read..
also i have removed phpmyadmin, because i read here ([http : // bugs . debian. org / cgi-bin/bugreport.cgi?bug=53666]) that the lighthttpd.conf causes problem on running php files.. but still no luck..
libapache2-mod-php5 is installed.. and i tried to run the info.php, but it seems that PHP does not run at all, i still get a 403 forbidden warning and apache says that i have no permission to access that file.... :S but the permissions are there.. i did chmod og+wx info.php, just in case, but still it didnt work.. i got a window and i had to download the file.. again.. :P
also, i can not find the php.conf or the php.load files..
finally, the httpd.conf is empty and i was also told that it is supposed to be empty because debian uses apache2.conf..
I really dont know what the problem is.. Could you guys pls help me?
Thanks in advance.Last edited by LinuksLun; 02-20-2011 at 06:48 PM.
- 02-20-2011 #2
Is php5 enabled on the system? Run the commands below and see if they help.
Code:a2enmod php5
- 02-21-2011 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 2
yes i have already tired that..
module php5 is enabled..
any other ideas please?


Reply With Quote
