I seting up LAMP on my ubuntu box. I have only changed the sites-available-default/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/user/Dropbox/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/user/Dropbox/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
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
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
When I connect to my localhost I get a file in return. A PHTML with the index.php code.
When I connect to connect to http://192.168.1.133 I get a Forbidden error..
I assume it has something to do with permission and security, but not how to fix it.
I had the same problem, and it was because of a missing php module for apache.
I think (not sure) that
libapache2-mod-php5is the essential package to run php files with apache. So, make sure at least you have this one installed, and search a little about which packages to install to have a full php/apache installation. If you are installing xampp, download the most recent version and make sure you install it as root.