diff --git a/README.md b/README.md index 318436b..0625895 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ ``` # vim /etc/hosts ``` - + Installasi dan konfigurasi tools yang dibutuhkan @@ -282,3 +282,64 @@ ``` # systemctl restart httpd ``` + +Selanjutnya lakukan pengecekan php menggunakan curl + +Pertama buat file index.php di setiap dir root website +``` +# echo " /home/nextcloud/test.php +# echo " /home/wordpress/test.php +# echo " /home/prestashop/test.php +``` +Selanjut nya ubah kepemilikan dan permission setiap dir root website +``` +# chown -R nextcloud:nextcloud /home/nextcloud +# chmod -R 755 /home/nextcloud + +# chown -R wordpress:wordpress /home/wordpress +# chmod -R 755 /home/wordpress + +# chown -R prestashop:prestashop /home/prestashop +# chmod -R 755 /home/prestashop +``` + +Cek versi php dengan curl +Prestashop +``` +# curl -I prestashop.task.my.id:8080/test.php +``` +Output: +``` +HTTP/1.1 200 OK +Date: Sun, 08 Mar 2020 07:27:22 GMT +Server: Apache/2.4.6 (CentOS) +X-Powered-By: PHP/7.1.33 +Content-Type: text/html; charset=UTF-8 +``` + +Wordpress +``` +# curl -I wordpress.task.my.id:8080/test.php +``` +Output: +``` +HTTP/1.1 200 OK +Date: Sun, 08 Mar 2020 07:29:15 GMT +Server: Apache/2.4.6 (CentOS) +X-Powered-By: PHP/7.2.28 +Content-Type: text/html; charset=UTF-8 +``` + +Nextcloud +``` +# curl -I nextcloud.task.my.id:8080/test.php +``` +Output: +``` +HTTP/1.1 200 OK +Date: Sun, 08 Mar 2020 07:30:08 GMT +Server: Apache/2.4.6 (CentOS) +X-Powered-By: PHP/7.3.15 +Content-Type: text/html; charset=UTF-8 +``` +Perhatikan pada bagian X-Powered-By: PHP/ pastikan versi php nya sudah cocok dengan yang kita inginkan