From ce6ed4b184889193004c75cdd8174eb7456cbd75 Mon Sep 17 00:00:00 2001 From: Lionel Date: Tue, 19 Jan 2021 09:06:14 +0100 Subject: [PATCH] Update Instruction --- README.md | 27 ++++++++++++++++++++++++++- apacheConf/apache2.conf | 5 ----- apacheConf/php.ini | 24 ------------------------ 3 files changed, 26 insertions(+), 30 deletions(-) delete mode 100644 apacheConf/apache2.conf delete mode 100644 apacheConf/php.ini diff --git a/README.md b/README.md index a5be62a..abc5ad5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,34 @@ ## For Install it ## -Download and extract the zip file for download fontawesome on server ROOT +Install Dependency : + +``` +sudo apt install apache2 php php-mbstring +``` + +Install Fontawesome : + +Download and extract the zip file on server ROOT ``` wget https://use.fontawesome.com/releases/v5.15.1/fontawesome-free-5.15.1-web.zip unzip fontawesome-free-5.15.1-web.zip rm fontawesome-free-5.15.1-web.zip mv fontawesome-free-5.15.1-web fontawesome ``` + +Change Apache2 Configuration for security : +``` +#Add these lines to /etc/apache2/apache2.conf + + Options -Indexes -FollowSymLinks + php_flag engine off + +``` + +Change php max upload size : +``` +#Edit these lines in /etc/php//apache2/php.ini +post_max_size = 5G +upload_max_filesize = 5G +``` + diff --git a/apacheConf/apache2.conf b/apacheConf/apache2.conf deleted file mode 100644 index 8d861da..0000000 --- a/apacheConf/apache2.conf +++ /dev/null @@ -1,5 +0,0 @@ -#Add these lines to apache2.conf - - Options -Indexes -FollowSymLinks - php_flag engine off - diff --git a/apacheConf/php.ini b/apacheConf/php.ini deleted file mode 100644 index 54e5ce1..0000000 --- a/apacheConf/php.ini +++ /dev/null @@ -1,24 +0,0 @@ - -; 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 -;post_max_size = 8M -post_max_size = 5G - -; 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 -;upload_max_filesize = 2M -upload_max_filesize = 5G - -; Maximum number of files that can be uploaded via a single request -max_file_uploads = 20