Hi all!
I have local linux pc(debian), with my configured blog on wordpress, it works greate, but its time to publish it to internet, i do it with this steps:
local debian:
1)mysqldump -u username -ppassword database > wp.sql
2)zip site data from /var/www/site, and wp.sql
remote hosting(debian):
1)download via wget zipped data.
2)unziped it to: /home/myuser/www/site
3)created database like this:
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)
4)imported sql data mysql -u username -ppassword -D database < wp.sql
after that, i wrote in /etc/apache2/sites-enabled/000-default
this: `<VirtualHost *:80>
ServerAdmin webaster@localhost
DocumentRoot /home/myuser/www/site
ServerName site
ErrorLog /home/myuser/log/site-error.log
TransferLog /home/myuser/log/site-transfer.log
CustomLog /home/myuser/log/site-custom.log combined
</VirtualHost>`
after that i rebooted apache2, and typed addres of my site, but all what i see is:
Warning: Unexpected character in input: '' (ASCII=8) state=1 in /home/myuser/www/site/index.php on line 343
Warning: Unexpected character in input: '' (ASCII=28) state=1 in /home/myuser/www/site/index.php on line 343
Parse error: syntax error, unexpected T_STRING in /home/myuser/www/site/index.php on line 343
i checked that file index.php, and md5sum, are the same as in local debian.
my question is, what i am doing wrong?