Solved

linux apache2

Posted on 2011-03-05
3
488 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
ID: 35042940
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
ID: 35042959
hi
i did 777 before.still there is something i do not understand
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35043405
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

867 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

15 Experts available now in Live!

Get 1:1 Help Now