On Sunday, June 3, 2018, 6:00:34 PM GMT+4:30, Richard <lists-apache@xxxxxxxxxxxxxxxxxxxxx> wrote:
I've summarized your posting details -- see my comments at the end.
> Date: Sunday, June 03, 2018 11:42:39 +0000
> From: Mahmood Naderan <
nt_mahmood@xxxxxxxxx.INVALID>
>
>
root@webshub:/var/www/html# php -S localhost:8080
> PHP 7.2.5-0ubuntu0.18.04.1 Development Server started at Tue May 29
22:56:54 2018
>
> Listening on
http://localhost:8080> Document root is /var/www/html
>
> [Tue May 29 23:02:57 2018] 127.0.0.1:41380 [301]: /
> [Tue May 29 23:02:57 2018] 127.0.0.1:41382 [301]: /install
> [Tue May 29 23:02:57 2018] 127.0.0.1:41384 [200]: /install/rules
>
> And that correctly shows the install page. So the question is, why
> I am not able to access the install page remotely?
>
>
> Consider the following apach2 config file on an Ubuntu 18.04 as
> below
>
root@web1:/var/www/html#
> cat /etc/apache2/sites-available/000-default.conf
>
> <VirtualHost *:80>
> ServerAdmin
webmaster@localhost> DocumentRoot /var/www/html/
>
> And the files are in /var as below
>
root@web1:/var/www/html# ls -lah
>
> drwxr-xr-x 19 root root 4.0K 29 15:12 .
> drwxr-xr-x 3 root root 4.0K 27 14:37 ..
> -rw-r--r-- 1 www-data www-data 3.1K 14 2017 captcha.php
> -rw-rw-r-- 1 www-data www-data 38K 10 2016 CHANGELOG.txt
> -rw-r--r-- 1 www-data www-data 5.0K 28 2017 e500.php
> -rw-r--r-- 1 www-data www-data 3.2K 27 23:38 index.php
> -rw-r--r-- 1 www-data www-data 4.3K 16 19:21 install_info.txt
> drwxrwxr-x 2 www-data www-data 4.0K 27 16:52 ow_core
>
> Form a remote machine when I enter
http://w.x.y.z in firefox, I
> get the following error
> The requested URL /install was not found on this server.
The information that you are presenting to make your case appears to
be inconsistent.
In the first example you are using:
php -S localhost:8080
you are showing "webshub" as the machine name:
root@webshuband there is indeed an "install" file in the "/var/www/html"
directory listing:
[Tue May 29 23:02:57 2018] 127.0.0.1:41382 [301]: /install
In your second (remote connection) case you are using
http://w.x.y.zwhich based on the configuration you show:
<VirtualHost *:80>
will connect to port 80, not 8080 as you do in your first test.
Additionally, the hostname on the filelist is "web1", not "webshub"
root@web1and the output does *not* include an "install" file or directory in
its "
root@web1:/var/www/html" listing (and the file listings don't
match up at all).
In short, your http ports, machine names and "/var/www/html" listings
don't match. The "install" file that you are after is indeed in the
first listing, but it is not in the second, which is what appears to
be available to the "remote" apache instance.
Are you certain that you are referencing the same filesystem
instances, or even the same machines?
To further debug, you need to provide the relevant server log lines.
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@xxxxxxxxxxxxxxxxFor additional commands, e-mail:
users-help@xxxxxxxxxxxxxxxx