hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : outside the regular...
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

outside the regular...

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2007, 03:33 AM
ti_nhatrang ti_nhatrang is offline
Web Hosting Master
 
Join Date: Apr 2005
Posts: 682

outside the regular...


Hi guys,

currently, I have an empty server(Server A) with apache and php running, and my virtual host is at /var/www/html/index.php...

I'm also running SAMBA(server b) with another server and sharing folder /home/pictures/public_html/* full read/write access to my other server...

However, everytime I try to access the shared folder from my php script, it gives me a permission denied.

PHP Code:
Warningfile_get_contents(/home/pictures/public_html/142470.jpg): failed to open streamPermission denied in /var/www/html/thumb120.php on line 5 

From server A, I can delete and add files to Server B shared folder fine... And all my permissions on the folders are 777 as well. However, if I copy that .jpg into /var/www/html/142470.jpg, and run that php script with that /var/www/httml path and it would be fine...

Any kind of help and remarks would be greatly appreciated.

Thanks all in advance.

Reply With Quote


Sponsored Links
  #2  
Old 04-21-2007, 08:15 AM
ajsbsd ajsbsd is offline
Disabled
 
Join Date: Oct 2005
Posts: 29
#5

post line 5 of your code and it might help us better identify why this happening, if not cut out the code, turn on better debugging, etc.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Hosting Sales and Promos Roundup – May 24, 2013 Web Hosting News 2013-05-27 09:23:23
Web Hosting Sales and Promos Roundup -- January 18, 2013 Web Hosting News 2013-01-18 16:54:55
50dae337-e558-4839-9937-23dd45a79962 Listing 2013-03-05 18:24:34
Web Host GeekStorage Launches VPS Line Featuring SSD Storage Web Hosting News 2012-10-04 12:19:46
OpenSRS' Michael Goldstein on Reselling Premium Domains Web Hosting News 2012-01-13 17:01:26


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?