Design: Christian Albert
How to setup this
- Go to your virtual host file of your apache vhost config. You can find this file in most cases here:
/etc/apache2/2.4/extra/httpd-vhosts.conf
/usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf
- Insert a vhost scheme for your localhost in apaches vhost config. Don't forget to replace the path to the project root of your local machine.
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents/crud"
ServerName dev.crud
</VirtualHost>
- Add this line to your hosts file. You can find this file in most cases here: /etc/hosts
127.0.0.1 dev.crud
- Make sure, that apaches mod_rewrite is activated in your apache config: /etc/apache2/2.4/httpd.conf
LoadModule rewrite_module libexec/mod_rewrite.so
- Restart your apache
sudo apachectl restart
-
Execute crud.sql in your local database
-
Create/Update credentials.ini file: /php/inc/credentials.ini
[crud]
host = "localhost"
username = "root";
pass = "";
db_name = "crud";
- composer install (Check required stuff in composer.json)