LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2009, 09:26 PM   #1
mmsaulon
LQ Newbie
 
Registered: Dec 2008
Posts: 7

Rep: Reputation: 0
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.
 
Old 01-13-2009, 11:32 PM   #2
nidhinmd
Member
 
Registered: Aug 2007
Location: Cochin, Kerala, India
Posts: 32

Rep: Reputation: 3
chmod -R 755 ~mmsaulon/public_html
 
Old 01-14-2009, 12:25 AM   #3
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17
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
 
Old 01-18-2009, 09:29 PM   #4
mmsaulon
LQ Newbie
 
Registered: Dec 2008
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 01-18-2009, 09:51 PM   #5
jasim
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Difference between Linux server & windows server
 
Old 01-19-2009, 06:32 PM   #6
mmsaulon
LQ Newbie
 
Registered: Dec 2008
Posts: 7

Original Poster
Rep: Reputation: 0
by the way, is there an order in installing these softwares?
 
Old 01-20-2009, 01:28 AM   #7
nidhinmd
Member
 
Registered: Aug 2007
Location: Cochin, Kerala, India
Posts: 32

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Login script working on windows server but not on Linux Red Hat Server ahmedyk Linux - Newbie 2 01-14-2009 12:22 AM
PHP script through cron not working fine. vikasumit Linux - General 5 09-04-2008 02:22 PM
LXer: Title: PHP/MySQL Classifieds Script AddAsset1.php Script Insertion LXer Syndicated Linux News 0 07-02-2006 06:21 PM
why isn't this php symlink script working verbatim Programming 8 04-27-2005 09:13 AM
Simple php script with html form not working. sinsoush Programming 4 04-01-2004 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration