Updates from March, 2012 Toggle Comment Threads | Keyboard Shortcuts

  • ibnuyahya 10:30 pm on March 3, 2012 Permalink | Reply
    Tags: cakephp   

    jom belajar cakephp 

    Harini aku join Free Course: Introduction to CakePHP anjuran altfa solution . Really nice course, di ajar oleh dua orang sifu cake iaitu sifu Hizam Mohd dan sifu Jasdy Syarman . Memandangkan tajuk course pun Introduction to CakePHP, memang bersesuaian dengan pembentangan yang disampaikan dan sangat sesuai jika korang nak belajar CakePHP.
    (More …)

     
    • ibnuyahya 10:28 pm on February 29, 2012 Permalink | Reply  

      nginx equilvalent of Wamp/Mamp? 

      If you are looking for equilvalent of wamp or mamp for nginx, you should try mnpp ( Mac + Nginx + Percona + PHP or Python ) . This is the only one-click installer for nginx I ever seen so far. If you found any other one-click installer for nginx, feel free to share with us.
      (More …)

       
      • ibnuyahya 8:54 pm on February 9, 2012 Permalink | Reply
        Tags:   

        Installing nginx on mac osx 

        This time I would like to share with you on how easily to install nginx from source in your mac osx.

        1. Download and untar the file

        curl -O http:// nginx.org/download/nginx-1.1.14.tar.gz
        tar -xvf nginx-1.1.14.tar.gz
        

        make sure no space between http:// and nginx.org

        (More …)

         
        • ibnuyahya 4:32 pm on February 9, 2012 Permalink | Reply
          Tags: curl   

          Download file using curl 

          As an alternative of wget, you can use curl to download file from your terminal

          wget method

          wget http: //nginx.org/download/nginx-1.1.14.tar.gz
          

          curl method

          curl -O http: //nginx.org/download/nginx-1.1.14.tar.gz
          

          p/s Make sure you remove space between http: and // in the sample ( http: // ). Don’t know why recently my syntax highlighter auto adding “a” tag for the link.

           
          • ibnuyahya 9:54 pm on February 1, 2012 Permalink | Reply
            Tags: geoip,   

            installing nginx geoip ubuntu server 

            installing geoip is pretty easy but sometime its a bit tricky. To ensure I’m not going to the same mistake, I do the following notes. Perhaps can help those facing same tricky mistake.

            1. InstallĀ libgeoip-dev

            aptitude install libgeoip-dev

            2. Compile your nginx and include –with-http_geoip_module

            ./configure --with-http_geoip_module

            Verify your nginx installation by typing

            nginx -V

            Watch –with-http_geoip_module . If you can see –with-http_geoip_module in your nginx -V result, thats mean geoip module successfully installed.
            (More …)

             
            • ibnuyahya 5:31 pm on December 28, 2011 Permalink | Reply
              Tags: contest,   

              Nginx HTTP Server book give away 

              Nginx http server

              Saya ingin memberi buku ini secara percuma. Syarat-syaratnya mudah sahaja.

              1. Anda mestilah menetap di Malaysia.
              2. Klik facebook like pada page ini. ( mudah saja kan )
              3. Tinggalkan komen anda disini. Pastikan anda masukkan alamat email anda.
              4. Apakah jenis webserver dan version yang digunakan di laman http://ibnuyahya.com

              Pemenang akan diumumkan pada Khamis, 29 Dec 2011 Jam 8 malam. * Pemenang dipilih secara random dari komen-komen di bawah. ;P

              Update : 29/12/2011 8.00pm
              ramdom.org memilih Azim Norazmi sebagai pemilik buku ini. Sila hantar alamat anda ke ibnuyahya at gmail.com

              yang lain jangan bersedih ye. ada buku lebih nanti kita buat give away lagi. :)

              Nginx http server

               
              • calyph 5:50 pm on December 28, 2011 Permalink | Reply

                mai kat saya buku tu..yeahh..

              • Azim Norazmi 5:52 pm on December 28, 2011 Permalink | Reply

                aku kasi jwpn kat fb ko…. huhuhu

              • Azim Norazmi 5:59 pm on December 28, 2011 Permalink | Reply

                nginx 1.1.10.. hehe… jgn show jwpn dulu.. huhuu.. nanti dah abes competition baru tunjuk komen yg ada jwpn

              • calyph 6:38 pm on December 28, 2011 Permalink | Reply

                nah..bagi cara senang.. http://ibnuyahya.com/wewewewe.html ..hihiih. ErrorDocument kasi filter

              • Omar 8:39 pm on December 28, 2011 Permalink | Reply

                Menarik buku ni. Harap Random.org tu pilih.. haha

                Server apa? Nginx 1.1 pada Apache

                • Azim Norazmi 12:01 am on December 29, 2011 Permalink | Reply

                  Boleh ek nginx on apache? hehe

                  • ibnuyahya 6:54 am on December 29, 2011 Permalink | Reply

                    nginx on apache?. nginx sebagai reverse proxy, boleh. nginx akan handle semua static content dan pas php kepada apache. maka tak perlu pening2 sebab php masih lagi running pada apache.

                    • Azim Norazmi 11:07 am on December 29, 2011 Permalink | Reply

                      Yang ko punya ni?

                      • ibnuyahya 11:50 am on December 29, 2011 Permalink

                        nginx saja. rugi resource running apache & nginx. dah la server tak berapa power :)

              • ibnuyahya 8:05 pm on December 29, 2011 Permalink | Reply

                encik “Azim Norazmi ” Tahniah. sila hantar maklumat penghantar ke email aku ye. Lambat, aku bagi orang lain hahaha

              • calyph 2:34 pm on December 30, 2011 Permalink | Reply

                Alhamdulillah ….wahh.. Tahniah Azim.. nanti boleh la ajar aku nginx..he he. Ko detect camane..meh ajar sikit :D

            • ibnuyahya 12:44 am on December 18, 2011 Permalink | Reply
              Tags: error   

              nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 

              Today I’m facing the following error message after added custom module to nginx

              root@ibnuyahya:~# sudo /etc/init.d/nginx restart
               * Stopping Web Server nginx [OK]
               * Starting Web Server nginx                                                                                                                                                         nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
              nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
              nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
              nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
              nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
              nginx: [emerg] still could not bind()
              

              solution?
              check running pid

              fuser -n tcp 80
              80/tcp:              26621 26622
              

              Kill

              root@ibnuyahya:~# kill -9 26621
              root@ibnuyahya:~# kill -9 26622
              

              restart nginx

              root@ibnuyahya:~# sudo /etc/init.d/nginx restart
              
               
              • Aaron 3:30 pm on December 25, 2011 Permalink | Reply

                you just solved 20 minutes of frustration for me, thank you.

                • ibnuyahya 4:57 pm on December 28, 2011 Permalink | Reply

                  You are welcome. I’m glad to hear this notes helped you :) .

              • Shane 6:42 pm on January 5, 2012 Permalink | Reply

                This uncovered an issue on our server, which turned out to screw everything up for me. Good thing it was at 4 in the morning : )

                I ended up using this guide here to fix the additional issue:
                http://www.webhostingtalk.com/showthread.php?t=1099802

                Thanks!

              • Alvin Mites 12:04 am on February 9, 2012 Permalink | Reply

                Many thanks for sharing — was having the wrong site display when adding a new one to NGINX

              • kht 9:57 pm on March 2, 2012 Permalink | Reply

                Nice nice .. solved my problem with nginx :)

                btw do you why thisc could happen?

                thank

            • ibnuyahya 9:21 pm on November 18, 2011 Permalink | Reply
              Tags:   

              nginx: redirect old url 

              Bagaimana untuk selamatkan trafik dari url lama daripada paparan page tidak dijumpai atau 404 error. Contohnya, url lama bagi salah satu pos saya adalah http://ibnuyahya.com/simple-jakim-esolat-wrapper/lang/en-us/. Memandangkan saya tidak lagi menggunakan plugin multi-language.. maka url tersebut tiada post-fix /lang/en-us/. Jika pelawat menggunakan enjin carian google atau yahoo dan menjumpai link tersebut dan klik… maka mereka akan di bawa ke laman error 404, iaitu page berkenaan tidak dijumpai walaupun sebenarnya page tersebut berada di http://ibnuyahya.com/simple-jakim-esolat-wrapper , tanpa post-fix /lang/en-us/

              Jika anda menggunakan apache, sila masuk http://ibnuyahya.com/htaccess-redirect-old-post/

              Untuk server nginx, anda boleh gunakan rewrite kod seperti berikut

              rewrite ^/(.*)/lang/en-us/$ /$1 permanent;
              rewrite ^/(.*)/lang/ms-my/$ /$1 permanent;
              

              Dengan menambah kod di atas di dalam nginx config , anda boleh redirect url lama dari http://ibnuyahya.com/simple-jakim-esolat-wrapper/lang/en-us/ ke http://ibnuyahya.com/simple-jakim-esolat-wrapper/ dan setkannya sebagai move permanent atau 301.

               
              • ibnuyahya 8:42 pm on November 18, 2011 Permalink | Reply
                Tags: ,   

                Setting Nginx dan WordPress 

                Berikut adalah nginx configuration untuk WordPress dengan permalink.

                # Upstream to abstract backend connection(s) for php
                upstream php {
                        server unix:/tmp/php-cgi.socket;
                        server 127.0.0.1:9000;
                }
                
                server {
                        ## Your website name goes here.
                        server_name domain.tld;
                        ## Your only path reference.
                        root /var/www/wordpress;
                        ## This should be in your http block and if it is, it's not needed here.
                        index index.php;
                
                        location = /favicon.ico {
                                log_not_found off;
                                access_log off;
                        }
                
                        location = /robots.txt {
                                allow all;
                                log_not_found off;
                                access_log off;
                        }
                
                        location / {
                                # This is cool because no php is touched for static content
                                try_files $uri $uri/ /index.php;
                        }
                
                        location ~ \.php$ {
                                #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
                                include fastcgi.conf;
                                fastcgi_intercept_errors on;
                                fastcgi_pass php;
                        }
                
                        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                                expires max;
                                log_not_found off;
                        }
                }
                
                 
                c
                compose new post
                j
                next post/next comment
                k
                previous post/previous comment
                r
                reply
                e
                edit
                o
                show/hide comments
                t
                go to top
                l
                go to login
                h
                show/hide help
                shift + esc
                cancel