Giter VIP home page Giter VIP logo

Comments (14)

sammdec avatar sammdec commented on June 12, 2024

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.

markjaquith avatar markjaquith commented on June 12, 2024

You have to create the database and put the database info in wp-config.php

from wordpress-skeleton.

sammdec avatar sammdec commented on June 12, 2024

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.

markjaquith avatar markjaquith commented on June 12, 2024

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.

sammdec avatar sammdec commented on June 12, 2024

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.

markjaquith avatar markjaquith commented on June 12, 2024

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.

sammdec avatar sammdec commented on June 12, 2024

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 be http://yoursite.com.


Reply to this email directly or view it on GitHub:
#2 (comment)

from wordpress-skeleton.

markjaquith avatar markjaquith commented on June 12, 2024

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.

sammdec avatar sammdec commented on June 12, 2024

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.

sammdec avatar sammdec commented on June 12, 2024

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.

sammdec avatar sammdec commented on June 12, 2024

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.

WraithKenny avatar WraithKenny commented on June 12, 2024

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.

shovanco avatar shovanco commented on June 12, 2024

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.

byNiko avatar byNiko commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.