How Do I Change PHP Settings?

How do I change PHP settings?

Easy:
First create a blank text file called php.ini (assuming one doesn't already exist in your public_html folder)

Then put in each setting you want to change one line at a time.

For example:
If you want to turn off register_globals you would insert:
register_globals = Off

If you wanted to change upload_max_filesize you would insert:
upload_max_filesize = 20M

(or whatever # in MB you wanted the max upload to be)

Once you have the options you want in the file, just be sure to put it in the public_html directory (or deeper), and that's all you need to do.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Getting a 500 Error

If your site occurs a 500 Internal Server Error the most common are php settings contained in...

What are the paths to commonly used services?

What is the path to my user files? The path is /home/username/public_html What is the local path...

How do I increase the PHP Upload Limit?

To raise the PHP Upload Limit for your website simply do the following:Create a blank text file...

PEAR Modules

PEAR modules are collections of functions that allow you to perform tasks using PEAR finctions....

How do I set PHP include_path?

There are 2 main ways you can set your PHP include_path. 1. Edit your /etc/php.ini file. Inside...