Linux: Install Apache with Yum
Monday, August 16th, 2010yum install httpd yum install mod_ssl
yum install httpd yum install mod_ssl
Or
Or
After installing postgresql, you might have issues to start apache
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory
One way to solve this issue, is to reinstall apache and apr-util.
#remove apache and apr-util yum remove apr-util #reinstall apache yum install httpd
Here is the minimum configuration to enable SSL
….
NameVirtualHost *:443
<VirtualHost *:443>
DocumentRoot /path/to/html/
ServerName www.mysecuredomain.com
SSLEngine on
</VirtualHost>
Pre-requisites:
CSR-Generation Instructions
To generate a triple-DES encrypted key pair and a Certificate Signing Request (CSR):
Enter the following commands:
If you are requesting a Wildcard certificate, please add an asterisk (*) on the left side of the Common Name (e.g., “*.domainnamegoes.com” or “www*.domainnamegoeshere.com”). This will secure all subdomains of the Common Name.
(source: Godaddy’s help)
BTW, Godaddy has the cheapest certificates you can find (with great support).
First user creation (create file and first user):
Subsequent user creation
Redirecting from the http.conf
Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.