<?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>Sat, 27 Apr 2013 12:50:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Magento with Nginx CentOS</title>
		<link>http://www.tech-problems.com/magento-with-nginx-centos/</link>
		<comments>http://www.tech-problems.com/magento-with-nginx-centos/#comments</comments>
		<pubDate>Tue, 23 Apr 2013 16:24:16 +0000</pubDate>
		<dc:creator>medialam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=987</guid>
		<description><![CDATA[Install Magento Admin using NGinx on CentOS Rackspace Cloud Server]]></description>
				<content:encoded><![CDATA[<p><strong>Set up Private keys</strong></p>
<pre class="wp-code-highlight prettyprint">
cd .ssh
mkdir .ssh
chmod 700 .ssh
cd .ssh
vi authorized_keys
</pre>
<p>paste in public key</p>
<pre class="wp-code-highlight prettyprint">
chmod 600 authorized_keys
</pre>
<p><strong>Add Remi Repo &#8211; Don&#8217;t Do This Until Magento is PHp 5.4 Compatible</strong></p>
<pre class="wp-code-highlight prettyprint">
rpm -Uvh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
vi /etc/yum.repos.d/remi.repo
</pre>
<pre class="wp-code-highlight prettyprint">
[remi]
name=Les RPM de remi en test pour Enterprise Linux $releasever - $basearch
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
includepkgs=nginx* php-fpm*
</pre>
<p><strong>Install NGinx Repo</strong></p>
<pre class="wp-code-highlight prettyprint">
vi /etc/yum.repos.d/nginx.repo
</pre>
<p>Enter in</p>
<pre class="wp-code-highlight prettyprint">
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
</pre>
<p><strong>Install EPEL</strong></p>
<pre class="wp-code-highlight prettyprint">
su -c &#039;rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm&#039;
</pre>
<p><strong>Install NGinx</strong></p>
<pre class="wp-code-highlight prettyprint">
yum install nginx php-fpm php php-mysql php-pecl-memcache php-pecl-apc git php-mbstring php-pecl-imagick php-xml php-gd php-mcrypt php-soap php-curl php-soap php-memcached openssl
vi /etc/php.ini
</pre>
<p>Replace contents with</p>
<pre class="wp-code-highlight prettyprint">
[PHP]

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://php.net/engine
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions =
disable_classes =
zend.enable_gc = On
cgi.fix_pathinfo = 0

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

expose_php = Off

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30
max_input_time = 60
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

error_reporting = E_ALL &amp; ~E_DEPRECATED &amp; ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

variables_order = &quot;GPCS&quot;
request_order = &quot;GP&quot;
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = &quot;text/html&quot;

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

doc_root =
user_dir =
enable_dl = Off

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

file_uploads = On
upload_max_filesize = 50M
max_file_uploads = 20

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
auto_detect_line_endings = On

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[CLI Server]
cli_server.color = On

[Date]
date.timezone = &quot;Europe/London&quot;

[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=

[mail function]
sendmail_path = /usr/sbin/sendmail -t -i
mail.add_x_header = On

[SQL]
sql.safe_mode = Off

[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1

[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = &quot;%Y-%m-%d %H:%M:%S&quot;
ibase.dateformat = &quot;%Y-%m-%d&quot;
ibase.timeformat = &quot;%H:%M:%S&quot;

[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off

[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off

[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0

[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10

[bcmath]
bcmath.scale = 0

[Session]
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = &quot;a=href,area=href,frame=src,input=src,form=fakeentry&quot;

[Tidy]
tidy.clean_output = Off

[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir=&quot;/tmp&quot;
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5

[ldap]
ldap.max_links = -1
</pre>
<p>Find `cgi.fix_pathinfo` and set the value to `0`</p>
<pre class="wp-code-highlight prettyprint">
vi /etc/nginx/conf.d/magentosite.conf
</pre>
<pre class="wp-code-highlight prettyprint">
server {
    listen      80;
    server_name www.magentosite.co.uk;
    root        /var/www/sites/magentosite/;
    index index.html index.php;

    access_log /var/log/nginx/www.magentosite.co.uk-access_log;
    error_log /var/log/nginx/www.magentosite.co.uk-error_log;

    location / {
        try_files $uri $uri/ @handler;
        expires 30d;
    }
    location /app/                       { deny all; }
    location /includes/                  { deny all; }
    location /lib/                       { deny all; }
    location /media/downloadable/        { deny all; }
    location /pkginfo/                   { deny all; }
    location /report/config.xml          { deny all; }
    location /var/                       { deny all; }

    location /var/export/ {
        auth_basic              &quot;Restricted&quot;;
        auth_basic_user_file    htpasswd;
        autoindex               on;
    }
    location  /. {
        return 404;
    }

    location @handler {
        rewrite / /index.php;
    }

    location ~ .php/ {
        rewrite ^(.*.php)/ $1 last;
    }

    location ~ \.php$ {
        try_files $uri =404;
        expires off;
        fastcgi_read_timeout 900s;
        fastcgi_index index.php;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include /etc/nginx/fastcgi_params;
    }
    rewrite ^/minify/([0-9]+)(/.*.(js|css))$ /lib/minify/m.php?f=$2&amp;d=$1 last;
    rewrite ^/skin/m/([0-9]+)(/.*.(js|css))$ /lib/minify/m.php?f=$2&amp;d=$1 last;

    location /lib/minify/ {
        allow all;
    }
    gzip on;
    #gzip_comp_level 9;
    gzip_min_length  1000;
    gzip_proxied any;
    gzip_types       text/plain application/xml text/html text/css text/js application/x-javascript;
}
</pre>
<pre class="wp-code-highlight prettyprint">
vi /etc/php-fpm.d/www.conf
</pre>
<p>Find User &#038; Group settings, and set both the user and group to `nginx`</p>
<pre class="wp-code-highlight prettyprint">
/etc/init.d/nginx start
service php-fpm start
chkconfig --levels 235 nginx on
chkconfig --levels 235 php-fpm on
</pre>
<p><strong>Open Firewall</strong></p>
<pre class="wp-code-highlight prettyprint">
/sbin/iptables -I INPUT 1 -p tcp --dport http -j ACCEPT
/sbin/iptables -I INPUT 1 -p tcp --dport https -j ACCEPT
/sbin/service iptables save
service iptables restart
</pre>
<p><strong>Set up Github Key</strong></p>
<pre class="wp-code-highlight prettyprint">
ssh-keygen -t rsa -C &quot;your_email@example.com&quot;
vi ~/.ssh/id_rsa.pub
</pre>
<p>Paste contents into Github</p>
<p><strong>Fix Permissions</strong></p>
<pre class="wp-code-highlight prettyprint">
chmod -R o+w /var/www/sites/yoursite/media /var/www/sites/petrunway-magento/var
chmod o+w /var/www/sites/yoursite/app/etc
chmod 777 /var/www/sites/yoursite/sitemap
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/magento-with-nginx-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Remi Repo to CentOS/Fedora</title>
		<link>http://www.tech-problems.com/add-remi-repo-to-fedora/</link>
		<comments>http://www.tech-problems.com/add-remi-repo-to-fedora/#comments</comments>
		<pubDate>Sun, 10 Feb 2013 13:01:43 +0000</pubDate>
		<dc:creator>tech-problems</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=907</guid>
		<description><![CDATA[Add Remi Repo to CentOS/Fedora]]></description>
				<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint">
rpm -Uvh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
</pre>
<p>then this:</p>
<pre class="wp-code-highlight prettyprint">
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
</pre>
<p>then </p>
<pre class="wp-code-highlight prettyprint">
yum update
</pre>
<p>If you want to glob only specific things change<br />
the <code>/etc/yum.repos.d/remi.repo</code> (or whatever it&#8217;s called) in this fashion:</p>
<pre class="wp-code-highlight prettyprint">
[remi]
name=Les RPM de remi en test pour Enterprise Linux $releasever - $basearch
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
includepkgs=php* mysql* python* compat-mysql51*
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/add-remi-repo-to-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set up Private/Public Keys in Fedora Rackspace Cloud</title>
		<link>http://www.tech-problems.com/set-up-privatepublic-keys-in-fedora-rackspace-cloud/</link>
		<comments>http://www.tech-problems.com/set-up-privatepublic-keys-in-fedora-rackspace-cloud/#comments</comments>
		<pubDate>Tue, 30 Oct 2012 10:23:02 +0000</pubDate>
		<dc:creator>tech-problems</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=902</guid>
		<description><![CDATA[Add Public Key to Fedora/CentOS]]></description>
				<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint">
cd .ssh
mkdir .ssh
chmod 700 .ssh
cd .ssh
vi authorized_keys
</pre>
<p>paste in public key</p>
<pre class="wp-code-highlight prettyprint">
chmod 600 authorized_keys
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/set-up-privatepublic-keys-in-fedora-rackspace-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Please close the following applications to continue: AdobeCrashDaemon</title>
		<link>http://www.tech-problems.com/please-close-the-following-applications-to-continue-adobecrashdaemon/</link>
		<comments>http://www.tech-problems.com/please-close-the-following-applications-to-continue-adobecrashdaemon/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 09:07:12 +0000</pubDate>
		<dc:creator>tech-problems</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=899</guid>
		<description><![CDATA[Article how to upgrade Creative Cloud when you get the error Please close the following applications to continue: AdobeCrashDaemon]]></description>
				<content:encoded><![CDATA[<p>I had this error pop up when I was trying to update Adobe Creative Cloud on Mac OS 10.7</p>
<p>To fix you have to do the following steps:</p>
<p>Open Activity Monitor in the Applications > Utilities Folder</p>
<p>Find AdobeCrashDaemon</p>
<p>Highlight and Quit Process</p>
<p>The update should then work as usual</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/please-close-the-following-applications-to-continue-adobecrashdaemon/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Install Gitlab Fedora 16</title>
		<link>http://www.tech-problems.com/install-gitlab-fedora-16/</link>
		<comments>http://www.tech-problems.com/install-gitlab-fedora-16/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 17:53:27 +0000</pubDate>
		<dc:creator>tech-problems</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.tech-problems.com/?p=870</guid>
		<description><![CDATA[Install Gitlab on a clean install of Fedora 16 in Rackspace Cloud]]></description>
				<content:encoded><![CDATA[<p>I was using the very good guide found here: <a href="http://wasil.org/gitlab-installation-on-fedora-16-with-gitolite">http://wasil.org/gitlab-installation-on-fedora-16-with-gitolite</a> however there were quite a few things that didn&#8217;t work with my Rackspace Install of Fedora 16 so I have updated below:</p>
<pre class="wp-code-highlight prettyprint">yum update
yum install make openssh-clients gcc libxml2 libxml2-devel libxslt libxslt-devel python-devel httpd mysql mysql-server mysql-devel gcc-c++ curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel libicu-devel sendmail redis
systemctl start mysqld.service
/usr/bin/mysql_secure_installation</pre>
<p>Remember the password you set here!</p>
<pre class="wp-code-highlight prettyprint">systemctl enable mysqld.service
adduser -r -m --shell /bin/bash --comment &#039;git version control&#039; git
mkdir /home/git/.ssh
chown git:git -R /home/git/.ssh
ssh-keygen -q -o -N &#039;&#039; -t rsa -f /home/git/.ssh/id_rsa
usermod -s /bin/bash -d /var/www/ -G git apache
mkdir /var/www/.ssh
cp -f /home/git/.ssh/id_rsa* /var/www/.ssh/ &amp;amp;&amp;amp; chown apache:apache /var/www/.ssh/id_rsa* &amp;amp;&amp;amp; chmod 600 /var/www/.ssh/id_rsa*
sudo -u apache ssh-keyscan localhost &amp;gt;&amp;gt; /var/www/.ssh/known_hosts
chown -R apache:apache /var/www</pre>
<h3>Install Ruby</h3>
<pre class="wp-code-highlight prettyprint">
sudo bash -s stable &amp;lt; &amp;lt;(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source /etc/profile.d/rvm.sh
rvm pkg install openssl
rvm install ruby-1.9.3-p194 --with-openssl
rvm all do gem update --system
rvm all do gem install rails
rvm all do gem install passenger
passenger-install-apache2-module
</pre>
<h4>Add to httpd.conf &#8211; <code> vi /etc/httpd/conf/httpd.conf</code></h4>
<pre class="wp-code-highlight prettyprint">LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby</pre>
<h4>Add to gitlab.conf &#8211; <code> vi /etc/httpd/conf.d/gitlab.conf</code></h4>
<pre class="wp-code-highlight prettyprint">&amp;lt;VirtualHost *:80&amp;gt;
ServerName yourserver.yourdomain.com
DocumentRoot /var/www/gitlabhq/public
&amp;lt;Directory /var/www/gitlabhq/public&amp;gt;
AllowOverride all
Options -MultiViews
&amp;lt;/Directory&amp;gt;
&amp;lt;/VirtualHost&amp;gt;</pre>
<h3>Install Gitolite</h3>
<pre class="wp-code-highlight prettyprint">yum install -y gitolite
curl http://python-distribute.org/distribute_setup.py | python
easy_install pip
cd /var/www
git clone git://github.com/gitlabhq/gitlabhq.git
cd /var/www/gitlabhq/
pip install pygments
rvm all do gem install bundler
bundle install --deployment --without development test
service redis start
chkconfig redis on
cp config/gitlab.yml.example config/gitlab.yml
cp config/database.yml.example config/database.yml</pre>
<h3>Set database and host config</h3>
<pre class="wp-code-highlight prettyprint">vi config/database.yml</pre>
<p>Change &#8220;Secure password&#8221; to one set earlier</p>
<pre class="wp-code-highlight prettyprint">vi config/gitlab.yml</pre>
<p>Change host and others to what required</p>
<pre class="wp-code-highlight prettyprint">RAILS_ENV=production rake db:setup
RAILS_ENV=production rake db:seed_fu
sed -i &#039;s/0077/0007/g&#039; /usr/share/gitolite/conf/example.gitolite.rc
su - git -c &quot;gl-setup -q /home/git/.ssh/id_rsa.pub&quot;</pre>
<h3>Clean up permissions or you won&#8217;t be able to browse code in Gitlab</h3>
<pre class="wp-code-highlight prettyprint">chown -R git:git /home/git/
chmod 770 /home/git/repositories/
chmod 770 /home/git/
chmod 600 -R /home/git/.ssh/
chmod 700 /home/git/.ssh/
chmod 600 /home/git/.ssh/authorized_keys
chown -R apache:apache /var/www/gitlabhq
chown apache:root -R /usr/local/rvm/gems/
chmod 770 /home/git/
chmod go-w /home/git/</pre>
<h3>Start Apache</h3>
<pre class="wp-code-highlight prettyprint">systemctl start httpd.service
systemctl enable httpd.service
iptables -I INPUT 1 -p tcp --dport http -j ACCEPT
iptables-save &amp;gt; /etc/sysconfig/iptables
systemctl restart iptables.service</pre>
<p>Sign in as<br />
admin@local.host<br />
5iveL!fe</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tech-problems.com/install-gitlab-fedora-16/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>tech-problems</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="wp-code-highlight prettyprint">
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>tech-problems</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="wp-code-highlight prettyprint">
yum update
</pre>
<p>3. Once it has finished updating run the following:</p>
<pre class="wp-code-highlight prettyprint">
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="wp-code-highlight prettyprint">
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="wp-code-highlight prettyprint">
systemctl enable mysqld.service
</pre>
<p>7. We also want to do similar for Apache so run the following:</p>
<pre class="wp-code-highlight prettyprint">
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="wp-code-highlight prettyprint">
iptables -I INPUT 1 -p tcp --dport http -j ACCEPT
iptables -I INPUT 1 -p tcp --dport mysql -j ACCEPT
iptables-save &gt; /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>tech-problems</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>2</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>tech-problems</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="wp-code-highlight prettyprint">
&amp;lt;Directory /&amp;gt;
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} google|googlebot|bing|slurp [NC]
RewriteRule .? - [G]
&amp;lt;/Directory&amp;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>tech-problems</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="wp-code-highlight prettyprint">
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>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

 Served from: www.tech-problems.com @ 2013-05-25 20:43:53 by W3 Total Cache -->