when more then 500 user access site site going down

Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!

Moderators: egami, macek, gesf

Post Reply
php-forum Fan User
php-forum Fan User
Posts: 80
Joined: Sun Dec 04, 2011 1:35 pm
Location: Southern California

Thu Dec 08, 2011 7:14 am

Look in caching request if possible. Is the server providing you enough resources, maybe an upgrade to a better hosting/server is necessary. If your script running as efficiently as possible? eg minimal sql queries etc...
User avatar
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Thu Dec 08, 2011 12:59 pm

You may also consider lowering the amount of logging that you're doing, and turn off error logging on your production websites.

Remember that for every one connection, the log files go nuts! So not only are the disks serving web pages, crunching PHP scripts, but also logging the actions and errors. You should have a staging box the same as your production server. All of your troubleshooting should be done there, and your coding done on a dev box.
Post Reply