web content not displaying - unable to install WordPress

4 posts / 0 new
Last post
#1 Fri, 08/05/2016 - 11:13
mytechnerdca

web content not displaying - unable to install WordPress

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

Sat, 08/06/2016 - 22:59
Joe
Joe's picture

So, you definitely didn't need to update PHP or MariaDB. The versions in CentOS 7 work fine with WordPress (and almost everything else out there...they're "new enough" for the vast majority of stuff).

The last few errors indicate you're browsing to a directory that doesn't have an index file in it. Are you sure that's where WordPress is installed? (There would be an index.php file in the base directory of the WordPress install, and Apache is looking for it, or any other legal index file name, but not finding it.)

--

Check out the forum guidelines!

Sat, 08/06/2016 - 23:23
mytechnerdca

Hi Joe,

Thanks for the reply. According to WordPress' install instructing, it says PHP 5.6 and MariaDb 10.0 are the minimum required, hence why I did the update. https://wordpress.org/about/requirements/

Did this break my set up?

What about the IP addresses, how should I configure the settings relate relate this?

I think Apache is directing to the default virtual server even when I use the right domain name, and I am sure there are files in the right folders as I can view them in the file manager. I have typed into both Edge and Firefox http://www.myurl.tld/wp-admin/install.php

I uploaded the WordPress files to /home/virtualserverusername/public_html/

Thanks.

Wed, 08/24/2016 - 08:34
mytechnerdca

Hi Joe,

I forgot to update this. The solution was actually rather simple, but the cause is still unknown. I removed the virtual server (and the associated user account) and recreated it with the standard generated user account (I picked a different user name the first time), and everything worked fine, save for some php limitations for WordPress such as user upload file size limit and the max memory available to WP/php, but I managed to resolve these (I think) relatively easily.

I suspect it was permissions issues, but when I changed the permissions, it didn't help, so I just removed and recreated the virtual server.

Thanks for your help!

Topic locked