Hi,
I tried searching on my own unsuccessfully.
I’m a Windows guy, but I’m not a stranger to Linux, just not very proficient in it (don’t often use it).
I set up a VPS with a provider and it’s running CentOS 7.2 and the provider had options for pre-installing a LAMP stack with Webmin.
I pointed one of my domains that I intend to host the site for to the IP of the server, and I got the default Apache page.
I was then able to get Virtualmin installed. After fighting with MySQL (which I found out is MariaDB) to get the admin password reset (could not do it through Webmin, had to go through the command line on SSH). Then I was able to complete the post install wizard.
Then I set up a virtual server for the domain.
Next was installing WordPress, which I have done before, so I figured no problem. Except PHP and MySQL/MariaDB needed to be updated, and Webmin and YUM both indicated they were the latest versions, Google helped me find instructions to update both of these, so I am running the latest PHP (5.6.x) and MariaDB (10.1).
Then Postfix and Procmail were messed up, again Google found me solutions.
But now I am stumped, I uploaded the WordPress files to the /home directory, only to realize it needs to be in the public_html directory, still nothing
When I went to my url, I would get an error, and the website preview also gave an error. I tried installing phpmyadmin it installed, but I can’t access it either.
The VPS is behind a NAT, so I changed around the IP from the LAN IP to the WAN IP, and now I get a directory listing, but no files or subfolders, but I know there’s both in there.
Did I mess something up when I went to update PHP and MariaDB? Should I remove virtualmin and reinstall it?
Which IP address (WAN or LAN) should be used where, etc.?
In the Apache logs I get the following:
Acces Log:
72.137.X.X - - [05/Aug/2016:03:31:56 -0400] “GET /favicon.ico HTTP/1.1” 404 209 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
72.137.X.X - - [05/Aug/2016:03:31:57 -0400] “GET /favicon.ico HTTP/1.1” 404 209 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
72.137.X.X - - [05/Aug/2016:03:33:51 -0400] “GET /phpmyadmin/ HTTP/1.1” 500 - “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
72.137.X.X - - [05/Aug/2016:03:33:51 -0400] “GET /favicon.ico HTTP/1.1” 404 209 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
72.137.X.X - - [05/Aug/2016:03:33:51 -0400] “GET /favicon.ico HTTP/1.1” 404 209 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
72.137.X.X - - [05/Aug/2016:03:34:06 -0400] “GET /phpmyadmin/ HTTP/1.1” 500 - “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
192.168.X.X - - [05/Aug/2016:03:35:34 -0400] “GET / HTTP/1.0” 403 202 “-” “Webmin”
72.137.X.X - - [05/Aug/2016:03:35:56 -0400] “GET / HTTP/1.1” 403 202 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
72.137.X.X - - [05/Aug/2016:04:13:42 -0400] “GET / HTTP/1.1” 403 202 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586”
72.137.X.X - - [05/Aug/2016:04:13:47 -0400] “GET / HTTP/1.1” 403 202 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586”
72.137.X.X - - [05/Aug/2016:04:17:07 -0400] “GET / HTTP/1.1” 403 202 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0”
Error Log:
[Fri Aug 05 03:33:51.781239 2016] [fcgid:warn] [pid 12024] [client 72.137.X.X:62682] mod_fcgid: stderr: PHP Fatal error: Call to undefined function mb_detect_encoding() in /home/virtualserver/public_html/phpmyadmin/libraries/php-gettext/gettext.inc on line 177
[Fri Aug 05 03:34:06.193642 2016] [fcgid:warn] [pid 12027] [client 72.137.X.X:62685] mod_fcgid: stderr: PHP Fatal error: Call to undefined function mb_detect_encoding() in /home/virtualserver/public_html/phpmyadmin/libraries/php-gettext/gettext.inc on line 177
[Fri Aug 05 03:35:34.990359 2016] [autoindex:error] [pid 12023] [client 192.168.X.X:49798] AH01276: Cannot serve directory /home/virtualserver/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
[Fri Aug 05 03:35:56.929948 2016] [autoindex:error] [pid 12024] [client 72.137.X.X:62701] AH01276: Cannot serve directory /home/virtualserver/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
[Fri Aug 05 04:13:42.686820 2016] [autoindex:error] [pid 12030] [client 72.137.X.X:60638] AH01276: Cannot serve directory /home/virtualserver/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
[Fri Aug 05 04:13:47.814042 2016] [autoindex:error] [pid 12026] [client 72.137.X.X:60637] AH01276: Cannot serve directory /home/virtualserver/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
[Fri Aug 05 04:17:07.707551 2016] [autoindex:error] [pid 12025] [client 72.137.X.X:60683] AH01276: Cannot serve directory /home/virtualserver/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
One suggestion I found was to change from fcgi to mod_php, which I tried, but that didn’t work.
Please let me know what additional information you need, and please try to provide clear instructions (especially specific commands to use via SSH if needed), as I’m not too familiar with Linux.
Thanks in advance,
Daniel