Comments (14)
weird I have sorted the initial problem, still had sample appended to the end of local-config.php. but now it says it cant find the file /index.php on the server which im assuming kicks off the whole wordpress install. I have copied the one across that is in the repo but it still cant find it.
Any help would be a massive help. thanks
from wordpress-skeleton.
You have to create the database and put the database info in wp-config.php
from wordpress-skeleton.
I'm assuming I enter the database details in wp-config for the live
database. I entered the local db creds into the local config file that
seems to have worked but I'm now getting a error saying it can't find
the index.php.
On 14 Jun 2012, at 00:41, Mark Jaquith
[email protected]
wrote:
You have to create the database and put the database info in wp-config.php
Reply to this email directly or view it on GitHub:
#2 (comment)
from wordpress-skeleton.
Are you familiar with all this?
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Perhaps I should just supply the wp-config.php
constants so that people who aren't familiar with the WP-in-subdir process are less confused.
from wordpress-skeleton.
I believed I understood it, i have hardly changed your repo at all
just added a different theme to the custom content folder.
I have got the index.php and .htaccess in the new root but it can't find it.
On 14 Jun 2012, at 08:04, Mark Jaquith
[email protected]
wrote:
Are you familiar with all this?
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Perhaps I should just supply the
wp-config.php
constants so that people who aren't familiar with the WP-in-subdir process are less confused.
Reply to this email directly or view it on GitHub:
#2 (comment)
from wordpress-skeleton.
Show me a screenshot of Options > General. WordPress Address should be http://yoursite.com/wp
and Site Address should be http://yoursite.com
.
from wordpress-skeleton.
That's the problem, I can't even install Wordpress. I have setup your
repo in a folder on my local test setup configured an empty db and
added the correct credentials to my local config variables.
When I visit my localhost site to get the install going it just says
cannot find index.php.
I'm really sorry for bothering you with my silly issues.
On 14 Jun 2012, at 08:14, Mark Jaquith
[email protected]
wrote:
Show me a screenshot of Options > General. **WordPress Address* should be
http://yoursite.com/wp
and Site Address should behttp://yoursite.com
.
Reply to this email directly or view it on GitHub:
#2 (comment)
from wordpress-skeleton.
The checkout should be root level. Not in a folder. And because WP is in /wp/
, you have to go to http://yoursite.com/wp/ to install it. Then, you can relocate it in Options > General by altering the WordPress Address.
from wordpress-skeleton.
Ahhh excellent I will try that and see how it pans out. Sounds
promising. Thanks for all your help.
Sent from an iPhone device.
On 14 Jun 2012, at 08:22, Mark Jaquith
[email protected]
wrote:
The checkout should be root level. Not in a folder. And because WP is in
/wp/
, you have to go to http://yoursite.com/wp/ to install it. Then, you can relocate it in Options > General by altering the WordPress Address.
Reply to this email directly or view it on GitHub:
#2 (comment)
from wordpress-skeleton.
Hi Mark,
Just tried it out on my system and while navigating to example.dev/wp (local dev) it returns with error connecting to database.
First off is there a reason why its not running the default wordpress 5 minute install procedure?
Secondly, I didnt think I would have to change anything within the /wp/ folder as its just a submodule and I wanted to keep it clean.
from wordpress-skeleton.
Ah so I figured it out and surprise surprise it was me being an idiot. Thanks for all your help with this.
from wordpress-skeleton.
just a note here: I've found setting define( 'RELOCATE', true ); and visiting wp/wp-login.php a good step in the process
from wordpress-skeleton.
Hi I am having the same issue.
Currently wp-config.php has
if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) { define( 'WP_LOCAL_DEV', true ); include( dirname( __FILE__ ) . '/local-config.php' ); } else { define( 'WP_LOCAL_DEV', false ); define( 'DB_NAME', '%%DB_NAME%%' ); define( 'DB_USER', '%%DB_USER%%' ); define( 'DB_PASSWORD', '%%DB_PASSWORD%%' ); define( 'DB_HOST', '%%DB_HOST%%' ); // Probably 'localhost' }
local-config.php has
define( 'DB_NAME', 'websitedev' ); define( 'DB_USER', 'websitedev' ); define( 'DB_PASSWORD', 'asdqE23ER' ); define( 'DB_HOST', 'localhost' ); // Probably 'localhost'
When I install the site I get the following error
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?`
However when I replace wp-config with
define( 'DB_NAME', 'websitedev' ); define( 'DB_USER', 'websitedev' ); define( 'DB_PASSWORD', 'asdqE23ER' ); define( 'DB_HOST', 'localhost' ); // Probably 'localhost'
It works.
ps:
I have tested database connection it works. What is the issue here?
I am running on local server with ampps (http://www.ampps.com/) & url as http://website.dev/
from wordpress-skeleton.
You probably mass uploaded all files to the live server - including the local-config.php file. Delete that file on the live server. Keep it on your local.
The wp-config file in this repo checks if the local file exists. If it exists it supercedes the wp-config database login info. So effectively your live server uses the credentials for your local server.
from wordpress-skeleton.
Related Issues (20)
- Update to Wordpress 4.4.2
- wp_localize_script doesn't appear to work
- Cannot Access Uploads Directory HOT 2
- Help Starting HOT 2
- Woocommerce template overrides not working
- Differences from _s HOT 1
- Installation failed: Download failed. cURL error 60: SSL certificate problem: self signed certificate in certificate chain HOT 2
- Nginx [no multi site] HOT 3
- Can't Establish php database connection on MAMP HOT 1
- Changing symlinks for media files stored in /shared/ HOT 2
- Broken Customizer After Migration
- '/content' directory not found beside '/wp' directory (get_template_directory_uri) HOT 1
- normalize.css doesn't appear here. Why? HOT 1
- How to change language of site and admin dashboard? HOT 1
- Repeated 403 console error when changing siteurl
- Update WP Skeleton to 4.2 Please HOT 1
- Multisite note HOT 7
- Problem loading theme assets HOT 1
- Question: Multisite, local (XAMPP) install
- MAMP/LAMP Multisite issues with my imported DB
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-skeleton.