Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to define a user directory for apache web server
    primarykey
    data
    text
    <p>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:</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin webmaster@localhost DocumentRoot /var/www &lt;Directory /&gt; Options FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory /var/www/&gt; Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all &lt;/Directory&gt; Alias /pruebas/ "/home/ariela/ownCloud/Tutoriales/PHP/" &lt;Directory "/home/ariela/ownCloud/Tutoriales/PHP/"&gt; AllowOverride All Order allow,deny Allow from all &lt;/Directory&gt; ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ &lt;Directory "/usr/lib/cgi-bin"&gt; AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all &lt;/Directory&gt; 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 &lt;/VirtualHost&gt; </code></pre> <p>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 : </p> <pre><code>http://localhost/pruebas/myfile.php </code></pre> <p>I get the 403 forbidden error message.</p> <p>What am I doing wrong? Because otherwise the only way to test my php page is to be root, or what am I missing?</p> <p>Thank you for any answer.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload