๐ฅ Watch on YouTube: XAMPP Configuration Video
XAMPP is one of the most useful tools for developersโit's my go-to starter kit for setting up local development environments. Here's how I configure it! ๐
๐ Installing XAMPP
- Download XAMPP for your OS (I'm using Windows in this guide).
- Install the applicationโignore the UAC prompt for now.
- Choose your installation directory (I avoid Drive C: and use a dedicated development drive instead).
- Start the XAMPP Control Panel.
โ Configuring Apache, PHP, and MySQL
๐น Accessing phpMyAdmin Over a Network
By default, youโll see this error when trying to access phpMyAdmin over a network:
Access forbidden!
New XAMPP security concept:
Access to the requested directory is only available from the local network.
Fix:
- Open the XAMPP Control Panel.
- Click on the Apache config button and open
httpd-xampp.conf
. - Find
Require local
and change it toRequire all granted
. - Restart Apache from the XAMPP Control Panel.
๐น Setting phpMyAdmin Credentials
- Open the XAMPP Control Panel.
- Click on the Apache config button and open
config.inc.php
. - Add a Blowfish secret key:
$cfg['blowfish_secret'] = 'yourblowfishkeyhere12345';
- Update authentication settings:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'yourpasswordhere';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
- Restart Apache.
๐น Granting MySQL Access Over the Network
By default, MySQLโs root account is only accessible locally. To enable network access:
- Open phpMyAdmin or log in via CLI.
- Run:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
๐น Configuring Timezone in PHP
By default, PHPโs timezone is Europe/Berlin
. To change it:
- Open the XAMPP Control Panel.
- Click on Apache config and open
php.ini
. - Find
date.timezone
and update it to your timezone:
date.timezone=Asia/Manila
- Save and restart Apache.
๐น Changing Apache Ports
If port 80 is occupied (e.g., by IIS or Nginx), change it:
- Open the XAMPP Control Panel.
- Click Config > Service and Port Settings > Apache.
- Open
httpd.conf
, findListen 80
, and replace it with your desired port. - Restart Apache.
๐ Configuring FileZilla FTP Server
XAMPP includes a built-in FileZilla Server for secure file transfers. Hereโs how to set it up:
- Start FileZilla Server from XAMPP.
- Click Admin (default login:
127.0.0.1
, port14147
, no password). - Go to Edit > Settings to change the admin password.
- Create an FTP group:
- Click Group Icon > Add Group > Set name.
- Under Shared Folders, add your project directory.
- Create an FTP user:
- Click User Icon > Add User > Set username and password.
- Assign the user to a group.
- Test the setup by accessing
ftp://yourhostserver
in a browser or Windows Explorer.
๐ง Overview of Mercury Mail Server
Mercury is a built-in mail server for managing email accounts within your organization.
๐ฅ Credits: Parag Dhali
๐ Configuring Tomcat for Java Applications
Tomcat provides a Java-based web server environment. By default, it runs on port 8080
, and user roles need to be configured.
๐น Configuring Tomcat Users
Add this to tomcat-users.xml
:
<tomcat-users>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="username" password="yourpasswordhere" roles="admin-gui,manager-gui"/>
</tomcat-users>
- Open XAMPP Control Panel.
- Click Config > tomcat-users.xml.
- Paste the above XML snippet inside the file.
- Restart the Tomcat service.
๐ All Set for Development!
Thatโs it! Your XAMPP environment is now fully configured for local development.
๐ฌ Got questions or suggestions? Drop them in the comments below!
Top comments (11)
That was a beautiful nostalgic moment! I've used xampp for several years with pleasure and only stopped using it when I switched to Linux.
Definitely recommended for those developing on Windows and don't want to mess with Docker. Great post!
Thank you so much sir.
Cover image is Graden of Words.
Really? So that's another beautiful anime movie of Makoto Shinkai if ever, I just get the image in Pinterest.
By the way I use it as cover because for me it's represent hardwork and determination.
Yeh, I love this anime. I watched in many years and I love it so much and the music and sound of Shinkai.
I would highly recommend Laragon for local development.
Switched from XAMPP, never looked back.
Thank you for recommendation. I will try Laragon for dev.
Getting started with XAMPP is crucial for any developer's toolkit, much like installing the GoGoAnime APK for anime enthusiasts. Both serve as foundational tools, with XAMPP facilitating local server setup for web development, while the GoGoAnime APK brings easy access to a vast library of anime content. Configuring XAMPP marks the initial step towards creating dynamic websites, just as installing the GoGoAnime APK opens doors to a world of animated entertainment, making them indispensable resources for respective pursuits.
Thanks a lot. This worked perfectly as described
The only concern with PHP is whether I can have multiple projects / web servers in one PC?
What do you think about composer?
PHP can be hosted using Nginx, Apache and IIS, 3 of my tested web server of it and you can do multiple project on it, I hope this answer your first question.
Then I love Composer, this provide great package for my projects. I also recommend NPM.