so i transfered all my blog post from my own local server to 1&1 and since the transferer i was experiencing “Error 500” from the server. i could barely do anything becuase of that error. yester after being on the phone for 30 hour we realized that it was because of php. i currently have php4 and php5 on my server, but php4 is the default. if i want to have php5 on that host i will need to specify it on the “.htaccess” that this host will be running php5 and that did take care of the problem ;).
so yes, i got hacked in october 24th. how this happened? well… i had to open couple of ports so my roommate could play a game. these ports lead hackers to get into my lan and use my ip address to download illegal items.
so here is my story in short… i came that day from work and my roommate tell me that there is not internet connection. i was that is ok… i bet that my isp (internet service provider) is making some changes in order to improve performance. so i wait until next day to call and get my internet fix. when i called my isp tell me that i was flagged down. i ask flagged down with what? they told me that my ip was registed by downloading illegal documents online. when i asked the time that this happened, they told me that it happened at 12:15am CST. when i check my firewall i saw that there was some ip addresses that were trying to hack my server and i report those ip addresses to my isp in order to improve this virtual system from hackers.
XAMPP is an application that it would help you to facilitate the hassle of installing Apache web server, MySQL, Perl and PHP individually. This tutorial will show you step by step on how to install XAMPP in Lunix and have it auto started with your computer. This tutorial was tested on Ubunut and Fedora. Replace x.x.x for the XAMPP version.
- Go to
http://www.apachefriends.org/en/xampp-linux.htmland download “XAMPP Linux x.x.x”
- Open up the “
- Become a root user bu typing “
- Type the administrator password
- Go to where the file “
xampp-linux-x.x.x.tar.gz” is downloaded
- Extract the files by typing this “
tar xvfz xampp-linux-1.6.7.tar.gz -C /opt“
Now XAMPP will be under “
/opt/lampp” folder. In order to run XAMPP you will need to run this… “
/opt/lampp/lampp start” as a root. If you want to stop it just replace start for stop.
To test whether your server is up go and open your web browser and type “
http://localhost“. If it works you are now good to go to the next step.
This step is setting up XAMPP security. In order to do that being the root type “
To remove XAMPP from your system type “
rm -rf /opt/lampp“
If you want to have XAMPP starting with your machine when it turns on follow this steps.
- Find out your default runlevel type “
egrep :initdefault: /etc/inittab“
You should no see a line containing a number between two colons. In most cases 3 or 5 (2 if you’re using Debian).
- Go into the directory which configures this runlevel. If for example your runlevel is 3, then you have to change directory into the “
/etc/rc.d/rc3.d” directory.If your system didn’t provide /etc/rc.d/rc3.d please try also /etc/init.d/rc3.d and /etc/rc3.d.
- Now setup XAMPP to start when your computer turns on type”
ln -s /opt/lampp/lampp S99lampp“
ln -s /opt/lampp/lampp K01lampp“
Now XAMPP should start and stop automatically if you boot or shutdown your machine.
And that’s it. Hopefully you had success like I did 😛