Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 07-05-2012, 06:46 AM   #1
LQ Newbie
Registered: Jul 2012
Posts: 8

Rep: Reputation: Disabled
Configuring website permissions on Debian

I'm owning dedicated server with Debian 6 Squeeze 6 LAMP installed.
I pointed my domain (where is my domain name) to my dedicated server, and now I have some privilages problems and dont know how to solve it.

1. User that runs apache2 is www-data,
2. My domain folder is located in: /var/www/
3. In /etc/apache2/sites-available/ I have created file which content is:
<VirtualHost *:80>
# Indexes + Directory Root.
DirectoryIndex index.php
DocumentRoot /var/www/

<Directory "/">
Options FollowSymLinks
AllowOverride None
<Directory /var/www/>
AllowOverride All
Options -Indexes MultiViews
Order Allow,Deny
Allow from all
4. I executed a2ensite command with success and restarted apache
5. I gave files permissions in /var/www/:
chmod -R 755
   chmod -R 655
   chown -R www-data
6. In /var/www/ I have folder: test, which has another index.php file. Like /var/www/

When I open the content of index.php is displayed
but when I want to go to or it displays me white (blank) page..

How to make whole website content to be accessible by users visiting my website?

Thank you

Last edited by takeit; 07-05-2012 at 06:48 AM.
Old 07-05-2012, 12:05 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,180

Rep: Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392

A blank php page means some php problem. Check apache error_log to see if you can find what it is.
Regarding permissions, apache is happy using 755 for directories and 644 for files (regardless the owner, unless you're running a SELinux enabled distro that is not the case here).

Old 07-05-2012, 01:29 PM   #3
LQ Newbie
Registered: Jul 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
thank you there was an error in file, its working now


apache2, config, debian, website, www

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change permissions for public access to website? sergioq Linux - Server 1 03-03-2012 09:42 PM
Debian's Website Updated & Debian 6.0 Released jens Debian 27 02-08-2011 04:06 AM
Permissions on my website? idyllhands Linux - Security 4 12-21-2008 12:00 PM
Configuring APACHE, where do I place my website? cucolin@ Linux - Software 7 08-03-2006 02:48 PM
Configuring Webalizer to report to a protected website folder soren625 Linux - Software 2 01-18-2005 08:23 AM

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration