A script to install a PHP server with MySQL database portable
This script will install httpd-2.4.63-250207-win64-VS17 (Apache), php-8.3.23-Win32-vs16-x64 (PHP), mysql-8.4.5-winx64 (MySQL Server) and phpMyAdmin-5.2.2-all-languages (Database Manager) in Windows operating system for you easy
Be sure you have installed Visual C++ Redistributable Visual Studio 2015-2022 : vc_redist_x64
- Check if the Visual C++ Redistributable dependency is installed on the machine (generally already installed within Windows 10/11)
- Make sure the user has administrator permissions
- Back up the Windows hosts file to create a new one containing the note to the development hosts created by the script
- Extract httpd-2.4.63-250207-win64-VS17.zip to C:\APMServer\Apache24\
- Apply the settings to the Apache server
- Extract php-8.3.23-Win32-vs16-x64.zip to C:\APMServer\PHP-8.3.23\
- Apply settings to the PHP module
- Install the xdebug extension for PHP
- Extract mysql-8.4.5-winx64 to C:\APMServer\MySQL-8.4.5\
- Apply settings to the MySQL server
- Check for the existence of a service named MySQL84, if it already exists the script will ask to enter a new name for the MySQL service to be created
- Extract phpMyAdmin-5.2.2-all-languages.zip to C:\APMServer\Apache24\htdocs\phpmyadmin\
- Check the existence of a service named APMServer, if it already exists the script will ask to enter a new name for the Apache service to be created
- Extract data from MySQL to C:\APMServer\MySQL-8.4.5
- Start MySQL server insecurely (with no password)
- Define the 2 installed services, MySQL84 and APMServer with manual initialization
- Start the 2 services
- Create 2 scripts on the Desktop to turn both services on and off
- Create Apache monitor shortcut on the Desktop
- Create uninstall.bat file in C:\ProgramData\APMServer to a full uninstallation
- Open the pages for development, apmserver, phpmyadmin, mywebsite
After being successfully installed, it is recommended to enter a password for the root user of the MySQL, do this using the following command in the SQL tab of phpmyadmin.
ALTER USER 'root'@'localhost' IDENTIFIED BY 'YourNewPassword'; flush privileges;