Bantuan » Bantuan » Instalasi » [Tanya] Memindahkan WP Offline ke Hosting

  • teman – teman mohon petunjuknya, saya newbie di wordpress.
    Kebetulan saya sudah upload wordpress offline saya ke hosting gratisan bytehost, saya sudah upload file wordpressnya ke hosting berikut databasenya, dibagian wp confignya juga sudah diubah, dan memang sudah tampil di halaman awalnya, tapi ketika saya masuk ke menu – menu di web yang saya upload keluar error seperti dibawah ini :
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, root@foo.tld and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    mohon bantuannya teman – teman, bagaimana saya mengatasi error tersebut?

    Sebelumnya saya ucapkan banyak terimakasih.

Melihat 3 balasan - 1 sampai 3 (dari total 3)
  • Moderator Bogy Harseno

    (@bogyharseno-1)

    via phpMyAdmin, jalankan query sbg berikut:

    UPDATE wp_options SET option_value = replace(option_value, 'http://localhost/FOLDER_WP', 'http://NAMA_DOMAIN') WHERE option_name = 'home' OR option_name = 'siteurl';
    
    UPDATE wp_posts SET guid = replace(guid, 'http://localhost/FOLDER_WP','http://NAMA_DOMAIN');
    
    UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost/FOLDER_WP', 'http://NAMA_DOMAIN');
    
    UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://localhost/FOLDER_WP', 'http://NAMA_DOMAIN');

    bisa jg dgn cara sadis, mengedit file sql dengan Notepad sblm di-import ke database online-host. find dan replace localhost/FOLDER_WP dgn NAMA_DOMAINmu. namun cara ini tdk terlalu saya sarankan 🙂

    *) sesuaikan FOLDER_WP dgn folder dimana WP-mu diinstal di localhost, dan NAMA_DOMAIN dengan nama domain-mu.

    Pencetus Utas orgilican

    (@orgilican)

    mas bogy makasih banyak buat pencerahannya..

    sudah saya coba mas kedua cara mas, tapi maaf masih belum bisa mas masih keluar erronya,mungkin karena sayanya juga yang masih newbie. kira – kira ada masukan lain boleh mas..

    Sebelumnya saya ucapkan terima kasih

    Moderator Bogy Harseno

    (@bogyharseno-1)

    jika menggunakan permalinks, silahkan periksa keberadaan file .htaccess, sdh ada atau belum dan isinya benar atau tdk.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
Melihat 3 balasan - 1 sampai 3 (dari total 3)
  • Topik ‘[Tanya] Memindahkan WP Offline ke Hosting’ tertutup untuk balasan baru.