25 Comments

  1. Scott

    I can't get this working. After entering the database connection details I get:

    "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 %. This could mean your host's database server is down."

    I read though the comments. Did a sudo adduser site1 www-data; did a reload/restart.

    So in envvars should user and group be www-data, or username? I have it with username.

    Reply
  2. Brad

    Installed WP 3.01 locally on Ubuntu 10.04 including dependencies. Everything functioning except when viewing a theme in Firefox [3.6.12].
    Appears that not all graphic files are showing. Example: various menu*.jpg files don't appear with the menu bar on the home page, only the menu tags ['home' 'about' 'contact'] on the main background. Same with any icons; can see them in the images directory of the theme but not showing up.
    Issue possibly with FF?
    THX!

    Reply
    • Linerd

      Try clearing the cache in FF if you haven't already. The only other thing I can think of is that it's a permissions issue on the theme folders. You might need to make sure you have execute permission on the images directory. http://codex.wordpress.org/Changing_File_Permissions

      Reply
      • Brad

        You were spot on, Linerd! I should automatically think of this as I come across it often in Windows and have come across this before in Linux. Images are now showing up.
        Thanks for the 'clue'. I hope I can return the favor to the group with my growth in knowledge.

        Reply
  3. bobot

    great! i always wanted to do this all along and had it not been for this guide... muchas gracias

    Reply
  4. hoss

    I get this error when I try to unzip into /var/www

    You don't have the right permissions to extract archives in the folder "file:///var/www"

    any suggestions?

    Reply
  5. Lois

    Ok, I'll try file manager then. Thanks for the advice, much appreciated.

    Reply
  6. Lois

    Thanks Linerd, that makes a lot of sense. I've successfully set up WordPress on bluehost. I can certainly appreciate how valuable it is to have a platform set up to play with offline. Once that's done though, do you know of any good guides to help with uploading everything to the WordPress installation with my hosting provider?

    Reply
    • Linerd

      Well, if you're working on a theme, just archive the theme folder in a tar.gz or zip format. You can then upload the archived file to your hosting account through the cPanel File Manager or use FTP/sFTP (depending on what your hosting package supports) to upload the archive. Then you just unzip the archive on the server to the proper location. If you're not familiar with FTP, then the File Manager is the most straight forward way to upload.

      Reply
  7. Lois

    Ok I'm very new at this stuff, but now that I have WordPress "locally" installed according to the guides, what do I do now? how does it link to a domain name and hosting (bluehost) and make a "live" site? This isn't within the "scope" of this post but if you could point in the right direction that would be great. Thanks.

    Reply
    • Linerd

      The whole point of this is that you can develop or customize a WordPress theme off line (as in editing the theme code, not just adjusting theme settings). This is jsut so you can experiment in your own controlled environment. Then, once you have your theme looking the way you want, you can upload it to your WordPress installation with your hosting provider.

      Your production WordPress site will be on your host's server. If you bought your domain name and hosting package from the same provider, then they should have setup their domain name servers to point your domain name to your account. This video should walk you through setting up WordPress on BlueHost. http://tutorials.bluehost.com/wordpress/
      You can also install it using Fantastico DeLuxe: http://tutorials.bluehost.com/fantastico/

      Reply

  8. Question:
    For some reason when accessing my website from the outside, the theme doesn't show up, and most of the links go to local host instead of my ip/domain.

    Is there something I am missing here?!

    Reply
  9. CTown

    Wow, what an amazing guide! This guide also works with phpBB3, just downloaded the latest. All I had to do (after installing wordpress) was download and extract phpBB3, put the entire folder in site2 and went to site2/phpBB3/install/install.php. Not only that, I surpassed the requirements needed! Thank you for everything! I hope you have a great day.

    Reply
  10. Raj

    Hi
    Even though I extracted contents of the wordpress folder into site1 folder, when I go to http://site1/ I get

    ---------------------------------
    "It works!"
    ---------------------------------

    I then went back to http://localhost/phpmyadmin/

    this is fine, except it says towards the bottom of the page

    -------------------------------------------------------------------------
    The additional features for working with linked tables have been deactivated. To find out why click here.
    Connection for controluser as defined in your configuration failed.
    Open new phpMyAdmin window
    --------------------------------------------------------------------------

    the link takes me to this

    ------------------------------------------------------------------
    Server: localhost
    $cfg['Servers'][$i]['pmadb'] ... OK
    $cfg['Servers'][$i]['relation'] ... not OK [ Documentation ]
    General relation features: Disabled

    $cfg['Servers'][$i]['table_info'] ... not OK [ Documentation ]
    Display Features: Disabled

    $cfg['Servers'][$i]['table_coords'] ... not OK [ Documentation ]
    $cfg['Servers'][$i]['pdf_pages'] ... not OK [ Documentation ]
    Creation of PDFs: Disabled

    $cfg['Servers'][$i]['column_info'] ... not OK [ Documentation ]
    Displaying Column Comments: Disabled
    Bookmarked SQL query: Disabled
    Browser transformation: Disabled

    $cfg['Servers'][$i]['history'] ... not OK [ Documentation ]
    SQL history: Disabled

    $cfg['Servers'][$i]['designer_coords'] ... not OK [ Documentation ]
    Designer: Disabled

    Connection for controluser as defined in your configuration failed.
    Open new phpMyAdmin window
    ---------------------------------------------------------------------------

    Would be grateful if you pointed me the right way. Please note, I did use the command

    sudo adduser yourid www-data

    cheers
    Raj

    Reply
    • Linerd

      To get rid of the "It works" page, just delete the index.html file from your site1 folder. Apache will then default to WordPress' index.php file.

      I've never seen that phpMyAdmin error before so I'm not sure where to start. I guess I would try reloading Apache to see if that helps.

      sudo /etc/init.d/apache2 reload

      If that doesn't work then I suggest you ask your question on the Ubuntu Forums. You'll get a lot more eyes looking at it there.

      Reply
      • bobot

        i also ran into the same error and i was lucky to fix it by checking on the membership on my own group! i do not understand it but when i check on the group that has the same name as my user id, i am not a member! so what i did is to make myself a member of the above group. 🙂

        Reply
  11. CTown

    Hello, during the install lamp part I could get into phpmyadmin (when the username was root), now I tried again after this guide and cannot log in no matter what I use. By the way, great guide, never would I have ever thought I would get this far.

    Reply
    • Linerd

      I think you need to add your ID to the www-data group. You can do this through System→Administration→Users and Groups or through the terminal with:

      sudo adduser yourid www-data

      It's the change to the Apache config in Part 1 that screwed this up. I guess I'll go add that to the tutorial.

      I'm not sure, but you might need to log out and log back in for the group change to take effect.

      Reply

  12. I figured out how to get joomla working if anyone wants to follow along feel free

    http://drknoxy.blogspot.com/2010/03/lamp-stack-joomla-wordpress.html

    Reply

  13. I had to make sure that host wasn't "root" and it had to be changed in the drop down to Any like yours, and it inserted a percentage symbol.

    My phpmyadmin was getting really wonky too. I not only had the same problem as jben
    Solution:
    sudo chown -R USERNAME /etc/phpmyadmin

    but my phpmyadmin started having some crazy log in issues. I still haven't gotten things settled for the Joomla development area though.

    Reply
  14. Sam

    I'm very happy running WordPress right now. Thank you again!

    Reply
  15. jben

    Hey great couple of guides just wanted to make one comment. Making the user and group to your own in apache messed up my phpmyadmin install (I am refering to the part 1 of this guide). After sometime of researching I found that in my case the phpmyadmin actually did not give me full read access. So I went to /etc/phpmyadmin and gave myself full read access to the files. It seems it placed some of the files under the www-data group. When I did this everything worked fine and I was able to create a new database for wordpress.

    Reply
    • Linerd

      I ended up adding my ID to the www-data group to resolve the issue. I've got to figure out the best place to add that to the tutorial. Glad you got it working.

      Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.