Written on: Updated on:
XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer. XAMPP for OS X is a native installer for OS X. It installs Apache, PHP and other XAMPP components directly on your OS X system, in the /Applications/XAMPP folder. XAMPP-VM is a virtual machine for OS X. It includes Apache, PHP and other XAMPP components and runs them in a Linux-based virtual machine on your OS X system. There are some tutorials to install extensions in Mac Os X El Captan and XAMPP for OS X 7.0.2 version? May 2016 01:38 XAMPP version: 7.0.2 Operating System: OS X. The XAMPP open source package has been set up to be incredibly easy to install and to use. XAMPP’s ease of deployment means a WAMP or LAMP stack can be installed quickly and simply on an operating system by a developer, with the advantage that common add-in applications such as WordPress and Joomla! Can also be installed with similar ease.
The following Howto will install CakePHP and get you up and running using XAMPP on Mac OS X 10.7.5+.
This guide is a series of terminal commands that will:
- Install the latest version of Composer.
- Move the
composer pharfile to the XAMPP
- Install the latest version of CakePHP.
I have successfully tested the installation using the following package versions:
- Mac OS X 10.7.5
- XAMPP 5.6.30-0
- Composer 1.4.1
Earlier versions of the above software may indeed work however I have not tested them so YMMV.
Open up a terminal window and run the following shell commands. This will download the composer setup file, verify the installer is valid and create the packaged
Download and Build
Moving things around
Once you see the
Installer Verified message output in your terminal window you can then run the following command.
This command moves the
composer.phar file to the XAMPP
bin directory so that you can access it from a centralised location within XAMPP. The
alias command makes composer available globally. It is useful to move it as you may want or need to install other packages via Composer.
You will now be able to run composer at the following location:
or simply run:
Setting up a CakePHP project
By default Composer will install the most current version of CakePHP that works with the PHP version in XAMPP. I did not want to run PHP 7 so I chose to download XAMPP using PHP version 5.6.30. Sourcetree github login. Running PHP 5 or 7 really won’t matter to installing CakePHP; either version will work.
XAMPP serves website files from the
htdocs folder so you will need to ensure that you are in the correct path before installing CakePHP.
In the terminal window run the following command to navigate to the
Finally we are now ready to install CakePHP. You can do this by running the following command in your terminal window.
Very Important: In the above command you need to replace helloworld with the name of the project you are setting up.
Once the command has run you will now have a new folder in the
htdocs folder. You can now fire-up the site in your browser.
|- ALT Linux|
|- Arch Linux|
|- Debian or Ubuntu|
|- Red Hat Enterprise Linux or CentOS|
|- Solaris 11 / opensolaris|
|- Solaris 10|
|- Windows Server 2019|
|- Windows Server 2016|
|- Windows Subsystem for Linux|
|on a stick|
|- Uniform Server|
XAMPP can be used to get an environment for your MediaWiki installation up and running pretty quickly on your local machine or for a portable version on a USB drive if you use XAMPP Portable version.
Getting Apache and MySQL running
- Download the latest version for your platform (Linux, Windows, Mac OS X, or Solaris) from apachefriends.
- Run the executable to extract it (you can extract it straight to C: if you want; it'll create an XAMPP subfolder and put all the files there) and answer the questions setup will ask you. Rename the folder to XAMPP. The minimum required components are Apache, MySQL, PHP and phpMyAdmin.
- At the end, setup will give you an option to start the XAMPP control panel; select that option and it should pop up.
- Check the checkboxes for Apache and MySQL and click on their respective Start buttons to start those.
- If a port conflict occurs when starting the Apache web server, then the port for Apache must be changed, e.g. change 80 to 8080 (httpd.conf) and 443 to 4433 (httpd-ssl.conf). The service ports in xampp-control.ini must be changed in the same way.
- You may encounter a MySQL port conflict in XAMPP if you have installed MySQL before in the system. In this case you need to change the port number for XAMPP. For example: https://stackoverflow.com/a/39741578/5632906.
Creating your database
- Direct your browser to http://localhost/dashboard/ or e.g. http://localhost:8080/dashboard/ if the port has been changed to 8080
- Go to phpMyAdmin at the top of the page
- Sign in
- Click Databases on the top bar.
- Choose a name e.g. wikidb, select a collation e.g. if your wiki is using utf8 for its default charset then choose utf8_unicode_ci, and click Create)
- Go into the new database and click on Privileges on the top bar.
- Click Add a new user
- Enter a name for the user (e.g., wikiuser), a password and for the hostname select Local/localhost. You can leave all the rest blank. You may want to write down your database name, user name, and password, because you'll need those to install MediaWiki.
- Click the radio button for 'Grant all privileges on database 'xxx'
- For Global privileges select check all
- Click Go.
To make sure that the Apache HTTP server doesn't time out during the creation of the databases, modify the php.ini config file:
- Open the php.ini (can be found in the folder /path_to_xampp/php; in most linux distributions, this file has the the path /opt/lampp/etc/php.ini ) file using your favorite text editor and find the following section and change to max_execution_time = 600.
- Save the file and restart Apache
Setting up MediaWiki
How To Install Xampp In Macos Catalina
- Extract all your MediaWiki files and folders into a subfolder e.g. mywiki of the htdocs folder, wherever that is e.g. c:xampphtdocs.
MediaWiki is downloaded as .tar.gz file. To unpack such archive the following command can be used in Windows cmd or PowerShell:
tar xzvf your-file-name.tar.gz, e.g.
tar xzvf mediawiki-1.35.1.tar.gz.
- Direct your browser to the appropriate page, e.g. http://localhost/mywiki
- Follow the MediaWiki installer's instructions, entering the database name, user name, and password you wrote down during the 'creating your database' step above.
- If you enabled the 'security' option, then you need to Use superuser account. This means the MySQL root account and its password.
- After MediaWiki tells you that everything went smoothly, save your LocalSettings.php file to your wiki's root folder, e.g. c:xampphtdocsmywiki.
- Direct your browser once again to the appropriate page, e.g. http://localhost/mywiki. It should take you to the Main Page of your new wiki. Congratulations! You're done.
- Add any extra extensions your wiki is going to require.
Main article: Manual:Backing up a wiki
- In SQL admin, go to the wiki database (typically wikidb), and click Export. Check the first box under 'structure' (DROP TABLES), and check the 'save as file' checkbox near the bottom. Click Go and save the file to the backup location.
- Save a copy of the wiki folder, e.g. mywiki from c:xampphtdocsmywiki to the backup location.
Main article: Manual:Restoring a wiki from backup
Install Xampp Mac Os Catalina
- Install XAMPP on the new server.
- In SQL admin:
- Create a new blank database with the default options and a name of your choice.
- Import the database file you backed-up.
- Change the SQL password of the root for that db (in privileges tab)
- Copy the wiki folder from back-up into the new htdocs folder.
- Change LocalSettings.php to reflect the new db username and password.
Maximum execution time exceeded
If you get Fatal error: Maximum execution time of xx seconds exceeded .. edit the file config.inc.php in folder phpMyAdmin and set $cfg['ExecTimeLimit'] = 0;
- Software bundles for AMPs with MediaWiki built in.
- Run Your Personal Wikipedia from a USB Stick, uses XAMPP
- NetBeans Guide to Installing and Configuring the XAMPP Package