LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-22-2002, 04:10 PM   #1
ricocali
LQ Newbie
 
Registered: Nov 2002
Posts: 3

Rep: Reputation: 0
Executing PHP symbolic link file from site


I'm trying to execute a PHP symbolic link file from my site but no can do. It gives me a:

"You don't have permission to access test.php on this server"

I chmod the symbolic link file and original file to 777 and still no luck. What am I missing to allow this symbolic link work?

-Rico
 
Old 11-22-2002, 06:44 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Look for the Options statements in your httpd.conf. Add FollowSymLinks to whichever paragraph seems appropriate.
 
Old 11-22-2002, 06:55 PM   #3
ricocali
LQ Newbie
 
Registered: Nov 2002
Posts: 3

Original Poster
Rep: Reputation: 0
I tried your advice and added these line of code:

<Directory /usr/share/links>
Options FollowSymLinks
</Directory>

I did a "service httpd restart" and still doesn't work. Do I need an "allow" statement in there?

Rico

Last edited by ricocali; 11-22-2002 at 07:17 PM.
 
Old 11-22-2002, 08:28 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
I figured that you could have added it you could have added it to one of your existing Options statements. Is /usr/share/links within your DocumentRoot? Some snippets of your httpd.conf might help.
 
Old 11-22-2002, 08:53 PM   #5
ricocali
LQ Newbie
 
Registered: Nov 2002
Posts: 3

Original Poster
Rep: Reputation: 0
OK...I followed your advice and just place a test.php file from an existing directory that has the Options FollowSymLinks and still get permission errors.

httpd.conf

# This should be changed to whatever you set DocumentRoot to.
#
<Directory /var/www/html>

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options FollowSymLinks Includes

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>

Last edited by ricocali; 11-22-2002 at 08:55 PM.
 
Old 11-22-2002, 09:58 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
 
Old 11-22-2002, 10:00 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
what are the permissions on the file you are linking to?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Symbolic link? jasone Linux - Newbie 4 05-06-2005 07:55 AM
Checking whether a file is symbolic link or not rajesh_b Programming 3 01-06-2005 10:07 AM
help with a symbolic link mykrob Linux - Software 6 11-22-2004 10:01 AM
How do I link a file to a URL site. AZDAVE Linux - Networking 2 10-14-2004 06:30 PM
How to avoid executing embeddbed file/link satimis Linux - Security 4 01-15-2004 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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