Subscribe For Free Updates!

We'll not spam mate! We promise.

Tuesday, October 15, 2013

How To Configure PHP.ini of Your Server/Web site





serverPHP.ini contains the configuration of a server/website. Basically it contains the maximum upload size, maximum post size, register value and others. So it is important for the server and web site. Because all the information is here and your server will follow this information.


For an Example: If you are using Joomla, Wordpress, Drupal then you will face a common problem that is uploading problem. Because maximum server set maximum upload size is 2MB & maximum post size 2MB.

file-upload-size
So if you want to upload any widget, module, plug-in, theme and others more then 2 MB, you can’t. Because it’s predefined that   maximum upload size is 2 MB into PHP.ini
How to Configure:
Yes! You can change the value from PHP.ini           
If you are using a dedicated server then contact server admin to change the value. They will change it for you because of dedicated server. But if you are using shared server then you have to configure by yourself or contact with server admin. But I am going to show you how easy are this and you can change the value without contact with the server admin.
Normally you can’t open your server PHP.ini in shared server. But you can configure in following way
Your Server link for PHP.ini: /user/local/lib/php.ini    But you cant open it.
Now create a new text document and rename it php.ini and open it.
upload_max_filesize = 10M
post_max_size = 10M

Find out the other setting from google. Now save it. You have done! Now you have to show your server that this is your PHP.ini
To do that you need to show the directory of your PHP.ini
Remember to upload the new php.ini into public_html directory. Done!
Open .htacess from your server and write
suPHP_ConfigPath /home/username/public_html/
This is the new path of your PHP.ini
::Note: My server is using suPHP but confirm about your server ::
Now you can upload anything with 10MB
Remember if you can’t do this, please contact with server admin. If they don’t help you I recommend you to change the host.

Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 Comments :

Post a Comment