Once you have done this, the Virtual Host should now work (don't forget to edit your local hosts file if necessary in order to test functionality prior to making DNS changes- /etc/hosts in Unix/Linux or %SYSTEMROOT%\System32\drivers\etc\hosts in Windows NT/2000/XP/Vista). To do this, click the "Apply Changes" link at the top right corner of the Apache Webserver configuration screen. Once you have created the Virtual Host, you must then enable the host, and restart Apache. Once all of the pertinent information has been entered (don't forget to enter a specific IP address, if you only want this Virtual Host to listen on one IP address- otherwise leave the default "Any address" alone), you can click "Create Now" to create the Virtual Host. For the existing site template, use a working Virtual Host (in our example below I selected to use the "Automatic" Virtual Host- rarely is this what you will want to copy directives from). Of particular note in this section is the need to specify the server name (in our example, webmin_), the DocumentRoot directory (in our case, /var/web_hosts/webmin_test), and we also want to copy the existing directives from another site (this will also copy over the PHP-specific settings, such as loading index.php with the DirectoryIndex directive). To add an additional Virtual Host on the Apache server, click on the "Servers" link on the left navigational pane, and then click on "Apache Webserver".įrom this page, you can then click on "Create virtual host" to create an Apache Virtual Host. Using Webmin to Add an Apache Virtual Host To add or remove user groups, select the "Local Groups" tab at the top of the Users and Groups page. Once the user account is sucessfully deleted, you will then have the option of returning to the Users and Groups page. Typically, you will want to delete the user's data as well as the user account, but Webmin gives you the option of both. To remove a user account, click on the checkbox next to the user account, and click "Delete Selected Users".įrom here, you will be asked to confirm whether or not you wish to delete the selected user, as well as delete the user's data. Once successfull, you are now returned to the main Users and Groups page. Once you have entered all of the information, click "Create" to create the user account. In particular, we want to make sure that the option "Create Home Directory" is enabled, since we will need to have a home directory of /var/web_hosts/username of our user on this server. In addition, you can also change the user's default group membership (useful if a group of users are working on a particular website or project), and a variety of other options. To do this, click on the Create User link at the top and bottom of the users list:įrom here, you can select the user's home directory (/var/web_hosts/USERNAME), as well as enter the user's password. Once you are on the Users and Groups page on Webmin, you can easily add or remove individual users from your Linux server. To add or remove users or groups from your Linux server, first click the System button on the navigational pane on the left, and then select Users and Groups: However, we will first add users onto the Linux server. Most of the work will be spent in the Servers tab, which will allow you to configure Apache and MySQL, as well as any of the other services running on your Linux server. It is at this screen that you can configure all of the various services running on your Linux server, as well as add users, and perform simple system maintinance. Once you are logged into Webmin, you will be presented with the main server configuration screen. At the Webmin login screen, enter the root username and password for your server: You will be presented with a security warning at this point, which you should allow (the server warning will simply state that the certificate is not signed by a trusted third party). To access Webmin, enter the address in your browser address bar. Once Webmin is installed, the Webmin server service will run at system startup.
0 Comments
Leave a Reply. |