• Resolved Imagenthali

    (@nthali)


    Trying to set up wordpress on my localhost.

    i followed the steps on wordpress.org to install – full disclosure, took me many different websites to install each component – but when i ran the install script, it gave me the page to enter my db details.

    it was able to connect to the db, but wasn’t able to write to my wp-config.php, so i copied what it gave me and pasted it into the wp-config.php file, and clicked on “run the installation”, and i get a “problem loading page”:

    ————

    Looks like there’s a problem with this site

    https://localhost/wp-admin/install.php might have a temporary problem or it could have moved.

    Error code: 500 Internal Server Error

    • The site could be temporarily unavailable or too busy. Try again in a few moments.

    ————

    I suspect it’s permissions – after moving the wordpress files to /var/www/html, i changed permissions to 644 for files and 755 for the 3 directories.

    Any ideas?

    Thanks,

    Nilesh

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Imagethreadi

    (@threadi)

    The reason for the error should be visible in the error log. You can find it in your hosting area. If necessary, the support of your hosting can help you.

    Alternatively, you could also enable debugging in WordPress. How to do this is described here: https://wordpress.org/support/article/debugging-in-wordpress/ – also here the support of your hosting can help you if necessary to edit the file accordingly.

    In both cases you should be able to see what the cause is in the logfile.

    Since you are trying to run WordPress locally, you can also use something like LocalWP.

    Thread Starter Imagenthali

    (@nthali)

    thanks for the responses. Can’t believe I forgot to check the log despite being a dev in the past.
    also thanks for the link to localwp. I’ll install that as well to play around with it.
    I just got impatient, removed all the WordPress files and copied them back. This time I didn’t bother changing file permissions at all and it installed just fine.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Running install.php gives me a 500 internal server error’ is closed to new replies.