Wordpress - Setting up installations offline

14 replies
  • WEB DESIGN
  • |
Greetings

I have noticed everyone seem to agree that you need to buy hosting and domain names BEFORE you actually engineer anything. This seems bad to me. Is there a way to setup everything BEFORE using a FTP to upload it to a host?

The purpose of course, is to setup the site, and be satisfied with it, before actually starting to dash out money for it.

Thanks in advance

Sokar
#installations #offline #setting #wordpress
  • Profile picture of the author phpbbxpert
    Yes there is, all developers including myself build off-line.

    We use server replica software that has the same services as a server, eg. PHP, SQL, Apache

    I personally favor apache friends - xampp

    If you need a breakdown on setup ,etc... I will add details.
    {{ DiscussionBoard.errors[2831687].message }}
    • Profile picture of the author Sokar408
      Originally Posted by phpbbxpert View Post

      Yes there is, all developers including myself build off-line.

      We use server replica software that has the same services as a server, eg. PHP, SQL, Apache

      I personally favor apache friends - xampp

      If you need a breakdown on setup ,etc... I will add details.
      I'm an absolute rookie to setting up websites, so any and all details are appreciated and won't be forgot
      {{ DiscussionBoard.errors[2831711].message }}
  • Profile picture of the author phpbbxpert
    Could you give me some details about yourself so I know how specific I need to be.
    Eg. knowledge level of your computer, coding, etc...

    What is the OS of your computer?
    Mac, Windows Vista, Linux distro

    All of this stuff pertains to how detailed I need to get and what root to send you down.
    {{ DiscussionBoard.errors[2832140].message }}
    • Profile picture of the author Sokar408
      Originally Posted by phpbbxpert View Post

      Could you give me some details about yourself so I know how specific I need to be.
      Eg. knowledge level of your computer, coding, etc...

      What is the OS of your computer?
      Mac, Windows Vista, Linux distro

      All of this stuff pertains to how detailed I need to get and what root to send you down.
      When it comes to computers I'm pretty knowledgable, its not like I took up using computers yesterday (I'm 20). However I have little to no coding knowledge (however I'm gonna teach myself php before long). I know my way around windows XP, Vista without much difficulty. As for Linux and Mac I have 0 experience.
      {{ DiscussionBoard.errors[2834176].message }}
  • Profile picture of the author swtsubmit
    Use xampp for your os, and you can install wordpress, or other cms offline.
    {{ DiscussionBoard.errors[2833828].message }}
  • Profile picture of the author icun
    I use WAMP: Install PHP 5 Apache MySQL on Windows : WampServer

    I find it excellent, very easy to set up. You can set up your blog then on your own PC and access it through http://localhost/
    {{ DiscussionBoard.errors[2834133].message }}
    • Profile picture of the author Sokar408
      Originally Posted by icun View Post

      I use WAMP: Install PHP 5 Apache MySQL on Windows : WampServer

      I find it excellent, very easy to set up. You can set up your blog then on your own PC and access it through http://localhost/
      Alright this was pretty simple, however I do have problems actually get Wordpress to work. I have moved the wordpress files into my www directory, however it won't let me passed the "Create Configuration"

      I add in some dump info just to get start to get into wordpress and start learning (QUESTION: If I intend on making a website this way, and publish it later, how do I go about this, and should I use valid information in the configuration. Valid in the sense that it has a long secure password?)

      However it says:

      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?
      If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
      What am I doing wrong?
      {{ DiscussionBoard.errors[2835033].message }}
  • Profile picture of the author Chris DeMarco
    If you created a database on the install then you may just need to add the database name, username, and password to your wp-config.php file.


    1. Find the wp-config-sample.php file.
    2. Open the file with a text editor.
    3. Find the following section and change the info in italics (database name, username, password):


    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'testwordpress'); Enter the MySQL database name

    /** MySQL database username */
    define('DB_USER', 'root');

    /** MySQL database password */
    define('DB_PASSWORD', 'root');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    4. Save the file.
    5. Rename the file from wp-config-sample.php to wp-config.php.

    That might be the problem.
    {{ DiscussionBoard.errors[2835078].message }}
    • Profile picture of the author Sokar408
      Originally Posted by Chris DeMarco View Post

      If you created a database on the install then you may just need to add the database name, username, and password to your wp-config.php file.


      1. Find the wp-config-sample.php file.
      2. Open the file with a text editor.
      3. Find the following section and change the info in italics (database name, username, password):


      // ** MySQL settings - You can get this info from your web host ** //
      /** The name of the database for WordPress */
      define('DB_NAME', 'testwordpress'); Enter the MySQL database name

      /** MySQL database username */
      define('DB_USER', 'root');

      /** MySQL database password */
      define('DB_PASSWORD', 'root');

      /** MySQL hostname */
      define('DB_HOST', 'localhost');

      4. Save the file.
      5. Rename the file from wp-config-sample.php to wp-config.php.

      That might be the problem.
      Getting the same message, its starting to get to me.. :confused:

      EDIT: Turns out the problem was quite obvious, it had something to do with the database and php. Now its working fine.

      Can someone tell me, how I export the site from my local server, and then upload it with a FTP problem to a online host?
      {{ DiscussionBoard.errors[2839382].message }}
  • Profile picture of the author mojojuju
    Originally Posted by Sokar408 View Post

    Greetings
    The purpose of course, is to setup the site, and be satisfied with it, before actually starting to dash out money for it.
    You can set it up on free hosting from a provider such as FreePassHost.com before committing to paid hosting.

    As others have mentioned, you could install a web server on your home computer, but when you do so you will not have an environment that's the same as what you'd get if you paid for hosting.
    Signature

    :)

    {{ DiscussionBoard.errors[2835304].message }}
    • Profile picture of the author Sokar408
      Originally Posted by mojojuju View Post

      You can set it up on free hosting from a provider such as FreePassHost.com before committing to paid hosting.

      As others have mentioned, you could install a web server on your home computer, but when you do so you will not have an environment that's the same as what you'd get if you paid for hosting.
      From what I can gather, the WampServer thing that the guy above recommended, actually makes sure that the environment is just that, the same.

      Am I wrong?
      {{ DiscussionBoard.errors[2835495].message }}
  • Profile picture of the author Chris DeMarco
    I've used both WAMP and MAMP (for Macs) servers for development and everything is the same to me. Changes are pretty much instantaneous because the server is on your own machine. I'd be curious to know if there was anything different other than the location of the server.
    {{ DiscussionBoard.errors[2835663].message }}
  • Profile picture of the author NerdBoySEO
    I think either ithemes.com, webdesign.com or pluginbuddy.com have a free video tutorial on exactly this type of thing. I am certain the tute is there however can't guarantee it is one of the free ones.
    Personally I use a plug in to just move sites around from x to y, but it's a paid one and not sure if a free version exists.
    {{ DiscussionBoard.errors[2845681].message }}
  • Profile picture of the author phpbbxpert
    @Sokar408 I am not familiar with WAMP, assuming it's not much different than others like XAMPP, did you use phpMyAdmin to create the database?

    If you did you can export it there.
    NOTE: settings will need to be changed in the options table of the database to move it.
    eg. Site URL, uploads path.....
    Your settings in the wp-config will need to be changed also to match the live server setup and database settings.
    {{ DiscussionBoard.errors[2845772].message }}

Trending Topics