Category: Apache2

Configure HTTPS with Linux

. Getting the required software For an SSL encrypted web server you will need a few things. Depending on your install you may or may not have OpenSSL and mod_ssl, Apache’s interface to OpenSSL. Use yum to get them if you need them.   yum install mod_ssl openssl Yum will either tell you they are installed […]

Read more

Generate SSL Certificate for Linux

If you want to test SSL on your web server, you probably want to generate a self-signed certificate before ordering up the real one. There are three steps: – generate SSL key w/o passphrase – generate certificate request – generate self-signed certificate # cd /etc/httpd/conf # mkdir ssl.key ssl.csr ssl.crt # openssl genrsa -out /etc/httpd/conf/ssl.key/myserver.net.key […]

Read more

How to Setup Apache2 with Virtual Hosts – Easy Tutorial

What the Red Means The lines that the user needs to enter or customize will be in red in this tutorial! The rest should mostly be copy-and-pastable. About Virtual Hosts Virtual Hosts are used to run more than one domain off of a single IP address. This is especially useful to people who need to run several sites off […]

Read more

Add Ftp Users and Change Home Directory

To add a user account, use the following syntax, and follow the prompts to give the account a password and identifiable characteristics such as a full name, phone number, etc. sudo adduser username To delete a user account and its primary group, use the following syntax: sudo deluser username Deleting an account does not remove […]

Read more

Why does apt-get fail to resolve the mirror?

yes, the name server update does work and if it does work then you’ve probably updated your IP settings to be static and your server can no longer resolve URLs. Try the above and if it works reboot. if it fails after rebooting then do this: edit the template file for the resolv.conf. Ubuntu server […]

Read more

How to Install and Setup Apache in Ubuntu

Installing Apache Getting apache onto your Ubuntu machine is easy. Using either the Synaptic Package Manager, Ubuntu Software Center, search and install the “apache2” module. Alternatively, you can open a terminal and type the following command: sudo apt-get install apache2 Once the installation finished, open a browser and go to the URL “http://localhost“. If you […]

Read more