I'm trying to install wordpress 3.9.1 in a subdomain, I know it works because I have the same version in localhost using XAMPP. The subdomain is working (I tested it with html and php files), but no wordpress file is running, I only get blank pages (not errors, just blank pages). The databases are created, the wp-config.php is edited and the privileges are granted, but still I cannot get the wordpress files to run. This is my configuration:
OS: CentOS 6.5 Provider: Digital Ocean PHP: 5.3.3 Apache: 2.2.15
my VirtualHost looks like this:
<VirtualHost *:80>
ServerName blog.domain.com
DocumentRoot /var/www/blog/
<Directory "/var/www/blog/">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
To configure wordpress subdomain as you need:
1) configure the virtualhost, example
<VirtualHost *:80>
ServerAdmin you@domain.com
DocumentRoot "/var/www/blog/"
ServerName blog.domain.com
ErrorLog "/var/log/blog.domain.com-error_log"
CustomLog "/var/log/blog.domain.com-access_log" common
<Directory "/var/www/blog/">
Options +Includes
AllowOverride all
</Directory>
2) Configure wordpress to use the subdomain:
Place the following line of code to the end of the file wp-config.php
define('WP_HOME', 'http://blog.domain.com');
define('WP_SITEURL', 'http://blog.domain.com');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.