Skip to content

Instantly share code, notes, and snippets.

@smhr
Last active April 18, 2022 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smhr/3beabee7e65103e2cf1eab092d740644 to your computer and use it in GitHub Desktop.
Save smhr/3beabee7e65103e2cf1eab092d740644 to your computer and use it in GitHub Desktop.
rocks roll server apache config

At the very beginning of installation of rocks-7.0, we must define a roll server. It's recommended to set up a local server to facilitate roll addition. There are some scripts to make this easy for non experts here. After doing steps 0, I and II, change your site configuration file (e.g /etc/apache2/sites-enabled/000-default.conf in ubuntu or mint) to be like this:

## Definitions for rocks-7-0.my.org (change according to your one)
###
<VirtualHost *:80>
ServerName rocks-7-0.my.org
</VirtualHost>

# allow all access to the rolls RPMS
<Directory /var/www/html/rocks/7.0/install/rolls>

        AddHandler cgi-script .cgi
        Options FollowSymLinks Indexes ExecCGI
        DirectoryIndex /rocks/7.0/install/rolls/index.cgi
        Allow from all
</Directory>

Then do

sudo a2enmod cgi

If your default python is not python 2, you need to install python 2 and edit the first line in the index.cgi to e.g

#!/usr/bin/env python2

and finally

sudo systemctl restart apache2.service

Check the server at http://127.0.0.1/rocks/7.0/install/rolls/.

@smhr
Copy link
Author

smhr commented Apr 18, 2022

Update the needed python version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment