With Ubuntu 18.04, php7.2 and apache web server, I have defined a virtualhost and put the web files in the correct place.
The content of the config file is
Code:
root@webshob:~# ls -l /etc/apache2/sites-enabled/
total 0
lrwxrwxrwx 1 root root 35 مئی 30 11:57 000-default.conf -> ../sites-available/000-default.conf
lrwxrwxrwx 1 root root 38 مئی 30 12:07 shob.conf -> /etc/apache2/sites-available/shob.conf
root@webshob:~# cat /etc/apache2/sites-available/shob.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/shob/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/shob/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/webshob-error_log
CustomLog /var/log/apache2/webshob-access_log common
</VirtualHost>
root@webshob:~#
And the files are public html folder
Code:
root@webshob:~# ls -l /var/www/html/
total 16
-rw-r--r-- 1 root root 10918 مئی 30 11:57 index.html
drwxr-xr-x 18 www-data www-data 4096 مئی 30 12:08 shob
When I enter
http://w.x.y.z in firefox where w.x.y.z is a valid ip, I can see the default apache test page. However when I enter
http://w.x.y.z/shob, I get the following error which means I can not see the web installer.
Code:
The requested URL /shob/install was not found on this server.
You ma say that the file doesn't exists! However, I do the following test and it works
In terminal, I run
php -S w.x.y.z:8080 and when I enter
http://w.x.y.z:8080 I can see the installer. Meanwhile in the terminal, I see
Code:
root@webshob:/var/www/html/shob# php -S w.x.y.z:8080
PHP 7.2.5-0ubuntu0.18.04.1 Development Server started at Wed May 30 13:09:16 2018
Listening on http://w.x.y.z:8080
Document root is /var/www/html/shob
Press Ctrl-C to quit.
[Wed May 30 13:09:20 2018] 5.57.36.99:50254 [301]: /
[Wed May 30 13:09:20 2018] 5.57.36.99:50255 [301]: /install
[Wed May 30 13:09:20 2018] 5.57.36.99:50256 [200]: /install/rules
[Wed May 30 13:09:20 2018] 5.57.36.99:50257 [200]: /ow_install/view/style.css
[Wed May 30 13:09:20 2018] 5.57.36.99:50258 [200]: /ow_install/view/img/logo.png
[Wed May 30 13:09:20 2018] 5.57.36.99:50259 [200]: /ow_install/view/img/header.png
[Wed May 30 13:09:20 2018] 5.57.36.99:50260 [200]: /ow_install/view/img/button.png
So the install files are there. How can I fix that?