• I have downloaded and installed EasyPHP as suggested on one of the Forum pages. I am following the instructions about installinfg and have done the following as suggested by their site.:

    Wrangle Windows 7
    Windows 7 does not handle localhost in the same way as older versions. Previously, Windows stored a localhost line in the machine’s hosts file by default but this is no longer the case. You need to modify the hosts file manually.

    Navigate to the hosts file in C:\Windows\system32\drivers\etc and open it in a plain text editor (eg NotePad). Just after the initial comments, you should see the line:

    # 127.0.0.1 localhost
    Remove the hash sign (#) from the start of the line and save the file.

    Configure Apache
    You need to make 2 changes within Apache if you want to use custom permalinks:

    Activate the rewrite module
    Give permission for WordPress to rewrite
    To activate the rewrite module, you need to edit your Apache configuration file — called httpd.conf — within the conf_files sub-folder of your EasyPhp folder. Right-click on the EasyPHP icon, select Configuration → Apache. This will launch the httpd.conf file in NotePad.

    Find the line that reads:

    # LoadModule rewrite_module modules/mod_rewrite.so
    And remove the hash sign (#) from the start of the line, so that it reads:

    LoadModule rewrite_module modules/mod_rewrite.so
    You then need to make a permissions change in the same file. Find the line that reads:

    <Directory “${path}/www”>
    A few lines further down should be:

    AllowOverride None
    Change this to:

    AllowOverride All
    Save your httpd.conf file, then restart the Apache server by double- clicking the EasyPHP icon in task bar. In the popup dialogue, click the Apache button and select Stop. Wait for the bottom red light to show, then click the Apache button again and select Start. You can then minimise the dialogue box.

    Create your WordPress Database and User
    Start EasyPHP.
    Once it has started, right click, chose Configuration and click PhpMyAdmin.

    However when I click PhpMyAdmin I get a browser window that says this:

    Object not found!

    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    If you think this is a server error, please contact the webmaster.

    Error 404

    127.0.0.1
    Apache/2.4.7 (Win32) PHP/5.4.24

    I’m sure I followed the steps correctly. Can anyone suggest why this doesn’t work?
    Many thanks.
    Tony
    PS I am a complete novice with Php and MySql so please be gentle 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • I have not used Easy PHP, but have used many other local servers, none of which requiring you to edit the host or apache files. Perhaps try one of these:

    – Uniform Server
    – XAMPP
    – MAMP for Windows

    Note that WAMPServer (another popular local server) will require you to manually enable mod-rewrite for permalinks to work; the three noted above work ‘out of the box’ 🙂

    There is also AMPPS here: http://www.ampps.com/
    This bundle includes Apache, PHP, mySQL etc, as expected and also a zillion one click installers for PHPMYADMIN as well as WordPress

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks guys I’ve decided to go with xampp (it’s free!)

    Do you know of any step by step instructions on the WordPress site which goes through how I would import the site which is run on a web server into the WordPress installed with xampp?

    Thanks for all your suggestions
    Have a great 2015!
    Tony

    You could use one of the many backup/move plugins, but I prefer to do this manually. The main benefit as I see it is that one gets to learn how all this works 🙂 Besides, once you have done it a couple times, it takes less than 5 minutes.

    Web Server

    – export database
    – zip and download all files and folder of the site

    XAMPP

    Database

    – using phpMyAdmin, create a new, empty database (no spaces in the name and it doesn’t need to match the web server one)
    – import the exported database into this new database
    – edit the siteurl and home fields in the wp_options table with the location of the local site
    – e.g. if you place the site files in a folder named wordpress then you would need http://localhost/wordpress

    Local Site

    – create a folder within C:\xampp\htdocs (e.g. wordpress) and unzip the downloaded site files there; the path would be C:\xampp\htdocs\wordpress for this example
    – edit the wp-config.php file that is now in this location with the following:
    NOTE – use a PLAIN TEXT EDITOR, such as NotePad

    — database name: whatever you named it
    — database user: root <this is the default XAMPP DATABASE user name>
    — database password: <empty> do not enter ANYTHING here <this is the default XAMPP DATABASE USER password>
    — host: localhost

    You should now be able to log into the WP Dashboard

    – install and run this plugin to update the URLs/links

    http://wordpress.org/plugins/velvet-blues-update-urls/

    — select all options EXCEPT the last one (GUID)

    Once that is done, go to:

    Settings > Permalinks and Save.

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks Lyle that’s great, I’ll try that
    Tony

    Thread Starter TonyWilliams

    (@tonywilliams)

    I’ve installed xampp and am having a problem running Tomcat as a service I get a message in the control panel window that says “Service was NOT (un)installed!”

    I’ve tried following these steps
    http://technology.amis.nl/2011/06/08/two-tips-using-xampp-apache-tomcat-on-windows-7-getting-started/

    But still get the same message?
    Thanks
    Tony

    No need to run Tomcat.

    And when just starting out with local servers, no need to run them as a service; I never do as I may want to fire up a different local server and don’t want to have to mess around stopping the services.

    All you need is to start Apache and MySQL. That’s it 🙂

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks Lyle.

    Sorry to take up your time but I have another problem now 🙁

    I tried to run xampp by opening my browser and used http://localhost and got a message that the page is not available.

    Any ideas? I need to stick at this and seem to get so far and then stop! My 70 year old brain is struggling with this I have to say. 🙂

    Tony

    My brain is not all that far behind you 😉

    – in C:\xampp , double click xampp-control.exe to open the XAMPP Control Panel
    – in the XAMPP Control Panel under Actions, click ‘Start’ for both Apache and MySQL
    – when both are running, their backgrounds should be ‘green’ (Module column)

    As mentioned earlier, when NOT running as a service, one will have to do this whenever you have restarted your computer or have stopped the servers from the control panel.

    Note that to access phpMyAdmin (the database tool), click on the ‘Admin’ button in the MySQL row.

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks Lyle. I’ve had to postpone any more till later as now have family new year duties!

    Incidentally I did set the modules to run as Services? Would that have made a difference?

    Anyway I’ll take your advice and start them manually and try again.

    I’ll get back on here when I’ve tried it.

    Thanks again really appreciate your help.
    Tony

    Thread Starter TonyWilliams

    (@tonywilliams)

    Hi Lyle, I eventually got both running OK and am now on the next step. Unfortunately I’m now having problems running the WordPress install file, in spite of the fact that I believe I followed the instructions to the letter!

    I have posted this problem under a new thread here

    If you have any suggestions on that thread I would be grateful.
    Tony

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Help with installing local site with EasyPHP’ is closed to new replies.