• Hi,
    Running ubuntu 14.04 and running wordpress 3.8.2, and 3.9.2 on some test sites.

    Im trying to understand the file structure in wordpress, meaning ive read alot, but cant find what Im looking for.

    When setting up the wordpress server, ive running
    sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost to create user and database.

    This script creates a file in etc/wordpress folder, config-localhost.php or config-default.php. What are those, and do I need them to run wordpress? Ive tried to rename them, just for test, and it seems that the site still works, or at least still accessible.

    regards
    Mikael

Viewing 3 replies - 1 through 3 (of 3 total)
  • Im trying to understand the file structure in wordpress,

    What you’re experiencing is some distribution specific issues, rather than actual WordPress structure. In a typical default installation on a remote server, all of the WordPress files – including the config file – are contained in the directory where they are installed.

    The symlink issues, the /usr/share path, the config-localhost.php and config-default.php files are all specific to Ubuntu/Debian installations where the “apt-get install wordpress” command (or the software manager) has been used to install WordPress.

    You’re actually in need of some Ubuntu specific tutorials on how to install and configure WordPress when it’s installed from a .deb package.

    Hi friends,

    I am new in the field of web business. I installed the wordpress locally on my computer with xampp. Unfortunately , i forgot the name of database i provided.

    I designed a website using cutomizr theme.

    It was running very well so i decided to host website on live server (godaddy), as i explained i am new so i was really not sure of how hosting is done.

    I changed the username , password and database name in WP-CONFIG and didnt keep the original file for local server. Now i user firezilla to upload files and files got uploaded. After talking to godaddy support somehow website became live , but a few links were not working. If you click it comes up with Database connection error.

    I am unable to run the website on my localhost.

    Is there a way i can fix this on both localhost and godaddy server.

    Remember i dont remember the name given to database when i installed wordpress on localhost.

    Any help will be highly appriciated.

    Thank You

    You can run mysql and ask it what your databases are named, which one is your WordPress will be obvious. Then you will need an SQL username and password that access that database, likely also forgotten, never mind, just create new ones. Probably need to findout your WordPress table prefix, so view the tables in your database, again will be obvious.
    Put all these into your re-crafted wp-config.php file, and your localhosted WordPress will be running again.
    Next you will need to login, which is another saga.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need help to understand file structure’ is closed to new replies.