stop the server

sudo apachectl stop

primary config file:

/etc/apache2/apache2.conf

edit it to have:

    serverName localhost

at the very end of the file

retstart apache

sudo aoachectl start

default root for the apache server (as in what it dispalys in localhost):

/var/www/html/index.html

i had drupal setup there so apache is looking inside a folder called drupal for the index.html file so i'm just going to dump shit in there

install php and modules for apache:

sudo apt-get install php libapache2-mod-php php-mysql

deprechiated

https://askubuntu.com/questions/1031921/php-mcrypt-package-missing-in-ubuntu-server-18-04-lts

turn error display on:

sudo gedit /etc/php/7.2/apache2/php.ini

find display_errors = Off

change it to On

restart apache

    sudo apachectl restart

install mysql and gui:

sudo apt-get install mysql-server

sudo apt-get install mysql-workbench

restart mysql:

sudo service mysql status
Posted @ 2019-01-31 20:13