• 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?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Upload all files via FTP in Auto detect mode or in ASCII and see if it works.

    Kailash

    Thread Starter arkaha

    (@arkaha)

    Uploaded mode auto detect, error the same.

    What are your apache error logs saying?

    Your webserver does have php, right?

    Sometimes it helps to go back to basics.

    Thread Starter arkaha

    (@arkaha)

    [Wed Sep 16 13:59:46 2009] [error] [client REM.OTE.IP.ADR] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3027): [client REM.OTE.IP.ADR] r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 13:59:46 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /favicon.ico
    [Wed Sep 16 13:59:46 2009] [debug] mod_deflate.c(447): [client REM.OTE.IP.ADR] Zlib: Compressed 538 to 323 : URL /site/index.php

    Thread Starter arkaha

    (@arkaha)

    rohan_kapoor

    apt-get install php5
    Reading package lists… Done
    Building dependency tree… Done
    php5 is already the newest version.

    is this what you mean?

    Thread Starter arkaha

    (@arkaha)

    I try to use LimitInternalRecursion 100, error log changed to:

    [Wed Sep 16 14:11:21 2009] [debug] core.c(3027): [client REM.OTE.IP.ADR] r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /site/index.php
    [Wed Sep 16 14:11:21 2009] [debug] core.c(3033): [client REM.OTE.IP.ADR] redirected from r->uri = /favicon.ico
    [Wed Sep 16 14:11:21 2009] [debug] mod_deflate.c(447): [client REM.OTE.IP.ADR] Zlib: Compressed 538 to 323 : URL /site/index.php
    [Wed Sep 16 14:11:44 2009] [debug] mod_deflate.c(447): [client REM.OTE.IP.ADR] Zlib: Compressed 432 to 175 : URL /index.php
    [Wed Sep 16 14:12:02 2009] [debug] mod_deflate.c(447): [client REM.OTE.IP.ADR] Zlib: Compressed 432 to 175 : URL /index.php
    [Wed Sep 16 14:12:33 2009] [debug] mod_deflate.c(447): [client REM.OTE.IP.ADR] Zlib: Compressed 432 to 175 : URL /index.php

    Thread Starter arkaha

    (@arkaha)

    Using this solution:
    https://codex.www.ads-software.com/Installing_WordPress
    step by step, the errors were start from this step:
    “wp-admin/install.php” calling, after that all was ok, except header.

    there were:

    Warning: Cannot modify header information – headers already sent by

    I continue, after all installation, blank blog opens ok, but when i try to get in wp-admin, i ve got this:

    Warning: Cannot modify header information – headers already sent by (output started at /home/ap/www/test_wp/wp-config.php:2) in /home/ap/www/test_wp/wp-includes/pluggable.php on line 865

    and an empty page.

    i ve looked around on this problem, most popular solution was:

    It is usually because there are spaces, newlines, or other garbage

    .

    but how it can be?? i ve do this: wget https://www.ads-software.com/latest.tar.gz and dont modify any files except wp-config.php ?

    wp-config.php
    that is the file with the problem
    make sure there are no spaces before the opening php statement

    Thread Starter arkaha

    (@arkaha)

    diff showe only this difference:

    define(‘DB_NAME’, ‘wp_test_db’);

    /** MySQL database username */
    define(‘DB_USER’, ‘wp_test_root’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘123’);

    highlited values: wp_test_db wp_test_root 123

    ok but did you look at it manually?
    open the wp-config.php and place cursor before opening php and hit delete

    Thread Starter arkaha

    (@arkaha)

    thx samboll.

    it’s so weird ?? but it works, there were space before <?php, and no where ?> i ve just add it, and it works!

    ok, it seems blank word press works well, but i have 2 more questions:
    1) why there is no ?> in default file of wordpress? ??
    2) how can i start not blanked blog(see errors above)?

    1) why there is no ?> in default file of wordpress? ??

    I’ve been told by smarter folks than me that it isn’t needed as themes close it
    yet I have fixed several installs for folks simply by adding that back – that used to be default- so…

    I’m having the same issue with the redirect to the install page after following the instructions to migrate the files and db over.

    I manually checked the wp-config.php file for an opening space, but didn’t find anything.

    Anything else to check that could cause this?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Migration to hosting’ is closed to new replies.