How to edit your PHP.ini file

Editing the PHP.ini file #

Before you can use the Vidiot program without errors you MUST edit your php.ini file. The good news is that it is pretty easy and you only need Notepad or a simple text editor to make the changes. If you have a code editor on your computer you can set XAMPP to open the php.ini file in the program of your choice. However, not necessary.

There are a few ways to edit your php.ini file. From the XAMPP Control Panel or by locating the file at C:\xampp\php\php.ini (if you installed in the default directory on Windows). I will show you how to edit the php.ini file from the XAMPP Control Panel.

Opening the PHP.ini file #

  1. From the XAMPP control panel press the ‘config’ button beside the Apache module. NOT  the main config button.
  2. From the menu the pops up select ‘PHP (php.ini)”. It will open with the default text editor.
  3. Be very careful not to change any settings by accident. I would recommend creating a backup .txt document before you edit any settings. Just copy and paste the entire document into another Notepad file.
  4. You need to edit 4 settings. Change as follows:
    1. change memory_limit=128M to memory_limit=1024M
    2. change post_max_size=40M to post_max_size=2048M
    3. change upload_max_filesize=40M to upload_max_filesize=2048M
    4. change max_input_vars = 1000 to max_input_vars = 10000 and uncomment it by removing the semicolon (;) in front of it
    5. find the extensions section and uncomment the ;extension=gd. Remove the ; in front of the option.
  5. Check to see if file_uploads=On is not commented and that it is set to ‘On’. If it is not set exactly as ‘file_uploads=On’ make sure to change it.

After editing the PHP.ini file #

  1. Save the PHP.ini file.
  2. Go back to the XAMPP Control Panel.
  3. Press ‘Stop’ beside the Apache module.
  4. Press ‘Start’ beside the Apache module.