1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What should I do?

Discussion in 'Web Hosting' started by Kepler, Jul 20, 2016.

Tags:
  1. Kepler

    Kepler Registered Member

    Joined:
    Apr 2, 2014
    Messages:
    86
    Likes Received:
    25
    Sorry if this is the wrong section, I had no idea where to put this.

    I have a site where people have to fill out a form which is then handled by a PHP script.

    Lately, my site has been constantly going down (501 resource limit reached). I contacted my host and they upgraded me to 'Business SSD'. It is no longer going down, but when you complete the form, it simply loads forever and doesn't return the page it's supposed to. My CPU limit is at about 94% continuously.

    My host has advised me to upgrade to one of their dedicated servers, which are generally in the field of £XXX/month. This is just a small site, I would only spend that much on hosting for large enterprises.

    I am with Namecheap hosting.

    What do you think I should do? I am currently earning half the revenue I previously was.
     
  2. Ellie4294

    Ellie4294 Regular Member

    Joined:
    Apr 14, 2015
    Messages:
    469
    Likes Received:
    71
    Occupation:
    Freelancer
    Location:
    Online
    If your revenue from the site is £XXXXX/month then you can go for £XXX/month dedicated proxy for sure.
     
  3. Kepler

    Kepler Registered Member

    Joined:
    Apr 2, 2014
    Messages:
    86
    Likes Received:
    25
    Unfortunately my revenue from the site isn't £XXXXX/month
     
  4. jhon1989

    jhon1989 Newbie

    Joined:
    May 9, 2016
    Messages:
    13
    Likes Received:
    1
    First of all if you are worried about revenue then y need to pay for that and buy a dedicated server with company who can provide you best support at any time so the website will be up every time and more users can visit your website at same time not issue of getting slower the site.
    hope you will understand what to do . if not then contact to Berman Hosting they will guide you properly regarding best web hosting.
     
  5. CenTex Hosting

    CenTex Hosting Jr. VIP Jr. VIP

    Joined:
    Nov 8, 2009
    Messages:
    2,000
    Likes Received:
    763
    Gender:
    Male
    Occupation:
    Founder/CEO
    Location:
    Austin, TX
    Home Page:
    when they upgraded your plan did they move you to a new server and IP? If so check your script it might be trying to talk to the old set up if links were done by IP address instead of domain name.

    If it was working before with no lag just crashing then it should be working now and not taking awhile to load. I would not think you need a dedicated server at this time.

    You might be better off on a VPS server instead of a shared host.

    But the issue could be within the code of your script kind of hard to say without seeing it.
     
  6. Brutt

    Brutt Junior Member

    Joined:
    Oct 24, 2012
    Messages:
    130
    Likes Received:
    8
    I think you should try services from reliable hosts, I mean bekserver.de or veeble.org.
    Their services can be suitable for all your needs.
     
  7. loedown

    loedown Jr. VIP Jr. VIP

    Joined:
    Jun 29, 2009
    Messages:
    1,594
    Likes Received:
    496
    Home Page:
    You're prolly going to need to upgrade to a VPS.
     
  8. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,285
    Likes Received:
    11,010
    Occupation:
    CHEAP
    Location:
    LINK LISTS
    Home Page:
    Something's very very wrong with your form. It's probably in an endless loop.
     
  9. Kepler

    Kepler Registered Member

    Joined:
    Apr 2, 2014
    Messages:
    86
    Likes Received:
    25
    If you are interested, here is the script: http://pastebin.com/JdFhQ8rb
    I will look into moving to a VPS. I get about 3-8 thousand pageviews per day with probably half resulting in people submitting the form. How powerful a VPS would I need?
     
  10. Bleght

    Bleght BANNED BANNED

    Joined:
    Feb 18, 2016
    Messages:
    548
    Likes Received:
    170
    It's very likely that your code needs optimization more than your hosting plan needs upgrading. Look into that first if you have a way to.
     
  11. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,285
    Likes Received:
    11,010
    Occupation:
    CHEAP
    Location:
    LINK LISTS
    Home Page:
    How big are these two files?

    $used_file = 'used.txt';
    $codes_file = 'codes.txt';
     
  12. CyberHour

    CyberHour Jr. VIP Jr. VIP

    Joined:
    Apr 3, 2016
    Messages:
    668
    Likes Received:
    164
    Location:
    localhost
    Home Page:
    I would not look for dedicated server for such simple task, even if the filesize are over 10MB you should be ok on VPS hosting which of course is way cheaper than dedi.
    Athu I cant see any server resources diff's between their cheap plan and business plan.
    Most likely they have low phpmem / upload size limits on their shared plans and that cause the issue.
    Feel free to contact me if you would like to test it under our VPS plans prior switching.
     
  13. papa_ji

    papa_ji Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 22, 2011
    Messages:
    1,069
    Likes Received:
    149
    Gender:
    Male
    Occupation:
    Founder of BlueAngelHost
    Location:
    Lahore, Pakistan
    Home Page:
    if you are using wordpress or some other CMS and have some plugins installed on it, then try disabling them and recheck your site, CPU going to 94% means there must be some problem with your script or CMS .
    it would be good if you can hire some expert who can audit your site and can fix the problem with your script.
    Another thing, contact your hosting provider and ask them to check if your site is getting attacked by any kind of bots or something as some time malicious traffic can also create 508 error of resource limit reached and can also result in high CPU usage.

    you definitely do not need a dedicated server.

    however it would be good if you can give us your traffic stats, so we can give you better advice if you need an upgrade on your hosting
     
  14. Anonymously

    Anonymously Jr. VIP Jr. VIP

    Joined:
    Apr 23, 2016
    Messages:
    415
    Likes Received:
    119
    Home Page:
    You need to find a hosting provider with cheaper prices. Simple as that.