<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just Another Dang Blog &#187; apache</title>
	<atom:link href="http://blog.lopau.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lopau.com</link>
	<description>A tech blog about web development, graphic designs, freelancing, cloud computing, mobile development, innovations and seo.</description>
	<lastBuildDate>Thu, 06 Oct 2011 03:01:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing GoDaddy SSL on an EC2 Ubuntu Instance in AWS</title>
		<link>http://blog.lopau.com/installing-godaddy-ssl-on-an-ec2-ubuntu-instance-in-aws/</link>
		<comments>http://blog.lopau.com/installing-godaddy-ssl-on-an-ec2-ubuntu-instance-in-aws/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 07:09:38 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[WAMP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=1440</guid>
		<description><![CDATA[If you have sensitive data on your site, you may want to install an SSL Certificate to make it more secure. Here is a brief tutorial being on AWS EC2 Ubuntu instance on how to set it up. My server settings are Apache2 and Ubuntu 9.x 1. Login to ssh/terminal on your server 2. Enable [...]]]></description>
			<content:encoded><![CDATA[<p>If you have sensitive data on your site, you may want to install an SSL Certificate to make it more secure. Here is a brief tutorial being on AWS EC2 Ubuntu instance on how to set it up. </p>
<p>My server settings are Apache2 and Ubuntu 9.x<br />
<span id="more-1440"></span><br />

<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
<br />
1. Login to ssh/terminal on your server<br />
2. Enable SSL for WebServer(Apache2)</p>
<blockquote><p>sudo a2enmod SSL</p></blockquote>
<p>3. Create the server SSL Key</p>
<blockquote><p>sudo bash</p></blockquote>
<p> On Ubuntu this changes you to the root user as you cannot access the directory on the next step.</p>
<blockquote><p>cd /etc/ssl/private</p></blockquote>
<blockquote><p>openssl genrsa -des3 -out myserver.com.key 2048</p></blockquote>
<p> Make sure its 2048 and not 1024 bit as this would be required later on GoDaddy.<br />
Enter keyphrase</p>
<p>5. Create the CSR (Certificate Service Request) to be entered on GoDaddy</p>
<blockquote><p>openssl req -new -key myserver.com.key -out myserver.com.csr</p></blockquote>
<p>Upon enter it will ask you for several things but make sure that under Common Name you put your website url (myserver.com). (GoDaddy will throw an error if it is not a correct website)</p>
<p>6. View the CSR and Copy. Paste it later to your GoDaddy SSL Certificate Management</p>
<p>7. On GoDaddy SSL Certificate Management make a Request and choose Third Party, Web Server no Control Panel. And Paste the CSR code.</p>
<blockquote><p>a. Upon Submit you would get the approval. It would check that your domain registry and administrative contacts to verify.<br />
b. If it cannot be verified via the domain registry, you will be emailed a code that you need to create as a file and upload to your server instead.
</p></blockquote>
<p>8. Install your certificate gd_bundle.crt and myserver.com.crt to your server. Upload them to the server and install. Back to shell</p>
<blockquote><p>mv gd_bundle.crt /etc/ssl/gd_bundle.crt<br />
mv myserver.com.crt /etc/ssl/certs/myserver.com.crt
</p></blockquote>
<p>9. Edit the default Apache2 values at /etc/apache2/sites-available/default. Create a new virtualhost</p>
<blockquote><p>NameVirtualHost *:443<br />
<virtualhost *:443><br />
DocumentRoot /var/www/<br />
SSLEngine on<br />
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire<br />
SSLCertificateFile /etc/ssl/certs/myserver.com.crt<br />
SSLCertificateKeyFile /etc/ssl/private/myserver.com.key<br />
SSLCertificateChainFile /etc/ssl/gd_bundle.crt<br />
</virtualhost></p></blockquote>
<p>10. Make sure Apache2 to listen on port 443, edit the /etc/apache2/ports.conf<br />
Under</p>
<blockquote><p><ifmodule mod_ssl.c><br />
Listen 443</p>
<p></ifmodule></p></blockquote>
<p>10. Restart Apache</p>
<blockquote><p>/etc/init.d/apache2 restart</p></blockquote>
<p>If all went well you should be able to access https</p>
<p>For EC2 make sure Port 443 is enabled as well on the AWS Console</p>
<p>11. Then to force redirect users to https create an htaccess file and upload to your root www folder</p>
<blockquote><p>RewriteEngine On<br />
RewriteCond %{SERVER_PORT} 80<br />
RewriteRule ^(.*)$ https://www.myserver.com/$1 [R,L]</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/installing-godaddy-ssl-on-an-ec2-ubuntu-instance-in-aws/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import sql dump using the MySQL client</title>
		<link>http://blog.lopau.com/import-sql-dump-using-the-mysql-client/</link>
		<comments>http://blog.lopau.com/import-sql-dump-using-the-mysql-client/#comments</comments>
		<pubDate>Thu, 07 May 2009 15:38:25 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[WAMP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=544</guid>
		<description><![CDATA[This is useful if you don&#8217;t have access to phpmyadmin on your server but have access to ssh and ftp. Or you have a huge sql dump like 10MB or higher that you cannot import directly on phpmyadmin. In my case the phpmyadmin directory was password protected by Apache and I don&#8217;t have the right [...]]]></description>
			<content:encoded><![CDATA[<p>This is useful if you don&#8217;t have access to phpmyadmin on your server but have access to ssh and ftp. Or you have a huge sql dump like 10MB or higher that you cannot import directly on phpmyadmin. In my case the phpmyadmin directory was password protected by Apache and I don&#8217;t have the right password.</p>
<p>First upload the .sql file on your server using an FTP client and remember the path. </p>
<p>eg.<br />
For Linux<br />
/home/lopau/mydump.sql</p>
<p>for Windows<br />
C:/wamp/www/lopau/mydump.sql</p>
<p>Login to your server using an SSH client like Putty.</p>
<p>On the command line access MySQL<br />
$> mysql -u username -p password </p>
<p>replace username and password with yours.</p>
<p>On the MySQL client command line access and use your database.<br />
$>  use lopaudb;</p>
<p>Now to import your dump;<br />
$> source /home/lopau/mydump.sql;</p>
<p>If successful you should see<br />
Query OK, 13 rows affected (0.00 sec)</p>
<p>That easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/import-sql-dump-using-the-mysql-client/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress error- Is its parent directory writable by the server?</title>
		<link>http://blog.lopau.com/wordpress-error-is-its-parent-directory-writable-by-the-server/</link>
		<comments>http://blog.lopau.com/wordpress-error-is-its-parent-directory-writable-by-the-server/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 17:52:24 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=310</guid>
		<description><![CDATA[Been using WordPress now for about 4 months on my projects and I occasionally find problems with plugins and themes but not on WordPress itself. I seem to be getting good at troubleshooting some. Yesterday my host changed servers, then I upgraded to the latest version of WordPress and everything got whack on uploading images [...]]]></description>
			<content:encoded><![CDATA[<p>Been using WordPress now for about 4 months on my projects and I occasionally find problems with plugins and themes but not on WordPress itself. I seem to be getting good at troubleshooting some.</p>
<p>Yesterday my host changed servers, then I upgraded to the latest version of WordPress and everything got whack on uploading images in the admin with this error.<br />
<span id="more-310"></span></p>
<blockquote><p>Unable to create directory /home/username/public_html/wp-content/uploads/2008/05. Is its parent directory writable by the server?</p></blockquote>
<p>
<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
Most people encounter the error after upgrading WordPress or changing servers</p>
<p>Here are troubleshooting steps you can do.<br />
1. With the error above, it can be assumed it is a permission problem with the folder. Default is 755, With your FTP software or WebFTP, edit the uploads folder in the wp-content to 777. Then try again.</p>
<p>2. If that doesn&#8217;t work, it can be an ownership issue. Wherein the owner of the files is apache and not your user account.</p>
<p>If you have access to SSH, you can edit the file to change ownership to</p>
<p>chown -R username:apache_user /home/username/public_html/wp-content/</p>
<p>username:apache_user for me is the ftp account, others are different.</p>
<p>3. If this doesn&#8217;t work. Check the upload path in the admin &#8211; Settings &#8211; Miscellaneous and make sure it is wp-content/uploads sometimes the upgrade or  server move changes it to the absolute path.</p>
<p>The 3rd solution worked for me. Hope you find this useful</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/wordpress-error-is-its-parent-directory-writable-by-the-server/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

