<?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>Tech Problems</title>
	<atom:link href="http://www.tech-problems.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-problems.com</link>
	<description>Real life problems solved</description>
	<lastBuildDate>Mon, 13 Feb 2012 11:36:51 +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>Call to undefined function mb_detect_encoding()</title>
		<link>http://www.tech-problems.com/call-to-undefined-function-mb_detect_encoding/</link>
		<comments>http://www.tech-problems.com/call-to-undefined-function-mb_detect_encoding/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 11:36:51 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=852</guid>
		<description><![CDATA[If you get the error Call to undefined function mb_detect_encoding() you are missing the php-mbstring extension.
]]></description>
			<content:encoded><![CDATA[<p>If you get the error <code>Call to undefined function mb_detect_encoding()</code> you are missing the php-mbstring extension.</p>
<p>You can use Yum to easily fix this, simply log onto the server and run the following as root</p>
<pre class="brush:shell">
yum install php-mbstring
service httpd restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/call-to-undefined-function-mb_detect_encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Apache, MySql and PHP on Fedora 16 Server</title>
		<link>http://www.tech-problems.com/install-apache-mysql-and-php-on-fedora-16-server/</link>
		<comments>http://www.tech-problems.com/install-apache-mysql-and-php-on-fedora-16-server/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 11:24:08 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=845</guid>
		<description><![CDATA[This is an updated article with the changes that Fedora 16 brought in with regard to SystemD. To install a suite of Apache, MySql and PHP on a new instance of Fedora 16 on Rackspace cloud read the article.]]></description>
			<content:encoded><![CDATA[<p>This is an updated article with the changes that Fedora 16 brought in with regard to SystemD</p>
<p>To install a suite of Apache, MySql and PHP on a new instance of Fedora 16 on Rackspace cloud perform the following steps:</p>
<p>1. Using PuTTY log in as root using the password send to you via email when starting the server</p>
<p>2. Run the following command:</p>
<pre class="brush: shell">
yum update
</pre>
<p>3. Once it has finished updating run the following:</p>
<pre class="brush: shell">
yum install httpd mysql mysql-server php php-devel php-mysql
</pre>
<p>4. Once this has finished installing run the following:</p>
<pre class="brush: shell">
systemctl start mysqld.service
/usr/bin/mysql_secure_installation
</pre>
<p>5. When asked for current password just press enter. Then set a root password (make it secure), remove anonymous users, disallow root login remotely and remove the test database. Finally reload the privilege tables. Congratulations, you have secured MySql.</p>
<p>6. To make sure MySQL always loads on restart run the following:</p>
<pre class="brush: shell">
systemctl enable mysqld.service
</pre>
<p>7. We also want to do similar for Apache so run the following:</p>
<pre class="brush: shell">
systemctl start httpd.service
systemctl enable httpd.service
</pre>
<p>This will start the web server, however if you go to the IP address of the server in your browser it will say there is a problem loading the page, what is happening is that the Rackspace images have a very restrictive firewall to start, we need to allow some traffic through. To do this perform the following commands:</p>
<pre class="brush: shell">
iptables -I INPUT 1 -p tcp --dport http -j ACCEPT
iptables -I INPUT 1 -p tcp --dport mysql -j ACCEPT
iptables-save > /etc/sysconfig/iptables
systemctl restart iptables.service
</pre>
<p>Once this has done you will be able to see the Apache welcome page on your server IP</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/install-apache-mysql-and-php-on-fedora-16-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 16 not working with /sbin/service iptables save</title>
		<link>http://www.tech-problems.com/fedora-16-sbin-service/</link>
		<comments>http://www.tech-problems.com/fedora-16-sbin-service/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 11:17:42 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Rackspace Cloud]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=842</guid>
		<description><![CDATA[Booted up my first Fedora 16 instance in Rackspace Cloud today so test and lucky I did, it appears a lot of the commands I used to use in creating a server have changed. For example <code>/sbin/service iptables save</code> that I would normally use is now coming back with an error message - Redirecting to /bin/systemctl  save iptables.service Unknown operation save]]></description>
			<content:encoded><![CDATA[<p>Booted up my first Fedora 16 instance in Rackspace Cloud today so test and lucky I did, it appears a lot of the commands I used to use in creating a server have changed. For example <code>/sbin/service iptables save</code> that I would normally use is now coming back with an error message &#8211; <code>Redirecting to /bin/systemctl  save iptables.service Unknown operation save</code></p>
<p>It appears that Fedora 16 now uses Systemd &#8211; <a href="http://fedoraproject.org/wiki/Systemd#Why_systemd.3F">http://fedoraproject.org/wiki/Systemd#Why_systemd.3F</a> and you have to use systemctl to do tasks now.</p>
<p>So to save the IP Tables I should be able to use the command:</p>
<p>systemctl save iptables.service</p>
<p>However this comes up with an error: <code>Unknown operation save</code></p>
<p>Not sure if this a bug or not, however running <code>/sbin/iptables-save</code> made it work</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/fedora-16-sbin-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Block Google from Dev Server</title>
		<link>http://www.tech-problems.com/block-google-from-dev-server/</link>
		<comments>http://www.tech-problems.com/block-google-from-dev-server/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 12:17:38 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[httpd.conf]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=834</guid>
		<description><![CDATA[Block robots from development server]]></description>
			<content:encoded><![CDATA[<p>I was having a problem where Google was indexing sites on my development server, I wanted to just lock down the entire server from Google and other bots without having to change the robots.txt file of each site, as when I push them to live I would have had to change it back and undoubtly one day would have forgotten.</p>
<p>To do this I placed the following in my httpd.conf file:</p>
<pre class="brush:shell">
&lt;Directory /&gt;
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} google|googlebot|bing|slurp [NC]
RewriteRule .? - [G]
&lt;/Directory&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/block-google-from-dev-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewrite Rule in httpd.conf not executing</title>
		<link>http://www.tech-problems.com/rewrite-rule-in-httpd-conf-not-executing/</link>
		<comments>http://www.tech-problems.com/rewrite-rule-in-httpd-conf-not-executing/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 12:14:40 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd.conf]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=832</guid>
		<description><![CDATA[How to solve rules in httpd.conf not executing.]]></description>
			<content:encoded><![CDATA[<p>Was being driven crazy by a rewrite rule in my httpd.conf files not seeming to work, after a couple of hours of tearing hair out I found that the htaccess file was not allowing the httpd.conf rewrite rules to fire, to solve this I needed to add the following to the htaccess file:</p>
<pre class="brush:shell">
RewriteOptions inherit
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/rewrite-rule-in-httpd-conf-not-executing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot load from mysql.proc. The table is probably corrupted</title>
		<link>http://www.tech-problems.com/cannot-load-from-mysql-proc-the-table-is-probably-corrupted/</link>
		<comments>http://www.tech-problems.com/cannot-load-from-mysql-proc-the-table-is-probably-corrupted/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 17:30:43 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=829</guid>
		<description><![CDATA[Was having problems today with a database in MySql Workbench where trying to open it to query it resulted in Workbench reporting "fetching" forever.
]]></description>
			<content:encoded><![CDATA[<p>Was having problems today with a database in MySql Workbench where trying to open it to query it resulted in Workbench reporting &#8220;fetching&#8221; forever.</p>
<p>To fix this I needed to open a connection to the MySql server using Putty and running the following:</p>
<pre class="brush:shell">
mysql_upgrade -u root -p
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/cannot-load-from-mysql-proc-the-table-is-probably-corrupted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Zend Server on Rackspace Cloud Fedora 15</title>
		<link>http://www.tech-problems.com/install-zend-server-on-rackspace-cloud-fedora-15/</link>
		<comments>http://www.tech-problems.com/install-zend-server-on-rackspace-cloud-fedora-15/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 11:53:48 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Rackspace Cloud]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=823</guid>
		<description><![CDATA[Article how to install Zend Server CS on Fedora on Rackspace Cloud]]></description>
			<content:encoded><![CDATA[<p>To install Zend Server CS on Rackspace Cloud fire up a new Fedora 15 instance and log in using Putty.</p>
<p>Create a new repo using the following:</p>
<pre class="brush:shell">
vi /etc/yum.repos.d/zend.repo
</pre>
<p>Copy the following into it:</p>
<pre class="brush:shell">
[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key

[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/rpm/noarch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
</pre>
<p>Run the following to install</p>
<pre class="brush:shell">
yum install zend-server-ce-php-5.3
</pre>
<p>Open the Firewall using the following:</p>
<pre class="brush:shell">
/sbin/iptables -I INPUT 1 -p tcp --dport 10081 -j ACCEPT
/sbin/iptables -I INPUT 1 -p tcp --dport 10082 -j ACCEPT
/sbin/iptables -I INPUT 1 -p tcp --dport 10137 -j ACCEPT
/sbin/iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
/sbin/service iptables save
service iptables restart
</pre>
<p>You can now access Zend here (sub 123.456.789.0 with the server IP):</p>
<p>https://123.456.789.0:10082/ZendServer</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/install-zend-server-on-rackspace-cloud-fedora-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install and setup replication MySQL on Fedora Rackspace Cloud</title>
		<link>http://www.tech-problems.com/install-and-setup-replication-mysql-on-fedora-rackspace-cloud/</link>
		<comments>http://www.tech-problems.com/install-and-setup-replication-mysql-on-fedora-rackspace-cloud/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 22:09:14 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=816</guid>
		<description><![CDATA[I assume for this you have already got a database setup with data in it. Install Slave Start up a new Fedora 15 instance in Rackspace Open SSH using Putty and do the following: yum install mysql mysql-server /etc/init.d/mysqld start /usr/bin/mysql_secure_installation When asked for current password just press enter. Then set a root password (make it secure), remove anonymous users, disallow root login remotely and remove the test database. Finally reload the privilege tables. To [...]]]></description>
			<content:encoded><![CDATA[<p>I assume for this you have already got a database setup with data in it.</p>
<h2>Install Slave</h2>
<p>Start up a new Fedora 15 instance in Rackspace</p>
<p>Open SSH using Putty and do the following:</p>
<pre class="brush: shell">
yum install mysql mysql-server
/etc/init.d/mysqld start
/usr/bin/mysql_secure_installation
</pre>
<p>When asked for current password just press enter. Then set a root password (make it secure), remove anonymous users, disallow root login remotely and remove the test database. Finally reload the privilege tables.</p>
<p>To make sure MySQL always loads on restart and open the firewall run the following:</p>
<pre class="brush: shell">
chkconfig --levels 235 mysqld on
/sbin/iptables -I INPUT 1 -p tcp --dport mysql -j ACCEPT
/sbin/service iptables save
service iptables restart
</pre>
<h2>Setup Master</h2>
<p>Open SSH on the Master Database server using Putty and do the following:</p>
<pre class="brush: shell">
mkdir /var/log/mysql
chmod 777 /var/log/mysql
mysql -u root -p
CREATE USER 'slave'@'%' IDENTIFIED BY 'slavepass';
GRANT REPLICATION SLAVE ON *.* TO 'slave'@'%';
FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS;
</pre>
<p>Jot down the result of this, you will need it later.</p>
<p>Open a new putty session, keeping the old one open so you don&#8217;t lose the lock</p>
<pre class="brush: shell">
mysqldump -u root -p --all-database > mysqldump.sql
</pre>
<p>When this finishes in the session you ran READ LOCK you can now run </p>
<pre class="brush: shell">
UNLOCK TABLES;
</pre>
<p>I like using MySQL Workbench to do this next step, you can get it from http://wb.mysql.com/</p>
<p>Set up your Master server in Server Administration and double click it, then go to Options File in the left hand panel</p>
<p>In the Log Files tab check &#8220;log-bin&#8221; and set it to /var/log/mysql/mysql-bin.log</p>
<p>Then in the Replication tab set &#8220;server-id&#8221; to 1</p>
<p>Click Apply to save these changes</p>
<p>You will now have to restart the server so in Putty run </p>
<pre class="brush: shell">
service mysqld restart
</pre>
<h2>Setup Slave</h2>
<p>Copy the resulting mysqldump.sql to the Slave server. (sub 10,0,0,1 with your server internal IP)</p>
<pre class="brush: shell">
scp root@10.0.0.1:/root/mysqldump.sql mysqldump.sql
mysql -u root -p < mysqldump.sql
</pre>
<p>Like the Master set up the Slave in Workbench then go into it and change the "server-id" to 2</p>
<p>Then restart the server and also set the master log file details, replace the details below with those you wrote down earlier</p>
<pre class="brush: shell">
service mysqld restart
mysql -u root -p
CHANGE MASTER TO MASTER_HOST='master_host_name',MASTER_USER='replication_user_name',MASTER_PASSWORD='replication_password',MASTER_LOG_FILE='recorded_log_file_name',MASTER_LOG_POS=recorded_log_position;
START SLAVE;
SHOW SLAVE STATUS;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/install-and-setup-replication-mysql-on-fedora-rackspace-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recopy Master Database to Slave on Fedora 14 Rackspace Cloud when out of Sync</title>
		<link>http://www.tech-problems.com/recopy-master-database-to-slave-on-fedora-14-rackspace-cloud-when-out-of-sync/</link>
		<comments>http://www.tech-problems.com/recopy-master-database-to-slave-on-fedora-14-rackspace-cloud-when-out-of-sync/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 21:40:54 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Rackspace Cloud]]></category>
		<category><![CDATA[MySql Server]]></category>
		<category><![CDATA[Replication]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=809</guid>
		<description><![CDATA[Sometimes when the slave gets out of sync with the Master, the best thing is to just start again with a fresh copy from the Master.]]></description>
			<content:encoded><![CDATA[<p>Sometimes when the slave gets out of sync with the Master, the best thing is to just start again with a fresh copy from the Master.</p>
<h2>On Master</h2>
<pre class="brush:shell">
mysql -u root -p
FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS;
</pre>
<p>Copy down values</p>
<p>Open New Putty Window to Master</p>
<pre class="brush:shell">
mysqldump -u root -p --all-database > mysqldump.sql
</pre>
<p>On Lock window</p>
<pre class="brush:shell">
UNLOCK TABLES;
</pre>
<p>Copy this to slave</p>
<h2>On Slave</h2>
<p>Run the following, put in the details from the Master in the CHANGE MASTER code</p>
<pre class="brush:shell">
mysql -u root -p < mysqldump.sql
mysql -u root -p
STOP SLAVE;
RESET SLAVE;
CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.000001', MASTER_LOG_POS=1234567;
START SLAVE;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/recopy-master-database-to-slave-on-fedora-14-rackspace-cloud-when-out-of-sync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Lexmark E210 on Windows 7 64bit</title>
		<link>http://www.tech-problems.com/install-lexmark-e210-on-windows-7-64bit/</link>
		<comments>http://www.tech-problems.com/install-lexmark-e210-on-windows-7-64bit/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 14:16:57 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=796</guid>
		<description><![CDATA[How to get a Lexmark E210 printer working with Windows 7 64bit]]></description>
			<content:encoded><![CDATA[<p>I had a old Lexmark E210 printer lying around that I wanted to get working in Windows 7 64bit. However there were no drivers for this on the Lexmark site. However I did find a way to get it working:</p>
<p>THe Samsung ML-1200 uses the same driver, and it has been updated to use Windows 7 64 bit.</p>
<p>Go to http://www.samsung.com/uk/support/detail/supportPrdDetail.do?menu=SP01&amp;prd_ia_cd=&amp;prd_mdl_cd=&amp;prd_mdl_name=ML-1210</p>
<p>Click Download Universal Print Driver</p>
<p>Then Download Win Vista/2008/Win 7</p>
<p>http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?CDSite=UNI_UK&#038;CttFileID=1290695&#038;CDCttType=DR&#038;ModelType=N&#038;ModelName=ML-1210&#038;VPath=DR/200910/20091020193406500/ML-1200_Win7.exe</p>
<p>Install the downloaded driver</p>
<p><a href="http://www.tech-problems.com/install-lexmark-e210-on-windows-7-64bit/11-08-2011-13-50-11/" rel="attachment wp-att-797"><img title="Install Samsung ML-1200" src="http://techproblems.s3.amazonaws.com/files/2011/08/11-08-2011-13-50-11-300x210.png" alt="" width="300" height="210" /></a></p>
<p>When it says Connect Device click Next&gt;</p>
<p><a href="http://www.tech-problems.com/install-lexmark-e210-on-windows-7-64bit/11-08-2011-13-50-24/" rel="attachment wp-att-798"><img class="alignnone size-medium wp-image-798" title="Device not conneted" src="http://techproblems.s3.amazonaws.com/files/2011/08/11-08-2011-13-50-24-300x59.png" alt="" width="300" height="59" /></a></p>
<p>When it says device not connected click No to carry on installing without connected device</p>
<p>Once installed go to &#8220;Devices and Printers&#8221;</p>
<p><a href="http://www.tech-problems.com/install-lexmark-e210-on-windows-7-64bit/11-08-2011-13-51-51/" rel="attachment wp-att-799"><img class="alignnone size-medium wp-image-799" title="Samsung ML-1200" src="http://techproblems.s3.amazonaws.com/files/2011/08/11-08-2011-13-51-51-300x111.png" alt="" width="300" height="111" /></a></p>
<p>You will see Samsung ML-1200 Series</p>
<p>Right click this and go to &#8220;Printer Properties&#8221; then &#8220;Ports&#8221;</p>
<p><a href="http://www.tech-problems.com/install-lexmark-e210-on-windows-7-64bit/11-08-2011-13-53-25/" rel="attachment wp-att-800"><img class="alignnone size-medium wp-image-800" title="USB001 Port" src="http://techproblems.s3.amazonaws.com/files/2011/08/11-08-2011-13-53-25-300x286.png" alt="" width="300" height="286" /></a></p>
<p>Select USB001 Virtual Printer Port for USB</p>
<p>Go back to General and Print Test Page</p>
<p>Should all work</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/install-lexmark-e210-on-windows-7-64bit/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching using apc
Object Caching 458/590 objects using apc
Content Delivery Network via Amazon Web Services: S3: techproblems.s3.amazonaws.com

Served from: www.tech-problems.com @ 2012-02-22 21:59:53 -->
