You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Antonio Moreno <an...@codebusters.es> on 2012/12/03 11:37:44 UTC

[users@httpd] Configuration apache

Hi, I have a configuration problem, the Apache documentation has not 
helped me.

I have configured on my local system (localhost) my PHP website, works 
only the first page, clicking on any link gives an error:


  Not Found

The requested URL /codebusters/es/products-page-view was not found on 
this server.

Additionally, a 404 Not Found error was encountered while trying to use 
an ErrorDocument to handle the request.

------------------------------------------------------------------------
Apache/2.2.22 (Ubuntu) Server at 10.0.0.108 Port 80


The configuration of my site-enable is:

<VirtualHost *:80>
ServerAdmin info@mysite.es

#default
         DocumentRoot /var/www/

         <Directory /var/www/>
                 Options MultiViews FollowSymLinks
                 AllowOverride all
                 Order allow,deny
                 Allow from all
         </Directory>

         ErrorLog /var/log/apache2/error.log

         # Possible values include: debug, info, notice, warn, error, crit,
         # alert, emerg.
         LogLevel warn

         CustomLog /var/log/apache2/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>

What could be the problem?. thanks.

Re: [users@httpd] Configuration apache

Posted by Antonio Moreno <an...@codebusters.es>.
El 03/12/12 12:03, Antonio Moreno escribió:
> El 03/12/12 11:59, John Doe escribió:
>> Did you look into the log files...?
> Error.log file contents
>
> [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107] File does not 
> exist: /var/www/codebusters/es, referer: http://10.0.0.108/codebusters/
> [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107] script 
> '/var/www/index.php' not found or unable to stat, referer: 
> http://10.0.0.108/codebusters/
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Configuration apache

Posted by Antonio Moreno <an...@codebusters.es>.
Is solved. the problem is that the module was not activated "rewrite" of 
Apache. Thanks. :-)


El 03/12/12 17:01, Yehuda Katz escribió:
> Then make sure that Drupal is actually installed in /var/www/.
> Drupal uses a bootstrap file called index.php and your error log shows 
> that it is missing.
>
> On Mon, Dec 3, 2012 at 8:34 AM, Antonio Moreno 
> <antonio.moreno@codebusters.es <ma...@codebusters.es>> 
> wrote:
>
>     El 03/12/12 13:53, John Doe escribió:
>
>         From: Antonio Moreno <antonio.moreno@codebusters.es
>         <ma...@codebusters.es>>
>
>
>             El 03/12/12 11:59, John Doe escribió:
>
>                   Did you look into the log files...?
>
>             Error.log file contents
>             [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107]
>             File does not exist:
>             /var/www/codebusters/es, referer:
>             http://10.0.0.108/codebusters/
>             [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107] script
>             '/var/www/index.php' not found or unable to stat, referer:
>             http://10.0.0.108/codebusters/
>
>         So, apache tells you ' /var/www/codebusters/es' does not exist
>         and '/var/www/index.php' does not exist either or isn't
>         readable...
>         Is apache right?
>         If apache is right, why did you tell him to use non existant
>         directories?
>
>         JD
>
>     MY web-site is Drupal, directory are not really there, making a
>     query to the database.
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>
>


Re: [users@httpd] Configuration apache

Posted by Yehuda Katz <ye...@ymkatz.net>.
Then make sure that Drupal is actually installed in /var/www/.
Drupal uses a bootstrap file called index.php and your error log shows that
it is missing.

On Mon, Dec 3, 2012 at 8:34 AM, Antonio Moreno <
antonio.moreno@codebusters.es> wrote:

> El 03/12/12 13:53, John Doe escribió:
>
>> From: Antonio Moreno <antonio.moreno@codebusters.es**>
>>
>>
>>  El 03/12/12 11:59, John Doe escribió:
>>>
>>>>   Did you look into the log files...?
>>>>
>>> Error.log file contents
>>> [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107] File does not
>>> exist:
>>> /var/www/codebusters/es, referer: http://10.0.0.108/codebusters/
>>> [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107] script
>>> '/var/www/index.php' not found or unable to stat, referer:
>>> http://10.0.0.108/codebusters/
>>>
>> So, apache tells you ' /var/www/codebusters/es' does not exist
>> and '/var/www/index.php' does not exist either or isn't readable...
>> Is apache right?
>> If apache is right, why did you tell him to use non existant directories?
>>
>> JD
>>
> MY web-site is Drupal, directory are not really there, making a query to
> the database.
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@httpd.**apache.org<us...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Configuration apache

Posted by Antonio Moreno <an...@codebusters.es>.
El 03/12/12 13:53, John Doe escribió:
> From: Antonio Moreno <an...@codebusters.es>
>
>> El 03/12/12 11:59, John Doe escribió:
>>>   Did you look into the log files...?
>> Error.log file contents
>> [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107] File does not exist:
>> /var/www/codebusters/es, referer: http://10.0.0.108/codebusters/
>> [Mon Dec 03 12:02:00 2012] [error] [client 10.0.0.107] script
>> '/var/www/index.php' not found or unable to stat, referer:
>> http://10.0.0.108/codebusters/
> So, apache tells you ' /var/www/codebusters/es' does not exist
> and '/var/www/index.php' does not exist either or isn't readable...
> Is apache right?
> If apache is right, why did you tell him to use non existant directories?
>
> JD
MY web-site is Drupal, directory are not really there, making a query to 
the database.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org