• I installed wordpress in my university website server but I get the following error message when I try to access my site.

    Oops! Google Chrome could not connect to shingle.ndsu.nodak.edu.

    I was not able to access the admin dashboard also initially but after changing the siteurl and home in wp_options table from https://shingle.ndsu.nodak.edu to https://www.universityname.edu/pubweb/nrg I could access the admin dashboard. But when I view my site it gives the
    above error message.

    I dont know why is it going to shingle.ndsu.nodak.edu instead of going to https://www.universityname.edu/pubweb/nrg.

    shingle.ndsu.nodak.edu is actually the name of the host machine. Do I need to map this name to https://www.universityname.edu/pubweb/nrg anywhere?

    Also, from where does the siteurl and home in wp_options table get the name first time after installation? Even in wp_posts table in the guid the name shingle.ndsu.nodak.edu has been populated. I want to know from where does it take this value and populate it in these tables the first time?

    Any help is appreciated.

    Thanks,
    Shishir

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter shishir.hegde

    (@shishirhegde)

    Hi,

    For $_SERVER[‘HTTP_HOST’] i got the value shingle.ndsu.nodak.edu:8222.

    I tried another variable $_SERVER[‘HTTP_X_FORWARDED_HOST’] which gave me the value https://www.ndsu.edu.

    But i do not know how and where to use it to make it work.

    Thanks,
    Shishir

    Moderator bcworkz

    (@bcworkz)

    You can’t readily substitute something else for $_SERVER[‘HTTP_HOST’] because it is in numerous locations through out the WP core files.

    I should have mentioned this earlier, somehow I thought it was mentioned already… answering too many threads I guess. In wp-config.php, enter the following:

    define('WP_SITEURL', 'https://www.ndsu.edu/pubweb/nrg');
    define('WP_HOME', 'https://www.ndsu.edu/pubweb/nrg');

    Assuming WP is installed in /nrg/, if not, add in whatever path to get to WP. If that doesn’t work, it will take something unorthodox to get WP working, like $_SERVER['HTTP_HOST'] = 'https://www.ndsu.edu/pubweb/nrg'; in wp-config.php instead. I’d be surprised if that doesn’t throw an error. May need to finagle the server configuration somehow less obvious, such as putting that last line in its own file named override.php (be sure the initial <?php is in the file too). Then in the .htaccess file (this is all in the WP installation folder btw) insert:
    php_value auto_prepend_file ./override.php

    I hope one of those works, because I don’t know enough about overriding server configurations to make any other suggestions. I think you can now see what needs to happen, someone that knows more about this may have a workable suggestion.

    [email protected]

    (@petereatwoodgmailcom)

    shishir.hegde,

    I am also attempting to install wordpress on NDSU pubweb server and get a similar response. I am able to access the sites address, https://www.ndsu.edu/ala2, however the load time is really slow. Are you having the same issue with load times?

    When I try to log into the fresh install at https://www.ndsu.edu/ala2/wp-login.php I am able to attempt a login but then it redirects me to shingle.-ndsu.-nodak.-edu:-8210/-wp--login.-php.

    I have not had a chance to go over everything posted here yet, but I’m assuming you have still not been successful at installing wordpress on NDSU pubweb. I have heard rumors that other people on campus had successfully installed it, but these are just rumors perhaps. I know the software is at least gaining support and demand.

    Anything you can share would be great.

    Thread Starter shishir.hegde

    (@shishirhegde)

    Hi Peter,

    I tried almost everything to make wordpress work but was unsuccessful at it. The reverse proxy server in NDSU is creating the problem and wordpress also does not have any solution how to handle reverse proxy settings. Hence, I am developing the website without wordpress using HTML files. Even I had heard that some people had run older versions of wordpress but I dont know anyone who has done it or whether it is a rumor.

    Thanks,
    Shishir

    To the best of my knowledge, even an older version of WordPress won’t work in this situation. Plus you need to be aware that running an older version of WordPress greatly increases the risk of your site being hacked.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Able to access admin dashboard but not able to access site’ is closed to new replies.