Fix PHPMyAdmin Error When Using suPHP on Ubuntu 14.04

Since i move to Ubuntu recently, i need to setup all the development environment. My stack is using Nginx with Apache + PHP as the webserver and use MySQL as database. Since i don't like to useas the home directory for the apache, i moved it to my /home/ivan/public_html folder. And to make it easier, i need to change PHP to run as my user role. For that i install suPHP module on Apache, and then chmod 755 all the php files. Everything is working correctly, except PHPMyAdmin, since … Read more...

Create Local VirtualHost For Your Development Environment

If you are using xampp, you can access your local server just by go to http://localhost. So now i would like to share to you how to create your own local domain and add your local domain into apache virtual host, so you can have your local website for development purpose. For example you can have www.domain.local. To create this you only need to edit your apache vhost and your hosts file.If you are using Windows you can edit your hosts files in C:\Windows\System32\drivers\etc\hosts, you can … Read more...

504 Gateway Timeout With Nginx And Apache

Well these couple days i spent a lot of my time debugging the nginx 504 gateway timeout error. As far as my understanding this error 504 caused by proxy timeout, or nginx wait too long for apche response. By the way i installed nginx as reverse proxy with Apache to server my static files. You can refer to my previous post: Install nginx as Reverse Proxy With Apache.As i’m digging with Google, there are lot of possibilities of this problem. Some says because of fastcgi_read_timeout, but … Read more...

Local Server For Testing Environment With XAMPP On Windows

If you are a php web developer or want to be, it is a must that you need to have a testing environment. A testing environment means you have our own local server and test and run your application that you are developing before you go live on your production server. You need to develop, and testing your application in your local rather than testing it in your production server.So to have your local server in Windows environment you can use XAMPP. XAMPP is a free and open source cross-platform … Read more...

Improve Your Server Performance With Nginx

Apache is one of the best well known web server, that run in all platform, but usually on Linux in production mode. Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. Both static files (css, js, html, image files) and dynamic files (php, pl, py, etc.) are served equally using same amount of resources. Which will cause bottleneck in system performance when your website have lot of static files and lot of traffic.To prevent this, we … Read more...

Simple Perl Script To Test Mod_Evasive On Your Apache Web Server

One way to prevent DOS attack is install mod_evasive for apache. I have write the article “Prevent DDoS Attack With mod_evasive in Apache 2“, a while ago.And now if you want to check if the mod_evasive is working correctly, you can use the simple perl script below:To run the script:This script will do 100 request to your webserver. And will return the response code. As you know it is return code 200 means it success to connect. But if it is 404 (not found) or 302 … Read more...

List Of Spam Bot You should Block

There are lots of spam bot out there. Not just a spam bot, scrape box always come to your site and scraping your content plus wasting your bandwidth. I hate spam and scrape bot, and i bet you do too. We need to keep update our list to block such unwanted visitors. Unwanted visitors not just harm your website but also waste your money indirectly.Here the list of spam bot you should … Read more...

PDO Sqlite3 Not Working In PHP 5.3.3 And WHM/Cpanel 11.26.8

The latest PHP v.5.3.3 doesn't work good with PDO Sqlite3. I am using a VPS (Virtual Private Server) with Centos 5 and WHM/Cpanel 11.26.8. Everything goes fine except there is an error message "undefined symbol: sqlite3_libversion" in all users error_log.I did compile my server with this configuration: Apache v2.2 PHP 5.3.3 PDO and PDO_MySQL enabledThe compile process run without problem and success. But if you notice that, in error_log will show an error message like … Read more...

[HowTo] Install Apache, PHP, MySQL, and PHPMyAdmin on Ubuntu

After a while i haven't write on my blog. Now i'm ready to start writing again. Probably you notice that i changed my theme. Yes i was busy redesign my theme from the start. Anyway i will tell you the story on the next article.Now i want to show you how to install Ubuntu Karmic Koala 9.10 as a perfect server with Apache, PHP, MySql and Phpmyadmin. Since Ubuntu have a great repositories and the magic application called apt-get then it shouldn't be hard to make Ubuntu as a perfect … Read more...

[HowTo] Make Apache User Directory on Ubuntu

On system (in my case is Ubuntu server) with have multiple user and each user permit to have their own home directory, then you need to install mod_userdir on your apache. So you can have the address like this: www.anyurl.com/~username/. Each user will have their own subdirectory specified by UserDir driective in the configuration.To install userdir module in apache on ubuntu server is not hard. Only need a couple steps and change directory permission.Follow these steps below:Open … Read more...