=> Replace the $metager_path and set the user to the username you cloned MetaGer with
3. Restart/start the supervisor daemon `sudo service supervisor start` or `sudo service supervisor restart`
=> If it worked correctly you will see 200 php processes with `pgrep php`. You can change the number in the config to whatever you find reasonable. It defines how many requests can be made to your search engines in parallel.
# Setup and configure Apache
1.`cd /etc/apache2/sites-available/`
2. Edit 000-default.conf and put the following content
```
<VirtualHost *:80>
# If you have a DNS-Entry pointing to your machine you can comment out the following line and set the dns name there
#ServerName www.example.com
ServerAdmin webmaster@localhost
# Replace $metager_path with the actual path
DocumentRoot $metager_path/public
<Directory $metager_path/public>
Allow Override all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
```
3.`sudo a2enmod rewrite`
4. restart/start the apache server `sudo service apache2 restart`
If you want to modify/add searchengines to your MetaGer instance you will have to modify the search engine definition in $metager_path/config/sumas.xml and you will have to add a parser class for that search engine to $metager_path/app/Models/parserSkripte/.
With the information from the `sumas.xml` MetaGer will make a request to all search engines with `type=web`. The result will be given to above mentioned parser class where you have to write the code that transforms the result from the search engine API to a php object that MetaGer can use later.