WiltshireAirlines Posted May 21, 2014 Report Posted May 21, 2014 Hello everybody, I've been working a lot on my website lately. Because I'm a noob at CSS and HTML, I have to refresh almost every time I make an edit. Now, I probably refresh about 30 times in 40 minutes, on average. Unfortunately, being on a free plan, I reach about 70% of the max CPU usage allowed on the site. If I don't refresh so many times, my CPU usage is pretty low. However, I would like to know if there's any good way to help reduce CPU usage. I understand that it depends on your website, and since everyone here uses the same platform, I would hope that somebody may have some advice as to how to save CPU usage. It's not a killer, I'd just love advice because if I reach the max, I get a 24 hour suspension - which is a pretty big deal. Thanks in advance! Quote
magicflyer Posted May 21, 2014 Report Posted May 21, 2014 Well, you can avoid that by using a local WAMP Server, which is basically a local hosting that supports php compiling, and all of those nice features all from the comfort of your offline desktop. Here's my personal favorite one, http://www.easyphp.org/ Once you find that your developed application is all set, you can then upload it to your actual host with virtually no effect on your CPU usage. But there are actually dozens of these things if you look them up on Google. Quote
WiltshireAirlines Posted May 21, 2014 Author Report Posted May 21, 2014 I'll make sure to check it out! Just one question - when changing hosts, I don't have to reinstall, do I? Quote
Moderators servetas Posted May 21, 2014 Moderators Report Posted May 21, 2014 What do you mean? Magicflyer told you how to install a web server on your computer in order to be able to do all the changes and updates without having to update your page on your live host... This hasn't to do with the hosting package your are using. Of course, if you do a format on your pc, you will have to reinstall the localhist web server... Quote
WiltshireAirlines Posted May 21, 2014 Author Report Posted May 21, 2014 Oh. In fact, that was just what I was looking for! Thanks! Quote
WiltshireAirlines Posted May 21, 2014 Author Report Posted May 21, 2014 I'm having a problem. I successfully installed easyphp, but I'm getting database errors. I have no idea why. It's probably because I'm now on a local host. What can I do about this? phpVMS relies so much on databases. Quote
Moderators servetas Posted May 21, 2014 Moderators Report Posted May 21, 2014 You can edit your local.config.php file in order to connect the database with the live one.. Quote
WiltshireAirlines Posted May 21, 2014 Author Report Posted May 21, 2014 I moved the files directly, so shouldn't local.config.php be set up already? Quote
Moderators servetas Posted May 21, 2014 Moderators Report Posted May 21, 2014 The local.config.php is not updated automatically when you tranfer it to another location. You should have to edit the database details with the new ones. Quote
WiltshireAirlines Posted May 21, 2014 Author Report Posted May 21, 2014 OK. I'll try that. Thanks. Standby. Quote
WiltshireAirlines Posted May 21, 2014 Author Report Posted May 21, 2014 Actually, I'm confused. I'm looking at the core.config.php file right now, and the database details have been entered. What do I have to do? Quote
magicflyer Posted May 25, 2014 Report Posted May 25, 2014 Hi, sorry I didn't keep up to date with it & for the late reply. I assume you tried directly transferring the files from the online server to easyphp. If that's the case be sure you also transferred the database. Also, be sure that your new SITE_URL has been converted to your new local url for testing. In order to access your site, go to the easyphp admin panel and just find your site about halfway down the page. From that, click on it and you should see a replica of your online site, right from your desktop. You can now edit your files without any CPU usage. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.