Oct 26th, 2009, 09:26 PM
godaddy SSL certificate and Apache's SSLCertificateChainFile
I found that the SSLCertificateChainFile which Apache uses does not work for all browsers on the Mac if the SSLCertificateFile was created by godaddy.com
These browsers on the Mac report invalid certificate:
These are the only browsers so far I have found which don't work with the certificate.
A manual solution is:
1) Launch application
2) ssh to server
3) upload root certificate chain provided by godaddy to some directory. In my case, gd_bundle.crt, was provided with my domain certificate and I uploaded it to /tmp.
3) Edit /etc/httpd/conf.d/ssl.conf
4) Add 'SSLCertificateChainFile /tmp/gd_bundle.crt'
5) Restart apache with the command, '/usr/sbin/apachectl restart'
Safari and Camino now accept the certificate as valid.
Anyone know how to automate this in cloud foundry?
Nov 19th, 2009, 07:03 AM
I had exactly the same problem and just do it manually.
I also had a requirement to run php/joomla on the same AMI and created a shell script which I also manually run after startup to install PHP, configure the Apache vhosts file etc.
I really tried to get this all automated but gave up as I dont think its possible at the moment.
Dec 21st, 2010, 06:02 AM
@1234Cast: I also need PHP to run on my server - can you let me know which files you had to adjust in order to make it work?
Dec 21st, 2010, 07:08 AM
chmod +x startup.sh
yum -y install mod_php php-mysql
yum -y install perl-Digest-SHA1
yum -y install php-xml
yum -y install php-gd
echo "updating rpm's from repos - will take some time"
#need to update for patches and we need php5.2 for what we are doing
cp /vol/www/STARTUP/CentOS-Testing.repo /etc/yum.repos.d/CentOS-Testing.repo
yum -y update
echo "copying http.conf and other vhosts"
rm -f /etc/httpd/conf/httpd.conf
#my own custom httpd.conf
cp /vol/www/STARTUP/httpd.conf /etc/httpd/conf/httpd.conf
#vhost found in /etc/httpd/conf.d/extras.conf
echo "restart apache"
echo "server ready"
Dec 21st, 2010, 08:36 AM
Thank you so much! Could you also post / send me the changes you made in httpd.conf? I'm not too familiar with Apache configuration... What does this extras.conf stand for, I can't find it on my server?
Dec 22nd, 2010, 03:29 AM
I am using the Amazon EBS, so I store all my PHP web app files on this (otherwise you lose everything on restart).
So I change the default path to my EBS volume eg #
DocumentRoot "/vol/www/html" in httpd.conf.
have a look inside /etc/httpd/conf.d/*.conf
This is where your apache virtual host info is configured. All I am doing in here is tweaking Apache with standard parameters such as paths, redirects, expiry. Its worth googling Apache vhosts and httpd.conf to understand what they do before you fiddle.
Tags for this Thread