• Resolved jarilo80

    (@jarilo80)


    Hello,
    Can somebody please explain and give me the answer to this kind of error problem I have?

    I’ve uploaded content of my site’s folder from htdocs with Filezilla to free server biz.nf

    I’ve created database and imported it to the server ( first I’ve exported it from my local MySQL ). Then I’ve changed siteurl and home according to subdomain adress. In wp-config everything is changed to database name, user and host name.

    When I try to open the adress of the site, it is visible, but styles and scripts will not load. Images are not displayed… On localhost everything works just fine as it should.

    Here is the link: https://lepenskivir.co.nf/

    Thank You!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Sixteen theme to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that specific time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter jarilo80

    (@jarilo80)

    I have free account so can’t get full server log message, I made it just for testing. I’ve try all of this, renamed htaccess file, plugins folder… Admin from biz.nf told me that I need to “tweak” WordPress files because there is still something that is “named” like I use it in localhost so I need to rename it to server config. Which are the files that could be changed?

    Moderator James Huff

    (@macmanx)

    It’s hard to say for sure specifically, there are many ways that the URL change could be forced via a file: https://codex.www.ads-software.com/Changing_The_Site_URL

    Thread Starter jarilo80

    (@jarilo80)

    Thank You James, lots of knowlege on these pages.
    https:// do the job. In front of home and site url makes bootstrap to work and some of the css. Evrything is centered, theres no 500 error mesages when I click on pages in nav. bar.
    But js, links to some of the pictures and bit of css still dont work?…
    I’m still searching for probably small tweak, but it’s annoying ??

    Moderator James Huff

    (@macmanx)

    You might need to use a plugin like https://www.ads-software.com/plugins/velvet-blues-update-urls/ to update the URLs within content.

    Thread Starter jarilo80

    (@jarilo80)

    Finally did it! ??

    I went back to the beggining, to my localhost installation. Removed all plugins from the admin, and then installed three plugins, wp migrate db, backlinks saver and Yoast SEO. Among the others there are simple local avatars, wow slider…

    I Delited database from the server and all WordPress files with Filezilla.

    Then I’ve exported localhosts database, created new database on the server and imported it. Changed home and site url from https://localhost/my_site_name/ to https://my_site_name.co.nf

    When WordPress uploaded on the server, in wp-config.php I renamed db_name db_user db_pasword db_host to the server database names.

    And the last step was tweaking .htaccess file where instead of my localhost file, I copied WordPresses .htaccess file

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    P.S. on the server all WordPress files need to be in folder named as subdomain name

    Moderator James Huff

    (@macmanx)

    Thanks for sharing your solution!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘internal server error 500’ is closed to new replies.