Advertisement
Guest User

#7 Web Server Apache 2 (MySQL 7.X, PHPMyAdmin)

a guest
Jul 28th, 2017
1,670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Verwendete Befehle:
  2. Apache:
  3. sudo apt-get install apache2 apache2-doc apache2-utils apache2-suexec-pristine
  4.  
  5. chgrp www-data /var/www
  6. chmod g+w /vwar/www
  7.  
  8.  
  9. /etc/init.d/apache2 reload => Neuladen der Apache Konfiguration
  10. /etc/init.d/apache2 restart => Startet Apache komplett neu
  11. /etc/init.d/apache2 start => Starten von Apache
  12. /etc/init.d/apache2 stop => Stoppen von Apache
  13.  
  14.  
  15. (6:24)
  16. PHP
  17. apt-get install php libapache2-mod-php php-mcrypt php-mysql
  18. nano /etc/apache2/mods-enabled/dir.conf
  19.  
  20. <IfModule mod_dir.c>
  21. DirectoryIndex INDEX.PHP-HIER-HER index.html index.cgi index.pl index.php index.xhtml index.htm
  22. </IfModule>
  23.  
  24. systemctl restart apache2
  25.  
  26.  
  27. nano /var/www/html/info.php
  28.  
  29. <?php
  30. phpinfo();
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement