icecoldchillin Posted December 31, 2010 Posted December 31, 2010 Hello All MWG, I am trying to come up with the optimal settings for server for a mccode v2 script.the actual php requirements and such.Any help would be greatly appreciated. ice :thumbsup: Quote
Jordan Palmer Posted December 31, 2010 Posted December 31, 2010 What do you mean? Please explain further Quote
Danny696 Posted December 31, 2010 Posted December 31, 2010 PHP 4, as thats when mcc was made, two mysql databases, mabey one for a good forum, or backupdb, shouldnt need more than a GB of space, again, for a start up game, 1GB of bandwidth is fine... Quote
icecoldchillin Posted January 1, 2011 Author Posted January 1, 2011 i appreciate the help and thanks for reply. when it come to php on a server there are many options. And the info i am looking for the php settings that are needed to run the script effectively.There are many of these php options on the server that leave it more open to trouble and such.There is not a lot of data on this area to be found.The general server requirements php sql but there is much more to it than that right?lol thanks MWG happy New years to all! :thumbsup: ice. Quote
Spudinski Posted January 1, 2011 Posted January 1, 2011 I would not suggest PHP 4, is has it flaws and the reason why PHP 5 was made. From a basic php.ini file, I would suggest maybe turning on the "open_basedir" setting. Also, "magic_gcp" quotes has to be enabled or else MCCodes will spit out an error. Globals, should be off by default but just check it again(if your running PHP 4 < I can't give you much advice). For a "basic" game, the extensions apache 2.x and PHP 5.2.x has already loaded is sufficient(if you want an "optimal" PHP application you need to disable the extensions not used. Everything else with the default apache, mysql and php configuration files are by default optimized for any website. For the main setup or structure of your game and database: As already said, having two independent databases helps. I would not suggest running them on the same user, though. Allot of reasons why, but the main and simplest one is still security. An backup of all config files and databases should be made every 6-24 hours, depending on how active your game is. The backup should preferably be sent to an external, private FTP location(your own PC is best). Cronjobs, if you have to use them every minute, do it so. But if you only need a five minute cron entry it's better. That's of the top of my head, what I would say an optimal startup game should look like. Quote
icecoldchillin Posted January 6, 2011 Author Posted January 6, 2011 Thanks Spudinski,Lots of useful information in your reply by " disable the extensions do you mean as in directives php.ini ? what are the directives that are needed and also not required for optimal php configuration. I understand the default answer but if i wanted tighter security maybe default settings are not best. Thanks Mwg Ice Quote
Paul Evans Posted January 6, 2011 Posted January 6, 2011 Don't forget email accounts because crons send to email it's easier to have the email account on the server, just remind people to wipe 'em every now and then. Quote
icecoldchillin Posted January 11, 2011 Author Posted January 11, 2011 php optimal settings for mccodes Please explain further What do you mean? Please explain further I would not suggest PHP 4, is has it flaws and the reason why PHP 5 was made. From a basic php.ini file, I would suggest maybe turning on the "open_basedir" setting. Also, "magic_gcp" quotes has to be enabled or else MCCodes will spit out an error. Globals, should be off by default but just check it again(if your running PHP 4 < I can't give you much advice). For a "basic" game, the extensions apache 2.x and PHP 5.2.x has already loaded is sufficient(if you want an "optimal" PHP application you need to disable the extensions not used. Everything else with the default apache, mysql and php configuration files are by default optimized for any website. For the main setup or structure of your game and database: As already said, having two independent databases helps. I would not suggest running them on the same user, though. Allot of reasons why, but the main and simplest one is still security. An backup of all config files and databases should be made every 6-24 hours, depending on how active your game is. The backup should preferably be sent to an external, private FTP location(your own PC is best). Cronjobs, if you have to use them every minute, do it so. But if you only need a five minute cron entry it's better. That's of the top of my head, what I would say an optimal startup game should look like. PHP 4, as thats when mcc was made, two mysql databases, mabey one for a good forum, or backupdb, shouldnt need more than a GB of space, again, for a start up game, 1GB of bandwidth is fine... Thanks Spudinski,Lots of useful information in your reply by " disable the extensions do you mean as in directives php.ini ? what are the directives that are needed and also not required for optimal php configuration. I understand the default answer but if i wanted tighter security maybe default settings are not best. Thanks Mwg please your knowledge is needed here and welcomed there are a lot of directives.knowledge welcome. 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.