• I’ve been using xampp 1.7.3 as a localhost dev server for wordpress sites. I’ve set up virtual hosting so i can go to https://website1 or https://website2 etc.

    It’s been fine but over the last few months has been getting slower and slower and slower.

    Now it takes about 4 minutes to load a page.. that’s anything from post > add new in the backend to viewing a page on the front end. It is completely unworkable.

    I’ve tried all sorts, adding this to my hosts file:

    127.0.0.1 		localhost
    127.0.0.1 		127.0.0.1

    commenting it out, i’ve just uninstalled xampp and installed xampp lite 1.7.7, I’ve commented out any unused sites from my hhtpd-vhosts.conf file, I’ve moved all my sites to a backup folder and only kept the current ones, i’ve turned off my virus checker and firewall (avast), restarted, restarted xampp services etc etc.

    Having reinstalled to the latest and litest version and still thigns take 3 minutes to load… what can I do next? I now can’t use localhost for wp dev which is not good for me.

    Any suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Have you tried turning virtual hosting off and use sub-folder installs instead?

    Thread Starter trixienolix

    (@trixienolix)

    hi esmi, no i’ve not tried that.. not sure i know how to so will google but if you have any tutorials to hand please post me a url?

    ‘s really simple. Just run all of your sites in sub-folders off the main root. Then navigate to each site using something like https://localhost/site1 and https://localhost/site2

    Thread Starter trixienolix

    (@trixienolix)

    Hi I’ve moved my website folder into xampp/htpdocs, and I’ve removed references to virtual hosting in httpd-vhosts.conf AND hosts files… changed the options in wordpress so the new website home is https://localhost/sitename/, same for siteurl.

    When i go to https://localhost/sitename/ I see the homepage of the site fine. However when I click on any links i just get redirected to https://localhost/xampp/ i.e. I can’t navigate the site.

    Must be something I’ve not done properly. CAn you help?

    thanks in advance

    Thread Starter trixienolix

    (@trixienolix)

    It seems to be smething to do with the index.php page that is in localhost/htdocs. It has this code in it which forces everything to redirect to localhost/xampp:

    <?php
    	if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
    		$uri = 'https://';
    	} else {
    		$uri = 'https://';
    	}
    	$uri .= $_SERVER['HTTP_HOST'];
    	header('Location: '.$uri.'/xampp/');
    	exit;
    ?>

    How can I change it to stop re-directing? Changin the folder /xampp/ doens’t help as it just redirects to a new folder. I want it to use my current folder…

    Have you tried just renaming the file to index.php.old?

    Thread Starter trixienolix

    (@trixienolix)

    hi.. I worked it out:
    I had to rename the index.php file that is in xampp/htdocs, then I made a folder with teh name of my website, copied all of the wordpress files into there. Then logged in to phpmyadmin on localhost and updated the sie url and home to https://localhost/sitename.

    Now i kept getting 404s when trying to view any pag eother than the homepage. This is because of my .htaccess file having been copied from the previous location and now I was expecting it to work in localhost / sitename. So i opened the .htaccess file for my site and deleted all the wordpress code in there. Then I logge din to my admin area and visited th epermalnks apge and update the .htaccess. Then I was able to view all of my website. Hurrah!

    So, back to the original problem. Having subfolders like this has made my xampp work lovely again. This implies that the reason the pages were taking 4 minutes each to load is something to do with virtual hosting.

    Does anyone have any suggestions as to how to mend my setup so I can go back to virtual hosting? At least now I can work so many thanks Esmi… just want to know what was going on before if possible.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘xampp localhost too slow – 3 mins’ is closed to new replies.