Ciao, ho appena installato Apache 2.2 e Php5 su Ubuntu.
La cartella predefinita per i file è /var/www/
Se però metto un file .php in /var/www/ e ci accedo con http://localhost/file.php il browser mi chiede di scaricare la pagina.
Se metto lo stesso file in /var/www/apache2-default/ invece il php viene interpretato correttamente.
Questo è il contenuto del file /etc/apache2/sites-available/default:
Vorrei fare in modo che i file .php in /var/www fossero interpretati.codice:NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place RedirectMatch ^$/ /apache2-default/ </Directory> ...eccetera...
Come devo fare?
Grazie!

Rispondi quotando