sudo apt update
sudo a2enmod cgid
sudo service apache2 restart
sudo apt-get -y install apache2-suexec-custom
sudo a2enmod suexec
sudo service apache2 restart
sudo mkdir -p /usr/lib/cgi-bin/vv
sudo chown $(whoami):$(whoami) /usr/lib/cgi-bin/vv
sudo sed -i '1c\/usr/lib/cgi-bin/vv' /etc/apache2/suexec/www-data
sudo mv /var/lib/vv/bld/func_test/func_test /usr/lib/cgi-bin/vv
sudo chown $(whoami):$(whoami) /usr/lib/cgi-bin/vv/func_test
sudo chmod 700 /usr/lib/cgi-bin/vv/func_test
sudo sed -i "/SuexecUserGroup/d" /etc/apache2/sites-enabled/000-default.conf
sudo sed -i "s/<\/VirtualHost>/SuexecUserGroup $(whoami) $(whoami)\n<\/VirtualHost>/g" /etc/apache2/sites-enabled/000-default.conf
sudo service apache2 restart
You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a link back to this page (dofollow) - see full license at
CC-BY-4.0. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind.