Solved

linux apache2

Posted on 2011-03-05
3
487 Views
Last Modified: 2012-05-11
Hello
I created a folder "cms" in /var/www/cms/index.html

But problem is i cant see index.html but when i take this index.html /var/www/index.html
then i can see contents in index.html.
I did /apache2/sites-available/default

----------------------------------
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/cms/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>


where is the problem?
Thanks
0
Comment
Question by:linuxdebian
3 Comments
 
LVL 16

Accepted Solution

by:
santoshmotwani earned 500 total points
Comment Utility
have you checked permissions on cms ?

it should be 755

sudo chmod -R 755 /var/www/cms/

please try this
0
 

Author Comment

by:linuxdebian
Comment Utility
hi
i did 777 before.still there is something i do not understand
0
 
LVL 31

Expert Comment

by:farzanj
Comment Utility
You should not use 777.  If there is SELinux it would create problem.  Just a note, though not related to this problem.

TRY

        <Directory /var/www/cms>
                Options Indexes FollowSymLinks
                AllowOverride None
        </Directory>
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now