The frontend of Rocks 7.0 requires a web server to have rolls “installed” to download. If the frontend needs to be installed often, like for testing purposes in a local machine, then it is preferred to have a local roll-server.

Starting the web-server on MacOS Big Sur

Start the builtin Apache server

					sudo apachectl start				

You should now be able to direct your browser to ‘localhost’ or ‘’ and see in the browser ‘ it works!’. The default Apache configuration reads from


Apple recommends to create a directory ‘Sites’ in your home account and run your local user website from there. However, that will not work for the rocks roll-server. We need to install it in the main sever. But first, let’s download rocks.

Downloading rocks

The iso-disk images can be downloaded from


Using wget, we can download the images


Creating the roll data

					sudo mkdir -p /Library/WebServer/Documents/rocks/7.0/install/rolls
mkdir -p /tmp/cdrom				

Next mount the disk by double-clicking it in the finder.

					hdiutil attach -nomount kernel-7.0-0.x86_64.disk1.iso				

with for example output

					/dev/disk3          	FDisk_partition_scheme         	
/dev/disk3s2        	0xEF  				

Now mount the disk.

					mount -t cd9660 /dev/disk3 /tmp/cdrom				

Copying the rpm’s from the disk to the web-server

					(cd /tmp/cdrom; tar cf - --exclude=TRANS.TBL --exclude=.discinfo --exclude=var \
--exclude=repodata --exclude=EFI --exclude=images --exclude=LiveOS --exclude=comps.xml \
 --exclude=ks.cfg --exclude=isolinux .) | (cd \ 
/Library/WebServer/Documents/rocks/7.0/install/rolls; \
 tar xvfBp - )				

Unmount and detached the disk.

					umount /dev/disk3
hdiutil detach /dev/disk3				

Repeat this process for all the iso-images.

Setting up the web-server on MacOS Big Sur

Next the Apache server needs to setup as a rocks roll-server. First, edit the apache config file


Switch on cgi-capabilities, look the following section and uncomment the LoadModule lines.

					<IfModule !mpm_prefork_module>
        #LoadModule cgid_module libexec/apache2/
<IfModule mpm_prefork_module>
        #LoadModule cgi_module libexec/apache2/

Append to the file

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

Now restart the Apache web server

					sudo apachectl restart				

Testing the web setup

To test the setup, run

					wget -O - http://localhost/rocks/7.0/install/rolls				

which should look like

					--2021-01-04 10:20:49--  http://localhost/rocks/7.0/install/rolls
Resolving localhost (localhost)... ::1,
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://localhost/rocks/7.0/install/rolls/ [following]
--2021-01-04 10:20:49--  http://localhost/rocks/7.0/install/rolls/
Reusing existing connection to [localhost]:80.
HTTP request sent, awaiting response... 200 OK
Length: 611 [text/html]
Saving to: ‘STDOUT’

-                                                         0%[    ]       0  --.-KB/s               ]
<a href="base/">base/</a>
<a href="CentOS/">CentOS/</a>
<a href="core/">core/</a>
<a href="ganglia/">ganglia/</a>
<a href="hpc/">hpc/</a>
<a href="htcondor/">htcondor/</a>
<a href="index.html">index.html</a>
<a href="kernel/">kernel/</a>
<a href="kvm/">kvm/</a>
<a href="sge/">sge/</a>
<a href="Updates-CentOS-7.4.1708/">Updates-CentOS-7.4.1708/</a>
-                                                       100%[====>]     611  --.-KB/s    in 0s      

2021-01-04 10:20:50 (117 MB/s) - written to stdout [611/611]

Installing rocks using the local roll-server

For the selection of rolls, now point to the local roll-server

Rocks roll server
Rocks roll server found at

Select the rolls, and click ‘Add Selected Rolls’.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top