Jump to content

PHP configuration questions please help


paulusNewbius

Recommended Posts

Hello, I have some PHP configuration questions I hope someone can help me with. I am web developer who is fairly new but competant developing with PHP, but my problem lies in configuring the server (Linux).

 

I have the requirement to upload large video files of at least 50 Mb, as well as images and other documents such as PDF's.

This will be performed by web users from web/PHP forms and AJAX. By running phpinfo() I can see my server has a upload_max_filesize of 2 Mb, so I need to change this.

 

In fact from my google research I see that for a file size limit of around 50 Mb I would need web form / PHP settings similar to this:

 

memory_limit 60M

post_max_size 55M

upload_max_filesize 50M

output_buffering 4096

safe_mode off

max_execution_time 1800

max_input_time 1800

 

My question is simple: how do I change these settings?

My web host has said that I have the permissions to change these values but I have no idea where to start.

 

Any advice is greatly appreciated!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.