I've seen all the help that I could find and since I cannot get it to work I thought I asked. I want to start developing html+php. I have a Apache web server with all the bells and whistles working for several servers like a bugtracker and a project manager. Also I'm running debian GNU Linux. The problem is testing my webpages. As far as I know I can only make them work by copying them to a folder in the /var/www/ folder of my machine as that is the default location from where Apache reads them. The info I've read on the web has suggested that the solution is to change the default file in the sites-available folder. The path to the file is: /etc/apache2/sites-available/000-default.conf. where I have modified it to look like this:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
Alias /pruebas/ "/home/ariela/ownCloud/Tutoriales/PHP/"
<Directory "/home/ariela/ownCloud/Tutoriales/PHP/">
AllowOverride All
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
</VirtualHost>
The Alias pruebas and the directory below are the lines I've added everything else is the same. I have a very simple file called myfile.php in the directory and when I write in the browser :
http://localhost/pruebas/myfile.php
I get the 403 forbidden error message.
What am I doing wrong? Because otherwise the only way to test my php page is to be root, or what am I missing?
Thank you for any answer.