From 7c3b972054cc66b0fc220f8b074db31198ca387d Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 3 Jul 2023 23:50:00 +0200 Subject: Add info about PHP --- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 999a742..3142392 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,53 @@ now Lua is installed. As superuser, run make install. ##### PHP +- Install PHP +- Install Web server (Apache or Nginx) +- Install PHP extensions +php-apache php-cgi php-fpm php-gd php-embed php-intl php-redis php-snmp + +- Install composer (Dependency Manager for PHP) +```bash +$ curl -sS https://getcomposer.org/installer | php +``` +- Install laravel +```bash +$ composer global require laravel/installer + +``` +- Edit PHP config +```bash +$ sudoedit /etc/php/php.ini + +``` +- Enable PHP extensions, make sure these lines are uncommented (remove the `;` from each line) +``` +extention=bcmath +extention=zip +extension=pdo_mysql +extension=mysqli +extension=iconv + +extension=gd +extension=imagick +extension=pdo_pgsql +extension=pgsql + +``` +- Recommended to set correct timezone +``` +date.timezone = +``` +- Display errors to debug PHP code +``` +display_errors = On +``` +- Allow paths to be accessed by PHP +``` +open_basedir = /srv/http/:/var/www/:/home/:/tmp/:/var/tmp/:/var/cache/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/ +``` + + ##### dart ##### javascript - nvm install/update script @@ -48,6 +95,7 @@ $ nvm install node ``` ##### mysql +- Install MySQL - Ensure the MySQL service starts when you reboot or startup your machine. ```bash @@ -64,12 +112,6 @@ $ sudo mysql_secure_installation $ sudo mysql ``` -- If you see the following prompt, You're good to go! -``` -MariaDB [(none)]> - -``` - - - - ### Commands -- cgit v1.2.3