LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP script is not working. (https://www.linuxquestions.org/questions/linux-newbie-8/php-script-is-not-working-697136/)

mmsaulon 01-13-2009 09:26 PM

PHP script is not working.
 
I am less than a two week old User for Linux

I will be doing a web server for my office

I wanted to test the phpinfo page but than when i go to //localhost/~mmsaulon/test.php

It say

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster

My command is very simple

<?php phpinfo(); ?>

Save at ~mmsaulon/public_html/test.php

I wonder why is there a Access Forbidden Error
I want to try to test this infopage

localhost is working

I am using SUSE Server 10, Apache, PHP, MySQL
Hope that you guys could help me.
Thank you for reading my help posting
Have a Good Day.

nidhinmd 01-13-2009 11:32 PM

chmod -R 755 ~mmsaulon/public_html

n03x3c 01-14-2009 12:25 AM

Always remember, to access your public_html, enabling UserDir is not enough. All dirs in path of your public_html should have +x (executable) rights... then only it will work

mmsaulon 01-18-2009 09:29 PM

actually the folder public_html is already with the permissions that you have question but im still getting the same result.

but anyways thanks for the reply.

jasim 01-18-2009 09:51 PM

Difference between Linux server & windows server

mmsaulon 01-19-2009 06:32 PM

by the way, is there an order in installing these softwares?

nidhinmd 01-20-2009 01:28 AM

Post the document root, exact url your trying to accessing for displaying phpinfo, also which file is displaying when you are calling http://localhost/


All times are GMT -5. The time now is 12:10 AM.