On the other hand, when I run
php -S localhost:8080
and enterhttp://localhost:8080
in firefox (local on the machine and not remote), I get the following outputroot@webshub:/var/www/html# php -S localhost:8080PHP 7.2.5-0ubuntu0.18.04.1 Development Server started at Tue May 29 22:56:54 2018Listening on http://localhost:8080Document root is /var/www/htmlPress Ctrl-C to quit.[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[Tue May 29 23:02:57 2018] 127.0.0.1:41386 [200]: /ow_install/view/style.css[Tue May 29 23:02:57 2018] 127.0.0.1:41388 [200]: /ow_install/view/img/header.png[Tue May 29 23:02:57 2018] 127.0.0.1:41390 [200]: /ow_install/view/img/logo.pngAnd 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@localhostDocumentRoot /var/www/html/<Directory "/var/www/html/">Options Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from allRequire all granted</Directory>LogLevel debugErrorLog ${APACHE_LOG_DIR}/error.logCustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost>And the files are in /var as below
root@web1:/var/www/html# ls -lahtotal 912Kdrwxr-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.txtdrwxrwxr-x 2 www-data www-data 4.0K مئی 27 16:52 ow_coredrwxrwxr-x 2 www-data www-data 4.0K مئی 27 16:52 ow_crondrwxrwxr-x 10 www-data www-data 4.0K مئی 27 16:52 ow_iisdrwxrwxr-x 2 www-data www-data 4.0K مئی 27 23:30 ow_includesdrwxrwxr-x 7 www-data www-data 4.0K مئی 27 16:52 ow_installdrwxrwxr-x 15 www-data www-data 4.0K مئی 27 16:52 ow_librariesdrwxrwxrwx 2 www-data www-data 4.0K مئی 16 19:33 ow_logdrwxrwxrwx 7 www-data www-data 4.0K مئی 16 19:33 ow_pluginfilesdrwxrwxr-x 31 www-data www-data 4.0K مئی 27 16:52 ow_pluginsdrwxrwxr-x 4 www-data www-data 4.0K مئی 27 16:52 ow_smartydrwxrwxr-x 4 www-data www-data 4.0K مئی 27 16:52 ow_staticdrwxrwxr-x 4 www-data www-data 4.0K مئی 27 16:52 ow_system_pluginsdrwxrwxr-x 3 www-data www-data 4.0K مئی 27 16:52 ow_themesdrwxrwxr-x 4 www-data www-data 4.0K مئی 27 16:52 ow_updatesdrwxrwxrwx 4 www-data www-data 4.0K مئی 16 19:33 ow_userfilesdrwxrwxr-x 2 www-data www-data 4.0K مئی 27 16:52 ow_utilities-rw-r--r-- 1 www-data www-data 358 مئی 16 19:21 ow_version.xml-rw-r--r-- 1 www-data www-data 757K مئی 16 19:21 ReadMe.pdf-rw-rw-r-- 1 www-data www-data 718 دسامب 21 2016 robots.txtdrwxr-xr-x 2 root root 4.0K مئی 29 15:12 shub-rw-rw-r-- 1 www-data www-data 1.5K مئی 23 2016 UPDATE.txtThe files are mounted as
/var
according to the fstab:root@web1:/var/www/html# cat /etc/fstab | grep var# /var was on /dev/sda5 during installation
UUID=c05e3e60-5916-4817-b8e7-f27a2681e42a /var ext4 defaults 0 2Form a remote machine when I enter
http://w.x.y.z
in firefox, I get the following errorThe requested URL /install was not found on this server.
http://w.x.y.z/
(index.php),
but the error message refers to http://w.x.y.z/install
On the other hand, when I run
php -S localhost:8080
and enterhttp://localhost:8080
in firefox (local on the machine and not remote), I get the following outputroot@webshub:/var/www/html# php -S localhost:8080PHP 7.2.5-0ubuntu0.18.04.1 Development Server started at Tue May 29 22:56:54 2018Listening on http://localhost:8080Document root is /var/www/htmlPress Ctrl-C to quit.[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[Tue May 29 23:02:57 2018] 127.0.0.1:41386 [200]: /ow_install/view/style.css[Tue May 29 23:02:57 2018] 127.0.0.1:41388 [200]: /ow_install/view/img/header.png[Tue May 29 23:02:57 2018] 127.0.0.1:41390 [200]: /ow_install/view/img/logo.pngAnd that correctly shows the install page. So the question is, why I am not able to access the install page remotely?
Regards,
Mahmood