Skip to content

digitalconfection/tophat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tophat

A simple LAMP stack for PHP development.

Features

  • PHP 7.4
  • Xdebug
  • MYSQL
  • Node.js
  • NPM
  • Composer
  • phpMyAdmin

Prerequisites:

First, you will need to download and install the following:

Getting Started:

To get started, do the following:

Then in your browser, go to http://192.168.33.13, and you are done!

Set up xdebug

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

Set up phpMyAdmin

Run the following:

  • sudo apt install phpmyadmin php-gettext -y --assume-yes
  • Set username to root@localhost & password to root
  • 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