Jump to content
MakeWebGames

Recommended Posts

Posted

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...

Posted

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.

Posted

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.

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...