On 05/29/2018 04:05 PM, Mahmood Naderan wrote:

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>
ServerAdminwebmaster@localhost
DocumentRoot/var/www/html/
<Directory"/var/www/html/">
OptionsIndexesFollowSymLinksMultiViews
AllowOverrideAll
Orderallow,deny
     allow fromall
Requireall granted
</Directory>
LogLeveldebug
ErrorLog${APACHE_LOG_DIR}/error.log
CustomLog${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

And the files are in /var as below

root@web1:/var/www/html# ls -lah
total 912K
drwxr-xr-x 19root     root 4.0Kمئی2915:12.
drwxr-xr-x 3root     root 4.0Kمئی2714:37..
-rw-r--r--1www-data www-data 3.1Kاوْکتوْ142017captcha.php
-rw-rw-r--1www-data www-data 38Kاوْکتوْ102016CHANGELOG.txt
-rw-r--r--1www-data www-data 5.0Kمئی282017e500.php
-rw-r--r--1www-data www-data 3.2Kمئی2723:38index.php
-rw-r--r--1www-data www-data 4.3Kمئی1619:21install_info.txt
drwxrwxr-x 2www-data www-data 4.0Kمئی2716:52ow_core
drwxrwxr-x 2www-data www-data 4.0Kمئی2716:52ow_cron
drwxrwxr-x 10www-data www-data 4.0Kمئی2716:52ow_iis
drwxrwxr-x 2www-data www-data 4.0Kمئی2723:30ow_includes
drwxrwxr-x 7www-data www-data 4.0Kمئی2716:52ow_install
drwxrwxr-x 15www-data www-data 4.0Kمئی2716:52ow_libraries
drwxrwxrwx 2www-data www-data 4.0Kمئی1619:33ow_log
drwxrwxrwx 7www-data www-data 4.0Kمئی1619:33ow_pluginfiles
drwxrwxr-x 31www-data www-data 4.0Kمئی2716:52ow_plugins
drwxrwxr-x 4www-data www-data 4.0Kمئی2716:52ow_smarty
drwxrwxr-x 4www-data www-data 4.0Kمئی2716:52ow_static
drwxrwxr-x 4www-data www-data 4.0Kمئی2716:52ow_system_plugins
drwxrwxr-x 3www-data www-data 4.0Kمئی2716:52ow_themes
drwxrwxr-x 4www-data www-data 4.0Kمئی2716:52ow_updates
drwxrwxrwx 4www-data www-data 4.0Kمئی1619:33ow_userfiles
drwxrwxr-x 2www-data www-data 4.0Kمئی2716:52ow_utilities
-rw-r--r--1www-data www-data 358مئی1619:21ow_version.xml
-rw-r--r--1www-data www-data 757Kمئی1619:21ReadMe.pdf
-rw-rw-r--1www-data www-data 718دسامب212016robots.txt
drwxr-xr-x 2root     root 4.0Kمئی2915:12shub
-rw-rw-r--1www-data www-data 1.5Kمئی232016UPDATE.txt

The 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 02

Form a remote machine when I enter |http://w.x.y.z| in firefox, I get the following error

Therequested URL /install was notfound on thisserver.

1. Note that you are requesting the default page |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 enter |http://localhost:8080| in firefox (local on the machine and not remote), I get the following output

root@webshub:/var/www/html# php -S localhost:8080
PHP 7.2.5-0ubuntu0.18.04.1DevelopmentServerstarted at TueMay2922:56:542018
Listeningon http://localhost:8080
Documentroot is/var/www/html
PressCtrl-C to quit.
[TueMay2923:02:572018]127.0.0.1:41380[301]:/
[TueMay2923:02:572018]127.0.0.1:41382[301]:/install
[TueMay2923:02:572018]127.0.0.1:41384[200]:/install/rules
[TueMay2923:02:572018]127.0.0.1:41386[200]:/ow_install/view/style.css
[TueMay2923:02:572018]127.0.0.1:41388[200]:/ow_install/view/img/header.png
[TueMay2923:02:572018]127.0.0.1:41390[200]:/ow_install/view/img/logo.png

And that correctly shows the install page. So the question is, why I am not able to access the install page remotely?


2. No, that shows a directory, not a page, named "install"

Regards,

Mahmood


3. Check your error log to see what happens during your Apache request.

4. It would be helpful to know what package you are installing here. The user group for that package can probabaly help you.

Good luck.

- John


Reply via email to