GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Apr-2012, 18:00
aespinal aespinal is offline
New Member
 
Join Date: Apr 2012
Posts: 3
aespinal is on a distinguished road

Sharing a files folder across multiple sites on same server


I changed my dedicated server, using Apache,cPanel-WHM, latest versions.
In the old server I have 3 sites sharing a folder files with a include stament like this

<?php include ("/home/site/public_html/includes/contact.html"); ?>

But, now, in the new server, I get an access denied for all those files.
Any help will be appreciated.
Thanks in advance.
  #2  
Old 22-Apr-2012, 01:26
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 1,052
admin will become famous soon enough

Re: Sharing a files folder across multiple sites on same server


The folders should be executable for others. The file must be readable for others. What are the permissions like now?
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 22-Apr-2012, 06:46
aespinal aespinal is offline
New Member
 
Join Date: Apr 2012
Posts: 3
aespinal is on a distinguished road

Re: Sharing a files folder across multiple sites on same server


folder = 755
files inside = 644
  #4  
Old 22-Apr-2012, 09:58
aespinal aespinal is offline
New Member
 
Join Date: Apr 2012
Posts: 3
aespinal is on a distinguished road

Re: Sharing a files folder across multiple sites on same server


Quote:
Originally Posted by aespinal
folder = 755
files inside = 644

Here is a error sample
miministerio.com
  #5  
Old 22-Apr-2012, 22:49
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 1,052
admin will become famous soon enough

Re: Sharing a files folder across multiple sites on same server


Quote:
Originally Posted by admin
The folders should be executable for others...

Did you check ALL the other (parent) folders? What are the permissions for, say, /home/site, /home/site/public_html ?
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #6  
Old 18-Aug-2017, 06:32
persysweb's Avatar
persysweb persysweb is offline
Junior Member
 
Join Date: Aug 2017
Location: India
Posts: 51
persysweb is on a distinguished road

Re: Sharing a files folder across multiple sites on same server


Is there any specific rule define in .htaccess file which is denying the access to your file?
  #7  
Old 17-Nov-2017, 04:10
onliveserver onliveserver is offline
New Member
 
Join Date: Jun 2017
Posts: 3
onliveserver is on a distinguished road

Re: Sharing a files folder across multiple sites on same server


hii,

it is file && directory permission, so assign the proper permission to files and directory.
file:- 644
directory:- 755
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual host uncle22 Apache Web Server Forum 2 02-Oct-2013 23:58
Winsock Application Trouble pma07pg C++ Forum 5 25-Nov-2011 03:54
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 06:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 02:26
uploading files into server prinzekay MySQL / PHP Forum 5 16-Mar-2004 01:00

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 09:19.


vBulletin, Copyright © 2000 - 2017, Jelsoft Enterprises Ltd.