Sono passato a tesing per risolvere problemi ,veniamo al problema , avevo già installato lamp perfettamente funzionante e spostato la cartella www nella mia home nella cartella localhost , modificando il file /etc/apache2/sites-enabled/000-default e specificando la mia cartella , fino all'aggiornamento il tutto funzionava ,questo il file 000-default.conf:
codice:<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /home/stefano1/localhost <Directory /> Options FollowSymLinks AllowOverride FileInfo </Directory> <Directory /home/stefano1/localhost> Options Indexes FollowSymLinks MultiViews AllowOverride FileInfo Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride FileInfo Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
ora quando accedo a localhost da browser ho:
Ho provato a rendere i permessi alla cartella con chmod e chown ma il problema rimane questo il mio ports.conf:codice:Forbidden You don't have permission to access / on this server. Apache/2.4.6 (Debian) Server at localhost Port 80
Se setto come document root la cartella /var/www funziona , ma vorrei che il tutto tornasse come era....codice:# If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.conf Listen 80 Listen888 <IfModule ssl_module> Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Rispondi quotando