LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-23-2007, 08:50 AM   #1
Bartoldo
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
LAMP Apache 2.0.52 php 4.3.9 MyQSL 2.5.1 problem RHEL 4


Hi,

trying to set up a LAMB in my RHEL 4 box but it doesn't work.
Apache and MySQL seem to work properly but when I try to test any
php page on (/home/user/public_html) I get the following error:

Forbidden

You don't have permission to access /~user/hello.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.52 (Red Hat) Server at localhost Port 80

thanks in advance.
 
Old 08-23-2007, 12:44 PM   #2
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 255

Rep: Reputation: 33
Remember that the webserver accesses files under its own user permissions, which is usually something like apache or apache2. Make sure this user has read access to /~user/hello.php.

PHP5 has been out for long enough to be pretty stable. Upgrading would give you additional capabilities, and make it easier to get php specific help. It's easier to upgrade before you start writing stuff than after you have 200 php pages to convert.
 
Old 08-24-2007, 08:16 AM   #3
Bartoldo
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
not working ...

Thanks Dick,

I have used chmod for permissions

$ chmod 711 /home/user
$ chmod 755 /home/user/public_html

and what I get now is:

Not Found

The requested URL /user/ was not found on this server.
Apache/2.0.52 (Red Hat) Server at localhost Port 80
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LAMP Bottleneck Solutions: Apache and PHP LXer Syndicated Linux News 0 05-21-2007 10:46 PM
no LAMP subdivision in LQ (LInux,Apache,PHP,MYSQL) sailu_mvn LQ Suggestions & Feedback 2 02-28-2007 08:55 AM
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 04:05 AM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 02:52 PM


All times are GMT -5. The time now is 12:57 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration