Link to home
Start Free TrialLog in
Avatar of pcelements
pcelementsFlag for Puerto Rico

asked on

Imported Wordpress and my websites are blank

Hi:
I am moving 2 wordpress blogs to a new webserver. I have a backup of the 2 databases. In the new server, I copied my public_html folder to my server and created the databases and users using instruction provided by wordpress:
$ mysql -u adminusername -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54
 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
 
mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)
 
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
    -> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
 
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> EXIT
Bye
$

Then, I accessed my server through phpmyadmin and imported each of the databases. No errors were shown during import. When I try to access my webpage of any of the 2 blogs, I get a blank screen in the browser, no errors are shown.

The database names, usernames and passwords are the same in the old and new server. So, I didn't change anything in the wp-config.php file.

Thanks for your help!
Avatar of no worries :-) no nothing
no worries :-) no nothing
Flag of Greece image

Have you also applied, themes, plugins etc?
Have you also moved all files?
Avatar of pcelements

ASKER

All files have been moved.
More Info: Please Help!

I just enabled display_errors in the php.ini file and when accessing website through browser, the following error is shown:

Warning: require(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Anguilla' for 'AST/-4.0/no DST' instead in /var/www/virtualdomains/domain1.com/wp-settings.php on line 21 Warning: require(/var/www/virtualdomains/domain1.com/wp-includes/load.php): failed to open stream: Permission denied in /var/www/virtualdomains/domain1.com/wp-settings.php on line 21 Warning: require(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Anguilla' for 'AST/-4.0/no DST' instead in /var/www/virtualdomains/domain1.com/wp-settings.php on line 21 Fatal error: require(): Failed opening required '/var/www/virtualdomains/domain1.com/wp-includes/load.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/virtualdomains/domain1.com/wp-settings.php on line 21

I have another domain in this server and Wordpress is running in that one without problems, but it is a new installation and a new database.
Ok, the timezone error got fixed by adding the following line in the php.ini file with my time zone:
date.timezone = "America/Anchorage"

The Permission denied error, still getting it.
ASKER CERTIFIED SOLUTION
Avatar of pcelements
pcelements
Flag of Puerto Rico image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I was able to find the solution by trial and error.