httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Dewitt - NOAA Affiliate <otis.dew...@noaa.gov>
Subject Re: [users@httpd] Apache says "It works" but also "Requested URL could not be found"
Date Fri, 18 Nov 2016 14:41:54 GMT
Try changing all your directories to lower case and check permissions and
check selinux.

Thanks,
Otis

On Fri, Nov 18, 2016 at 9:13 AM, Roparzh Hemon <roparzhhemon@gmail.com>
wrote:

> Apache says "It works" but also "Requested URL could not be found"
>
>   This problem seems to have jumped out of nowhere when I returned
> from other projects. The project worked fine before.
> A random Google search suggests the problem might come from permissions,
> but file permissions seem OK (see below).
>
>    The access and log files are blank.
>   Any help appreciated.
>
>   The details :
>
> Apache says "It works" when I type http://www.lacolhost.com
> Apache says "The requested URL /index.php was not found on this server"
> when
> I type   http://www.lacolhost.com/index.php
>
>  My /private/etc/hosts file  contains the line
>
>   127.0.0.1 localshow.com www.localshow.com
>
> My /private/etc/apache2/extra/httpd-vhosts.conf file contains the
> following paragraph :
>
>  <VirtualHost *:80>
>     ServerName localshow.com
>     ServerAlias www.localshow.com
>     DocumentRoot "/Users/myusernamehere/Documents/Sites/Show"
>     ErrorLog "/private/var/log/apache2/localshow.com-error_log"
>     CustomLog "/private/var/log/apache2/localshow.com-access_log" common
>     ServerAdmin web@coolestguidesontheplanet.com
>     LoadModule php5_module /usr/libexec/apache2/libphp5.so
> <Directory /Users/myusernamehere/Documents/Sites/Show>
> Require all granted
> DirectoryIndex index.php
> </Directory>
> </VirtualHost>
>
>  Permissions for /Users/myusernamehere/Documents/Sites/Show
>
>  drwxr-xr-x  18 myusernamehere  staff  612 11 nov 15:07
>
>
>  Permissions for /Users/myusernamehere/Documents/Sites/Show/index.php :
>
>  -rw-r--r--@ 1 myusernamehere  staff    23 18 nov 14:25 index.php
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message