We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,106 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

failed to open stream: Permission denied

Good day, please help, when i transfer my phpcode in ubuntu I am getting this error * Warning: include(includes/sidebar.php) [function.include]: failed to open stream: Permission denied in /opt/lampp/tg/index.php on line 47*

but when I'm using Windows vista my pages are okey... please help thank You..

2
Contributors
2
Replies
6 Hours
Discussion Span
9 Months Ago
Last Updated
3
Views
Question
Answered
bLuEmEzzy
Junior Poster
121 posts since Feb 2011
Reputation Points: 10
Solved Threads: 6
Skill Endorsements: 2

Just my guess since I am not using Ubuntu but Fedora. I think scripts and web pages should be in a directory that is defined in a webserver configuration (in Fedora and some other distros the config file is /etc/httpd/conf/httpd.conf and the web pages are in /var/www/html). The directories and files should be owned by either a webserver user (apache in Fedora) or just the normal user that created them. The directories on my webserver have permissions rwxr-xr-x and the files are rw-r--r-- and everything works OK. So check your Apache config file and the permissions.

broj1
Nearly a Posting Virtuoso
1,211 posts since Jan 2011
Reputation Points: 167
Solved Threads: 164
Skill Endorsements: 13

Thank You. my page is working ;)

bLuEmEzzy
Junior Poster
121 posts since Feb 2011
Reputation Points: 10
Solved Threads: 6
Skill Endorsements: 2
Question Answered as of 9 Months Ago by broj1

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0586 seconds using 2.64MB