Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Verwendete Befehle:
- Apache:
- sudo apt-get install apache2 apache2-doc apache2-utils apache2-suexec-pristine
- chgrp www-data /var/www
- chmod g+w /vwar/www
- /etc/init.d/apache2 reload => Neuladen der Apache Konfiguration
- /etc/init.d/apache2 restart => Startet Apache komplett neu
- /etc/init.d/apache2 start => Starten von Apache
- /etc/init.d/apache2 stop => Stoppen von Apache
- (6:24)
- PHP
- apt-get install php libapache2-mod-php php-mcrypt php-mysql
- nano /etc/apache2/mods-enabled/dir.conf
- <IfModule mod_dir.c>
- DirectoryIndex INDEX.PHP-HIER-HER index.html index.cgi index.pl index.php index.xhtml index.htm
- </IfModule>
- systemctl restart apache2
- nano /var/www/html/info.php
- <?php
- phpinfo();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement