K
K
kuzmenko_alex2014-04-26 22:50:28
linux
kuzmenko_alex, 2014-04-26 22:50:28

Apache does not see the directory

In "/var/www" there is a folder "entire" with python scripts. Virtualhosts were configured and the software worked for a long time and opened in the browser (locally on my machine). Then I did not use the software for a long time, I went in and see "Internal Server Error". When you switch to " 127.0.0.1 " in the browser, it gives a list of directories inside "/var/www", but there is no "entire" among them, although if you look through the console, then the folder with scripts exists.
Why doesn't the server see the directory?
Virtualhosts:

<VirtualHost *:80>
        ServerAdmin [email protected]
        ServerName localhost
        DocumentRoot /var/www

        <Directory /var/www/>
                DirectoryIndex start.py
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/www/error.log

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

        CustomLog /var/www/access.log combined
</VirtualHost>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Ali Aliyev, 2014-04-27
@ali_aliev

Did you install modpython.org ?
Article for example bhou.wordpress.com/2011/11/28/how-to-install-and-c...

A
Ali Aliyev, 2014-04-26
@ali_aliev

no one can help without config.

S
svd71, 2014-04-26
@svd71

Check directory permissions. They must be owned by www-data in the www-data group. And for the readability of the contents of the directory, it must have the x bit set (I put it in chmod 0775).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question