Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

.htaccess: Options not allowed here

It's worked on ubuntu (LAMP). I edited /etc/apache2/mods-available/userdir.conf and add Options to AllowOverride. Then restarted apache2 service.

HTTP Apache 2 doc

http://doc.ubuntu-fr.org/apache2

/etc/apache2/apache2.conf

/etc/apache2/mods-available/userdir.conf

Log file
tail /var/log/apache2/error.log

Python and Apache2

/etc/apache2/mods-available/userdir.conf

<IfModule mod_userdir.c>
      UserDir public_html
      UserDir disabled root

      <Directory /home/*/public_html>
           AllowOverride FileInfo AuthConfig Limit Indexes
           Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +ExecCGI
           <Limit GET POST OPTIONS>
                     Order allow,deny
                     Allow from all
           </Limit>
           <LimitExcept GET POST OPTIONS>
                     Order deny,allow
                     Deny from all
           </LimitExcept>

           AddHandler cgi-script .cgi .pl .py

      </Directory>

</IfModule>

Ubuntu Linux Start / Restart / Stop Apache Web Server




Task: Start Apache 2 Server

# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start

Task: Restart Apache 2 Server

# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart

Task: Stop Apache 2 Server

# /etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop

http://www.cyberciti.biz/faq/ubuntu-linux-start-restart-stop-apache-web-server/