Home > Web server > Managing apache users on Ubuntu via shell scripts

Managing apache users on Ubuntu via shell scripts

October 17th, 2009 Leave a comment Go to comments

I created some shell scripts to add and delete apache web users. You can download them via this post.

This script creates users and requires this webserver setup:
addweb

You also need the following default files:
default-vhost
default-php5-fcgi-starte
php.ini

There is another script to delete users from apache and the system:
dellweb

Installation:

All files have to be saved in the same directory, to run the .sh files they must have proper rights:

chmod +x addweb.sh
chmod +x dellweb.sh

To run the scrips type:

sudo ./addweb username
sudo ./dellweb username

Then follow the dialog. On request the script could be writen dialog free as well.

Categories: Web server Tags:
  1. No comments yet.
  1. No trackbacks yet.