A simple LAMP stack for PHP development.
- PHP 7.4
- Xdebug
- MYSQL
- Node.js
- NPM
- Composer
- phpMyAdmin
First, you will need to download and install the following:
- Vagrant - https://www.vagrantup.com/
- Virtual Box - https://www.virtualbox.org/
To get started, do the following:
- git clone https://github.com/digitalconfection/tophat.git my-project
- cd my-project
- vagrant up
Then in your browser, go to http://192.168.33.13, and you are done!
Edit /etc/php/7.4/mods-available/xdebug.ini
with:
zend_extension=xdebug.so
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.discover_client_host = 1
xdebug.client_port = 9003
xdebug.client_host = 10.0.2.2
xdebug.idekey = VSCODE
xdebug.log = /var/log/xdebug.log
Then run sudo systemctl restart apache2
Run the following:
sudo apt install phpmyadmin php-gettext -y --assume-yes
- Set username to
root@localhost
& password toroot
- Afterwords edit this file:
sudo nano /etc/apache2/apache2.conf
- Add this to the bottom of the file:
Include /etc/phpmyadmin/apache.conf
- Then run
sudo systemctl restart apache2