How to Enable ZIP Extension for PHP on Linux – Ubuntu – ZIP.SO – PHP.INI – Efront – XAMPP/LAMPP
Download XAMMP from:
That contains Apache 2.4.3, MySQL 5.5.27, and PHP 5.4.7.
Follow instructions on the site (All it takes is just download and unzip into /opt/lampp. It’s pre-compiled).
For Apache, you might want to update the root directory of the http server to “/opt/lampp” (edit /opt/lampp/etc/httpd.conf and make sure the following path in the file is correct ServerRoot “/opt/lampp”).
Enable zip extension for php with apache by:
1- Un-commenting zip.so in /opt/lampp/etc/php.ini. (The latest version of XAMPP, as of this article, is compiled with zip support for PHP but you need to follow the few steps mentioned here to enable it and make it work).
2- Un-commenting and updating the path of the extension_dir in php.ini (extension_dir = “/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525”)
3- Downloading zip.so into the Extension Dir.
You can download the modified php.ini, httpd.conf and the zip.so described above here:
Clear browser cache.
Stop and start XAMPP
Now you can download efront and unzip into /opt/lampp/efront..
If you find this section helpful, please send us a note to Mike@bostonIT.com so I can keep on adding quality hands-on articles.