stop the server

sudo apachectl stop

primary config file:


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):


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


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

lsof -w -n -i tcp:5000

kill -9 processId

Posted @ 2019-01-30 18:10

Default locations of config and sites.

Making a note because I use them just often enough to forget where they are.

apache2 conf location: /etc/apache2/httpd.conf

site location /var/www/html/site-name

Posted @ 2019-01-30 18:03