Apache.sh

Aus informatikvs
Wechseln zu: Navigation, Suche
sudo chmod 0775 /var/www
sudo chgrp -R www-data /var/www

gksudo gedit /etc/apache2/apache2.conf
gksudo gedit /etc/apache2/ports.conf
gksudo gedit /etc/apache2/sites-available/default

sudo /etc/init.d/apache2 restart
http://localhost/


libapache2-mod-python
sudo apt-get install libapache2-mod-python
sudo a2enmod mod_python

gksudo gedit /etc/apache2/sites-available/default
     <Directory /var/www/>
          Options Indexes FollowSymLinks MultiViews
          AllowOverride None
          Order allow,deny
          allow from all
          AddHandler mod_python .py
          PythonHandler mod_python.publisher
          PythonDebug on
     </Directory>