Showing posts with label xampp. Show all posts
Showing posts with label xampp. Show all posts
Thursday, 8 January 2009
Set Xampp Security
03:14
To check how secure your XAMPP application go to you localhost http://localhost/security/ That page gives you a quick overview about the security status of your XAMPP installation. There are five item on that page.
1. Password for MySQL
2. Password for PhpMyAdmin
3. Password for FileZilla FTP
4. Safe Mode on PHP
5. newuser username on POP3 Server (Mercury Mail)
To fix the problems for mysql, phpmyadmin and the xampp directory just go to
=> http://localhost/security/xamppsecurity.php
But remember, it's only allowed for localhost only.
And how to set the other if it's mark as unsecured?
FileZilla FTP
First you need to install FileZilla as service. You can do that from XAMPP Control Panel. Check on Module FileZilla then follow the instruction. If your FileZilla server have started then click on Admin. You will ask for password that you must submit 'wampp' and click OK.

If success you will see FileZilla server interface.
Click on menu Edit > Users
Choose newuser on Users column
Change the password with your new password
Click Rename to rename username
Click OK after finish.
Now you can check on http://localhost/security/xamppsecurity.php to see if your FileZilla server get secure now.
PHP Safe Mode
Safe mode configuration is useful if you don't want to offer PHP executions for outside persons
But remember if you set safe mode some important functions will not working then. Click here to see more information about safe mode.
To set safe mode go to php.ini. Usually it located on %xampp installation folder%\apache\bin\php.ini.
Find safe_mode = Off and change to safe_mode = On
Find safe_mode_gid = Off and change to safe_mode_gid = On
Then restart your apache and check if your PHP is secure now
Mercury Mail
Usually newuser doesn't exist so you don't need to remove it.
Some Important Notes
1. If your computer is not online or blocked by a firewall or not running, your servers are SECURE against outside attacks so you can ignore the setting except your computer is public.
2. Use firewall to block access from outside and just open some function that need to be open.
Here The XAMPP default ports:
ftp 21/tcp # File Transfer [Control] (XAMPP: FTP Default Port)
smtp 25/tcp mail # Simple Mail Transfer (XAMPP: SMTP Default Port)
http 80/tcp # World Wide Web HTTP (XAMPP: Apache Default Port)
pop3 110/tcp # Post Office Protocol - Version 3 (XAMPP: POP3 Default Port)
imap 143/tcp # Internet Message Access Protocol (XAMPP: IMAP Default Port)
https 443/tcp # http protocol over TLS/SSL (XAMPP: Apache SSL Port)
mysql 3306/tcp # MySQL (XAMPP: MySQL Default Port)
AJP/1.3 8009 # AJP/1.3 (XAMPP: Tomcat AJP/1.3 Port)
http-alt 8080/tcp # HTTP Alternate (see port 80) (XAMPP: Tomcat Default Port)
Have a nice try!
1. Password for MySQL
2. Password for PhpMyAdmin
3. Password for FileZilla FTP
4. Safe Mode on PHP
5. newuser username on POP3 Server (Mercury Mail)
To fix the problems for mysql, phpmyadmin and the xampp directory just go to
=> http://localhost/security/xamppsecurity.php
But remember, it's only allowed for localhost only.
And how to set the other if it's mark as unsecured?
FileZilla FTP
First you need to install FileZilla as service. You can do that from XAMPP Control Panel. Check on Module FileZilla then follow the instruction. If your FileZilla server have started then click on Admin. You will ask for password that you must submit 'wampp' and click OK.

