Problem: Using a pre-existing subdirectory install
-
I had WordPress running but to access it via a browser the URL looked like; https://mywebsite.com/wordpress/ I tried to follow the instructions for moving the index.php & .htaccess files so that the base URL, https://mywebsite.com would automatically drive the user to the blog. I was following the instructions given here for using a pre-existing directory; https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
I’m on a shared hosting plan which kind of convolutes the directory structure and I think I have some sort of path problem. Now when going to my site I get this warning;
Warning: require(/usr/local/pem/vhosts/121764/webspace/httpdocs/thinbluesmoke.com/webspace/siteapps/WordPress-60594/htdocs/wp-blog-header.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/121764/webspace/httpdocs/thinbluesmoke.com/index.php on line 17 Fatal error: require(): Failed opening required ‘/usr/local/pem/vhosts/121764/webspace/httpdocs/thinbluesmoke.com/webspace/siteapps/WordPress-60594/htdocs/wp-blog-header.php’ (include_path=’.:/usr/libexec/php4-cgi/share/pear’) in /usr/local/pem/vhosts/121764/webspace/httpdocs/thinbluesmoke.com/index.php on line 17
Here’s my index file;
<?php
/**
* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*//**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define(‘WP_USE_THEMES’, true);/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/webspace/siteapps/WordPress-60594/htdocs/wp-blog-header.php’ );I could use some assistance with this.
Thanks
- The topic ‘Problem: Using a pre-existing subdirectory install’ is closed to new replies.