Archive for the ‘Apache’ Category

Tizen Linux for mobile tablet smartphone will takeover the world. Backed by Intel, Samsung, Linux foundation. Good luck.

February 26, 2012 1 comment

Tizen Linux for mobile tablet smartphone will takeover the world. Backed by Intel, Samsung, Linux foundation. Good luck.

– Android is less important in such case

– IPhone also


How to make apache gzip

November 15, 2010 Leave a comment

How to use mod_deflate?

# Compress output
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html

Categories: Apache, centOS, Zend Tags:

Apache character encode virtual host php content type header

April 18, 2010 Leave a comment

I have problem with FR/NL character because of utf8 working mode and they need iso-8859-1 charset.

1. vi /etc/php.ini

remove the default charsettings

2. vi /etc/..httpd.conf

# it can be inside virualhost or as default
AddDefaultCharset iso-8859-1


Categories: Apache, PHP

Apache rewrite rule robots sitemap

April 17, 2010 Leave a comment

I want to  stop using framework, and do some HANDjob:

1. .htaccess

<IfModule mod_rewrite.c>
 RewriteEngine on
 # Google will hit those
 RewriteRule ^wenduine-haan-brugge-oostende-blankenberge/?$ / [H]
 RewriteRule ^haan-blankenberge-oostende-brugge/?$ / [H]
 RewriteRule ^de-haan/?$ / [H]

... 40,000 alias rules

2. robots.txt

User-agent: *
Disallow: /

3. sitemap.txt ( comment: if i get good job, and get good paid, i would have wrote a java/c++ data entry software )


Categories: Ajax, Apache, HTML, IE, JavaScript

PHP seo sitemap spider robots.txt robots allow disallow search engine nice looking url

April 17, 2010 2 comments


First of all robots.txt file must, to allow a bot (spiders like google, yahoo, msn etc) to reach your webiste and crawl your:  “Damn looking url” or “Ugly looking url!!” or “Nice looking url”, what ever you name, just name it for standard understanding we name it SEO.


User-agent: *
Disallow: /css/
Disallow: test.php/
Allow: /file/myfile.html
Sitemap: /sitemap/xml.xml
Sitemap: /sitemap/txtmode.txt

Other methods, way of doing:

1. Text based (KISS, keep it simple STUPID!!!)  && 10mb && 50,000 lines

a. http://mysite/searchlist1.txt:

b. http://mysite/searchlist2.txt

c. http://mystei/robots.txt

Sitemap: http://mysite/searchlist1.txt
Sitemap: http://mysite/searchlist2.txt

2. Xml based (Not KISS)

3. Meta tag/title tag (KISS)

You are upset/World is so crud:
Nice looking url all of a certain, became the bible for web technologies, and you don’t have any solution. Wait! try this atleast:

vi /etc/httpd/conf/httpd.conf
Alias /my-nice-urls http://mysite/index.php?a=old=b=nasty=c=ugly

your bad url  was: http://mysite/index.php?a=old=b=nasty=c=ugly
your working url is: http://mysite/my-nice-urls

More reading:

Categories: Apache, cakePHP, CSS, HTML, IE, JavaScript, PHP, Zend

Apache – mod_rewrite

February 15, 2010 Leave a comment
  1. Make sure that an .htaccess override is allowed: in your httpd.conf, you should have a section that defines a section for each Directory on your server. Make sure the AllowOverride is set to All for the correct Directory. For security and performance reasons, do not set AllowOverride to All in <Directory />. Instead, look for the <Directory> block that refers to your actual website directory.
  2. Make sure you are editing the correct httpd.conf rather than a user- or site-specific httpd.conf.
  3. For some reason or another, you might have obtained a copy of CakePHP without the needed .htaccess files. This sometimes happens because some operating systems treat files that start with ‘.’ as hidden, and don’t copy them. Make sure your copy of CakePHP is from the downloads section of the site or our SVN repository.
  4. Make sure Apache is loading up mod_rewrite correctly! You should see something like LoadModule rewrite_module libexec/httpd/ or (for Apache 1.3) AddModule mod_rewrite.c in your httpd.conf


LoadModule rewrite_module modules/ # check if its loaded
AllowOverride All # by default somtimes none for <Direcotry “your….webserver >

Categories: Apache

centOS – lamp, LAMP Mannually

January 3, 2010 Leave a comment

Two methods to have it:

— XAMPP ( i give up for auto run script and postfix problem, otherwise it fine here : ( )

— By hand mySQL, PHP, Apache httpd, PhpmyAdmin

PHP, Apache, PhpMyAdmin:

1. yum install phpMyAdmin

* phpMyAdmin ( framework will be ready to mannually configure )
* PHP (installed)
* httpd (installed)


2. yum install mysql.i686 mysql-server.i686

* it install mysql
* install mysqld

[root@shamun /]# /etc/rc.d/init.d/mysqld status
mysqld is stopped
[root@shamun /]# /etc/rc.d/init.d/mysqld start
Starting MySQL:                                            [  OK  ]
[root@shamun /]# whereis mysqld
mysqld: /usr/libexec/mysqld /usr/share/man/man8/mysqld.8.gz
[root@shamun /]#

3. Check the installation

[root@shamun /]# httpd -v
Server version: Apache/2.2.14 (Unix)
Server built:   Dec  3 2009 10:25:53
[root@shamun /]# php –version
PHP 5.3.1 (cli) (built: Nov 20 2009 12:52:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
[root@shamun /]# mysql –version
mysql  Ver 14.14 Distrib 5.1.41, for redhat-linux-gnu (i386) using readline 5.1
[root@shamun /]#

open browser > http://localhost/phpmyadmin

its loaded now it will ask phpMyAdmin login/password we need to mannually fix it

4. phpMyAdmin

[root@shamun /]# whereis phpMyAdmin
phpMyAdmin: /etc/phpMyAdmin /usr/share/phpMyAdmin
[root@shamun /]#

[root@shamun phpMyAdmin]# ls
[root@shamun phpMyAdmin]# mkdir config
[root@shamun phpMyAdmin]# chmod o+rw config/
[root@shamun phpMyAdmin]# cp config/
[root@shamun phpMyAdmin]# chmod o+rw config/
[root@shamun phpMyAdmin]# cd config
[root@shamun config]# ls
[root@shamun config]#

* copy the setup text after saved, and overwrite the settings in /etc/phpMyAdmin/

* then open http://localhost/phpmyadmin > login using root username only.

Categories: Apache, centOS, MySQL, PHP Tags: