Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Note: Your PHP Main Config file may be elsewhere, read below to figure it out!

You need to create test.php in your webroot, if its /var/www/html/ then here is an example.

sudo sh -c 'echo "<?php\nphpinfo();\n?>" >> /var/www/html/test.php'

test.php

 <?php
    phpinfo();
?>

 

Now edit the file:

sudo nano /etc/php5/apache2/php.ini && sudo reboot
sudo nano /etc/php/7.0/apache2/php.ini && sudo reboot

 

Find the follow 2 parts and change them >>

 ;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

##LOTS OF LINES OF CODE

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
##Change >> post_max_size = 8M
post_max_size = 64M

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://php.net/file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
##Change >> upload_max_filesize = 2M
upload_max_filesize = 64M
  • No labels

1 Comment