aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-07-03 23:50:00 +0200
committersrdusr <trevorgray@srdusr.com>2023-07-03 23:50:00 +0200
commit7c3b972054cc66b0fc220f8b074db31198ca387d (patch)
tree470817297643b4d6bffd650fa6441c6ed5d06214
parent8414a8dc90dfcde6e3f2323e1e8efac00a4b44a0 (diff)
downloaddotfiles-7c3b972054cc66b0fc220f8b074db31198ca387d.tar.gz
dotfiles-7c3b972054cc66b0fc220f8b074db31198ca387d.zip
Add info about PHP
-rw-r--r--README.md54
1 files changed, 48 insertions, 6 deletions
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 = <Continent/City>
+```
+- 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 [(<span class="hljs-literal">none)]>
-</span>
-```
-
- - -
### Commands