How to install and configure MODx
- Create catalog in your apache root (default: /var/www), for example /var/www/food
- Unpack files into this directory /var/www/food
- Configure your hosts, add this line to /etc/hosts
127.0.0.1 food.local
-
Configure apache virtual host. Create file in /etc/apache2/sites-available like food and put this text into it
<VirtualHost *:80>
ServerName food.local
ServerAlias food.local
DocumentRoot /var/www/food
</VirtualHost>
- Enable site by command
sudo a2ensite food
- If support mod_rewrite not enable, enable it
sudo a2enmod rewrite
- Restart Apache
sudo apachectl restart
- Go to phpMyAdmin and create user & database
- Edit /manager/includes/config.inc.php with your mysql credentials from last step
- Log in to manager with login admin and password foodelivery
- Empty cache by Tools → Clear cache