News: TinyPortal Release Schedule. Please read this update for More Info.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

November 16, 2019, 10:11:40 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189259
  • Total Topics: 20772
  • Online Today: 217
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 187
Total: 187

Author Topic: {PAID} Server/Php Work  (Read 3630 times)

0 Members and 1 Guest are viewing this topic.

Pornographer_Smurf

  • Guest
{PAID} Server/Php Work
« on: January 13, 2007, 12:10:03 PM »
Seek someone who can find/create the php.ini file to change the file size of allowed uploads.

Also to "optimize" the server/myphpadmin if that even possible,

Offline Thurnok

  • Friends
  • *
  • Posts: 784
Re: {PAID} Server/Php Work
« Reply #1 on: January 13, 2007, 08:56:23 PM »
If you are on a shared host, you will need to have your host provider do this for you.  If you have your own dedicated server, then it is a simple matter with root access.

Pornographer_Smurf

  • Guest
Re: {PAID} Server/Php Work
« Reply #2 on: January 13, 2007, 11:30:01 PM »
i asked my host to do it for me, they replied they do not offer tech support, that i have to do this myself. they activated the shell acount, and told me to basically do it myself.

im just familiar with the basics of html, no php or server config knowledge.

Offline Thurnok

  • Friends
  • *
  • Posts: 784
Re: {PAID} Server/Php Work
« Reply #3 on: January 14, 2007, 04:12:51 PM »
Well, the php.ini file is relatively simple to edit.  There's a section in there for file uploads.  The key name for it is upload_max_filesize.

Seach the php.ini file for that key name.  The default is 2M, simply change it to 4M or 8M as you desire.  Keep in mind that larger file uploads require longer periods of time that the php processor is processing the php file (that contains the code for you to do the file upload in the first place).  Due to this, you might need to adjust another setting in the php.ini file called max_execution_time which is set to 30 seconds by default.  Adjusting that value too high can be undesirable however.

After you change the php.ini, the http service needs to be restarted if php is running as a module, or the php cgi needs to be rerun if your host is running php as a cgi.

MrHaus

  • Guest
Re: {PAID} Server/Php Work
« Reply #4 on: January 16, 2007, 02:29:44 AM »
Unless your host gave you root SSH access, you wont be able to change the php.ini. You can use .htaccess to set some values though
These will give you a 200mb upload and 10minute execution time:

php_value upload_max_filesize 200M
php_value max_execution_time 600

Offline Thurnok

  • Friends
  • *
  • Posts: 784
Re: {PAID} Server/Php Work
« Reply #5 on: January 16, 2007, 09:18:14 PM »
Note 1, that will not work if php is running as a CGI with suexec.

Note 2, it is not recommended to set max execution time so high.  One piece of bad php code, could lock the php processor up, even with a modest number of connections.

Note 3, default Apache Timeout directive and IIS CGI Timeout function is 300 seconds.  If they are still at the default, setting max_execution_time higher than 300 will not gain you more time than the Timeout directive/function.