Mir ist aufgefallen, dass wenn die Datei index.php heißt, gehen Links ("a href"), heißt sie aber index.html, werden Links als Text (schwarze Farbe, nicht klickbar) dargestellt. Mich interessiert, warum dieser kleine Unterschied so viel ausmacht. (In /var/www/ ist alles normal, index.php und index.html verhalten sich gleich).
/etc/group:
Code: Alles auswählen
user:x:1000:www-data
Code: Alles auswählen
<VirtualHost localhost:80>
ServerAdmin user@localhost
ServerName localhost
DocumentRoot "/home/user/software/php"
<Directory /home/user/software/php>
Options None
AllowOverride All
Require all granted
<IfModule mod_userdir.c>
php_admin_flag engine on
php_admin_flag safe_mode off
</IfModule>
</Directory>
</VirtualHost>
Code: Alles auswählen
<IfModule mod_userdir.c>
UserDir software/php
UserDir disabled root
<Directory /home/user/>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
Require all granted
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
Require all denied
</LimitExcept>
</Directory>
</IfModule>
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="description" content="Web">
<meta charset="utf-8">
<title>Web</title>
</head>
<body>
<h3>
<h href="help.html">Help links</h>
</h3>
</body>
</html>
Code: Alles auswählen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 localhost:mysql 0.0.0.0:* LISTEN mysql 16244 743/mysqld
tcp 0 0 localhost:http 0.0.0.0:* LISTEN root 94004 19070/apache2