Forums

Local install on personal machine (71 posts)

  1. dinonet
    Member
    Posted 8 years ago #

    Hi, I wanted to install wordpress locally and I already have apache and php installed on my pc. Is there a tutorial for doing this manually? I can install wordpress on my web host using fantastico online but i wanted to be able to modify the design. Does anyone have any suggestions for this? Is there a point in installing wordpress with database locally just to work on design stuff and then upload to the live site? Any input would be greatly appreciated. Thanks!

  2. woddfellow2
    Member
    Posted 8 years ago #

  3. noname
    Member
    Posted 8 years ago #

    or ready-package XAMPP

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Xampp rules :)

    And the point ?
    No ftp'ing files to see changes - just open them in your text editor and save to see changes.
    You can play safely with latest versions
    You can create styles in privacy
    It's cool - you can play with other stuff too.

  5. dinonet
    Member
    Posted 8 years ago #

    I already have php and apache installed though with web sites running. If i try xampp won't it screw me all up? Isn't xampp for an install from scratch?

  6. James
    Happiness Engineer
    Posted 8 years ago #

    How to install WordPress on XAMPP:
    http://www.tamba2.org.uk/wordpress/xampp/

  7. dinonet
    Member
    Posted 8 years ago #

    Also how come all the instructions assume I have a database already on my system? I don't :(

  8. orangeguru
    Member
    Posted 8 years ago #

    @dinonet: I am not sure what you mean - but phpmyadmin greatly helps to administer MySQl databases:

    http://www.phpmyadmin.net/

  9. dinonet
    Member
    Posted 8 years ago #

    i have php and apache working on my machine right now. Can I install phpmyadmin now? Then do i have to try and install mysql again? I had all 3 installed but i am not sure how to make everything work after that! :(

  10. orangeguru
    Member
    Posted 8 years ago #

    You need Apache, PHP and MySQL - and phpmyadmin working.

    Did you read the tutorial at http://www.tamba2.org.uk/wordpress/xampp/

  11. dinonet
    Member
    Posted 8 years ago #

    I'm trying to install phpmyadmin, it keeps saying this

    cannot load mysql extension,
    please check PHP Configuration

    I uncomment the extension in the php.dll file but the same thing happens :(

  12. James
    Happiness Engineer
    Posted 8 years ago #

    Do you have MySQL installed?

  13. dinonet
    Member
    Posted 8 years ago #

    yeah it's installed and phpmyadmin should be installed but when I go to the phpmyadmin index page it gives me that error.

  14. orangeguru
    Member
    Posted 8 years ago #

    @dinonet: How can we support you if you don't tell us what you have installed or done so far. Your cryptic messages are not very helpful to your helpers ...

    Installing XAMPP (lite) took me not even 3 minutes.

    Logging into the localhost via phpMyAdmin and creating one database 30 sec.

    ...

  15. noname
    Member
    Posted 8 years ago #

    An easy way for you would be to use XAMPP .. no install .. no setup .. extract & run

    1) Download xampp (ZIP archive) .. extract to C:\xampp, run C:\xampp\xampp_start.exe

    2) open IE or FF browser .. enter http://localhost/phpmyadmin (create wp database called wordpress or something else)

    3) Download latest wp... extract to c:\xampp\htdocs\whatever

    #open wp-config.php .. fire up like this


    define('DB_NAME', 'wordpress'); // The name of the database
    define('DB_USER', 'root'); // Your MySQL username
    define('DB_PASSWORD', ''); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    Launch http://localhost/whatever/wp-admin/install.php in your browser internet browser.

    Voilá

  16. dinonet
    Member
    Posted 8 years ago #

    I was going to try XAMPP but I was trying to find out if you install xampp after you have apache, php, and mysql installed on the machine already? I have all 3 installed already. I am trying to install phpmyadmin but I can't seem to be able to enable the mysql extension in php to make it work. If I install xampp is it going to install brand new instances of apache, php, and mysql? Hope this makes sense to you all. I appreciate the patience with me!

  17. dinonet
    Member
    Posted 8 years ago #

    wow I installed xampp and I still get the cannot load mysql extension error. I think I'm ready to give up /\

  18. dinonet
    Member
    Posted 8 years ago #

    This is what the FAQ says for the error i am getting. How does this help you resolve this? [1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration".
    To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

    Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.

    This is absolutely no help at all. Oh well

  19. calepeeples
    Member
    Posted 8 years ago #

    Bear with me as I'm doing this by memory (on my ibook).

    When you install the newest php distro from php.net (php5) you need to set up the mysql setting a little differently than before.

    I think in the readme for php there is a few lines that point you to changeing the php.ini file for php under windows. Try and look those up - if you don't have any luck, I'll try and look them up tomorrow when I'm in front of my PC.

    Good luck.

  20. pezastic
    Member
    Posted 8 years ago #

    I'm going to try this local install, too. I've been trying to make a new design using saved html files with Topstyle and then having to convert them back to php files. Sounds like this would save me some time.

  21. orangeguru
    Member
    Posted 8 years ago #

    @dinonet: Either you have a serious problem with your machine - or you didn't start Apache and the MySQL server at all?

    I get a fresh XAMPP installed and running plus a new database in less then five minutes ... hardly more then five or so clicks needed ...

  22. dinonet
    Member
    Posted 8 years ago #

    I have been running web sites on Apache and have PHP installed and it all works. Then I installed MYSQL and it seemed to install fine. I try to instalal phpmyadmin and it keeps giving me this error

    cannot load mysql extension,
    please check PHP Configuration
    Documentation

    I installed XAMPP and it does the same thing anyways. Not sure if it's a serious problem with my machine. There's probably something I need to change in a configuration file that I can't figure out. Guess I'll keep trying.

  23. mithrandir
    Member
    Posted 8 years ago #

    I'm having exactly the same problem as dinonet.

    Apache is installed and IS running, according to the GUI "Service Configuration" app in Fedora.
    PHP 4.3 is installed and IS enabled.
    MySQL 3.23.58 is installed and IS running, according to "Service Configuration".
    Currently running Fedora Core 3

    I've poked around in every config file Googling helped me find and as far as I know this stuff should all be humming. I've reconfigured and restarted all of those things. Yet I get the "cannot load mysql extension, please check PHP Configuration" error every time I try to look at anything in phpmyadmin/ . A 'Hello World!' PHP file I made in the root html directory works fine. So Apache and PHP are definitely on and working. phpMyAdmin can't seem to find MySQL. Once again, YES, mysql is installed and so is php-mysql. Once again, YES, mysql is running.

    This is not a problem exclusively dinonet's. There is something missing in the instructions and the documentation. What is it? Everyone else seems to have such an easy time with *AMP.

    Why can't PHP load the mysql extension?

  24. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Have you tried #wordpress on irc.freenode ?
    Clever people in there y'know !

  25. mithrandir
    Member
    Posted 8 years ago #

    An extra bit of confusion: the command "# php -m" returns a list of installed php modules, which INCLUDES "mysql"

  26. mithrandir
    Member
    Posted 8 years ago #

    better yet, I put the phpinfo script in the top level directory, "/var/www/html/", and the script works fine. However, if I run it from /var/www/html/phpmyadmin/phpinfo.php I get the "cannot load mysql extension..." error.

    Fascinating!

  27. usology
    Member
    Posted 8 years ago #

    Dionet: take a look at the xampp readme (I didn't, either, that's how I ended up here).

    The problem arises because php5 no longer works out of the box with mysql, instead using sqlite or something due to licensing issues. Though that might be licencing issues with xampp. I don't really know / care too much.

    I figured the easiest way to solve my problem was just to change to php4. Fortunately xampp lets you do this.

    Firstly, run the setup_xampp.bat to get things as they should be with ports and stuff.

    The run php-switch.bat which offers you the choice to toggle between php5 and php4.

    And that seems to work.

    However... on going to check out phpmyadmin I get "Warning: Illegal offset type in C:\xampp\phpmyadmin\libraries\grab_globals.lib.php on line 74", but I figure this is progress. I'd be interested to know if you get that, too. When I've nailed that I'll keep you posted.

  28. usology
    Member
    Posted 8 years ago #

    ok - seems that most people might not have that problem with the grab globals thing - it's to do with Zend Optimiser. If you do use it, upgrade it to > 2.5.7; it's free. http://www.zend.com/store/free_download.php?pid=13

  29. tkhaj
    Member
    Posted 7 years ago #

    Hey! I wanted to say thank you to 'noname', whoever you are. I read the post about installing xampp so easily, and hey it worked like a dream! wow.
    I've been fighting for a couple days now to get a simple testing server set up to try creating my own themes. First tried sambar and got php and mysql all together and talking to each other, I thought, and... wordpress couldn't connect to the database. Then I did try xampp (without the instructions from 'noname') and must've done something wrong. Tried a couple other things, came back to sambar trying to make it work, but I'm no wizard.
    Then I saw the post making it sound so easy with xampp. Thank you! Now I can go sleep.

  30. drewp2
    Member
    Posted 7 years ago #

    Fyi, on a clean machine I followed Noname's instructions above to the letter, and it worked perfectly.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.