If success you will see FileZilla server interface.
Click on menu Edit > Users
Choose newuser on Users column
Change the password with your new password
Click Rename to rename username
Click OK after finish.
Now you can check on http://localhost/security/xamppsecurity.php to see if your FileZilla server get secure now.
PHP Safe Mode
Safe mode configuration is useful if you don't want to offer PHP executions for outside persons
But remember if you set safe mode some important functions will not working then. Click here to see more information about safe mode.
To set safe mode go to php.ini. Usually it located on %xampp installation folder%\apache\bin\php.ini.
Find safe_mode = Off and change to safe_mode = On
Find safe_mode_gid = Off and change to safe_mode_gid = On
Then restart your apache and check if your PHP is secure now
Mercury Mail
Usually newuser doesn't exist so you don't need to remove it.
Some Important Notes
1. If your computer is not online or blocked by a firewall or not running, your servers are SECURE against outside attacks so you can ignore the setting except your computer is public.
2. Use firewall to block access from outside and just open some function that need to be open.
Here The XAMPP default ports:
ftp 21/tcp # File Transfer [Control] (XAMPP: FTP Default Port)
smtp 25/tcp mail # Simple Mail Transfer (XAMPP: SMTP Default Port)
http 80/tcp # World Wide Web HTTP (XAMPP: Apache Default Port)
pop3 110/tcp # Post Office Protocol - Version 3 (XAMPP: POP3 Default Port)
imap 143/tcp # Internet Message Access Protocol (XAMPP: IMAP Default Port)
https 443/tcp # http protocol over TLS/SSL (XAMPP: Apache SSL Port)
mysql 3306/tcp # MySQL (XAMPP: MySQL Default Port)
AJP/1.3 8009 # AJP/1.3 (XAMPP: Tomcat AJP/1.3 Port)
http-alt 8080/tcp # HTTP Alternate (see port 80) (XAMPP: Tomcat Default Port)
Have a nice try!
Wednesday, 24 December 2008
How to Create VirtualHost on Xampp
05:15
Create virtualhost on Xampp that installed on windows computer is very eazy. You just need what the name of virtualhost and where folder you want use as document root. You need to do two part to create virtualhost on xampp
The first part is editing httpd-vhosts.conf on xampp server. This is to redirect server on the right configuration when browser call virtualhost. Second part is editing hosts file on windows. Configuration on this file contains the mappings of IP addresses to host names. It will allow you to call virtualhost from web browser
Editing httpd-vhosts.conf
1. Open %xampp folder%\apache\conf\extra\httpd-vhosts.conf with your favorites text editor. Usually the location is C:\xampp\apache\conf\extra\httpd-vhosts.conf
2. Uncomment #NameVirtualHost *:80 so it will be look
3. Uncomment all configuration script that located between . Or copy paste to create more than one virtualhost. Remember the first configuration is used for all requests that do not match a ServerName or ServerAlias in any block.
This is the example of virtualhost. First configuration is used for all requests that do not match a ServerName or ServerAlias in any block.
Below explanation of each configuration
<VirtualHost *:80>: virtualhost configuration according to NameVirtualHost
ServerAdmin: email administration
DocumentRoot: Docoment root folder for the virtualhost
ServerName: virtualhost or domain name
ServerAlias: virtualhost or domain name alias.
ErrorLog: File to create error for this virtualhost
4. Restart your xampp server
Second thing you need to add your virtualhost name into hosts file windows. You should do this in order your windows computer can call the virtualhost name from browser
Edit hosts.conf on Windows
1. Open %windows folder%\system32\drivers\etc\hosts with your favorites text editor. Usually the location is C:\WINDOWS\system32\drivers\etc\hosts. Remember hosts is name of nfile not directory.
2. Add all your virtualhost with ip 127.0.0.1. The IP is local IP address. Below the example:
Now you can test from your favorite browser. Congratulation if it work!
Have a nice try!
The first part is editing httpd-vhosts.conf on xampp server. This is to redirect server on the right configuration when browser call virtualhost. Second part is editing hosts file on windows. Configuration on this file contains the mappings of IP addresses to host names. It will allow you to call virtualhost from web browser
Editing httpd-vhosts.conf
1. Open %xampp folder%\apache\conf\extra\httpd-vhosts.conf with your favorites text editor. Usually the location is C:\xampp\apache\conf\extra\httpd-vhosts.conf
2. Uncomment #NameVirtualHost *:80 so it will be look
NameVirtualHost *:80
3. Uncomment all configuration script that located between
This is the example of virtualhost. First configuration is used for all requests that do not match a ServerName or ServerAlias in any
<VirtualHost *:80>
ServerAdmin test@test.com
DocumentRoot C:/xampp/htdocs
ServerName xampp
ErrorLog C:/xampp/htdocs/access_error.log
</VirtualHost>
<VirtualHost *:80>
ServerAdmin test@test.com
DocumentRoot C:/xampp/htdocs/example
ServerName example.com
ServerAlias www.example.com
ErrorLog C:/xampp/htdocs/example/access_error.log
</VirtualHost>
Below explanation of each configuration
<VirtualHost *:80>: virtualhost configuration according to NameVirtualHost
ServerAdmin: email administration
DocumentRoot: Docoment root folder for the virtualhost
ServerName: virtualhost or domain name
ServerAlias: virtualhost or domain name alias.
ErrorLog: File to create error for this virtualhost
4. Restart your xampp server
Second thing you need to add your virtualhost name into hosts file windows. You should do this in order your windows computer can call the virtualhost name from browser
Edit hosts.conf on Windows
1. Open %windows folder%\system32\drivers\etc\hosts with your favorites text editor. Usually the location is C:\WINDOWS\system32\drivers\etc\hosts. Remember hosts is name of nfile not directory.
2. Add all your virtualhost with ip 127.0.0.1. The IP is local IP address. Below the example:
127.0.0.1 localhost
127.0.0.1 example.ex
127.0.0.1 www.example.ex
127.0.0.1 thisisfor.example.ex
Now you can test from your favorite browser. Congratulation if it work!
Have a nice try!
Sunday, 21 December 2008
Change Homepage on Xampp
04:37
When you installed xampp on your computer your localhost homepage will be redirect to xammp configuration page. If you want to change that you just need open %xampp folder%\htdocs\index.php with your favorite text editor and change the script with your script.
Another way, just replace index.php with your index.php
It's so simple, isn't it
Another way, just replace index.php with your index.php
It's so simple, isn't it
Thursday, 18 December 2008
Active Curl on Xampp
01:59
I've searched how to active curl on xampp and found some methods. But after tested, curl function still do not active yet. After test some my own method, finally I found the way how to active curl.
The method is very simple, you just need uncomment extension=php_curl.dll on php.ini so it will be like this
But the problem is you need do that on the right php.ini which is use for PHP Configuration File on xampp. You can check where is location of the right php.ini from
Or you can create php file and write
After that run the script on your favorite browser. Then find these:
You can see where is location php.ini. Now just uncomment extension=php_curl.dll and restart apache. Finally test your curl function and hopely it can working well on your computer.
The method is very simple, you just need uncomment extension=php_curl.dll on php.ini so it will be like this
extension=php_curl.dll
But the problem is you need do that on the right php.ini which is use for PHP Configuration File on xampp. You can check where is location of the right php.ini from
http://localhost/xampp/phpinfo.php
Or you can create php file and write
phpinfo();
?>
After that run the script on your favorite browser. Then find these:
Loaded Configuration File :
You can see where is location php.ini. Now just uncomment extension=php_curl.dll and restart apache. Finally test your curl function and hopely it can working well on your computer.
Subscribe to:
Posts (Atom)