Closed jbonigomes closed 8 years ago
learning.com
learning.com
to the ip address of the virtual machine. You can find this in VirtualBox somewhere in the network settings. Then the line in the host file would be something like: 192.168.1.1 learning.com
PS. thanks, I am actually surprised that the vagrant stuff even still works. I haven't looked at it in a long time, and was never sure may people used it, because I didn't get many issues like this one. So good luck and let me know how it goes.
For number 3 - do you have the paths set up in your wp-config,php file?
/**
* Set custom paths
*
* These are required because wordpress is installed in a subdirectory.
*/
if (!defined('WP_SITEURL')) {
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress');
}
if (!defined('WP_HOME')) {
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME'] . '');
}
if (!defined('WP_CONTENT_DIR')) {
define('WP_CONTENT_DIR', dirname(__FILE__) . '/content');
}
if (!defined('WP_CONTENT_URL')) {
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/content');
}
Are those lines in there? If so, copy and paste here for me. Bad paths here may explain why it can't find the wordpress install...
Thanks @wesleytodd and @Toddses
@wesleytodd, I tried the set up what you mentioned above, however, now my page loads forever until it times out... :(
@Toddses, this is my wp-config:
/**
* Set custom paths
*
* These are required because wordpress is installed in a subdirectory.
*/
if (!defined('WP_SITEURL')) {
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress');
}
if (!defined('WP_HOME')) {
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME'] . '');
}
if (!defined('WP_CONTENT_DIR')) {
define('WP_CONTENT_DIR', dirname(__FILE__) . '/content');
}
if (!defined('WP_CONTENT_URL')) {
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/content');
}
That all looks legit. You might try to switch that dirname(__FILE__)
call to $_SERVER['DOCUMENT_ROOT']
. The dirname()
call works for me locally, but never works on our servers when I deploy.
Here, it may not solve the problem, as it should still find the install script regardless of the content_dir constant. You might also dig around the wordpress directory and make sure WP was installed correctly.
Thanks for all your help, I decided to run it locally with MAMP at the end of the day, I have a deadline with my project and need to get going, but once again, thanks for all your help, I will close this issue for now.
"I have a deadline with my project and I need to get going."
Oh how I wish all developers were as wise as you sir.
Thanks @Toddses
Hi there, this is more of a question then an issue, but I don't know where else I could ask.
I have started a project using the generator with the
--advanced
flag, so that I could get Vagrant set up.I am new to Wordpress, apologies if those questions are too naive.
Question 1:
WordPress URL
, I answered withlearning
should it be more like a real URL format, likehttp://learning.com
?Question 2:
Question 3:
http://127.0.0.1:8089/
and I get the default 'It works' page from Apache, however, if I try to get to the wordpress site by pointing the browser tohttp://127.0.0.1:8089/wordpress/wp-admin/install.php
I get this 404 error http://cl.ly/1N1L3V0l3y1DWhat am I doing wrong? :)
Thanks
P.S. Great work with the generator