Posted in: Linux

Updating XAMPP for Linux

cd /opt/lampp

/opt/lampp/lampp stop

mv /opt/lampp /opt/lampp.old

./xampp-linux-5.5.19-0-installer.run –mode text #latest xampp version

/opt/lampp/lampp stop

rsync -av /opt/lampp.old/cgi-bin /opt/lampp/ –delete
rsync -av /opt/lampp.old/htdocs /opt/lampp/ –delete
rsync -av /opt/lampp.old/var/mysql /opt/lampp/var/ –delete

rsync -av /opt/lampp.old/phpmyadmin/config.inc.php /opt/lampp/phpmyadmin/
rsync -av /opt/lampp.old/etc/freetds.conf /opt/lampp/etc/freetds.conf
rsync -av /opt/lampp.old/etc/httpd.conf /opt/lampp/etc/httpd.conf
rsync -av /opt/lampp.old/etc/php.ini /opt/lampp/etc/php.ini
rsync -av /opt/lampp.old/etc/extra/httpd-ssl.conf /opt/lampp/etc/extra/httpd-ssl.conf
rsync -av /opt/lampp.old/etc/extra/httpd-userdir.conf /opt/lampp/etc/extra/httpd-userdir.conf
rsync -av /opt/lampp.old/etc/extra/httpd-vhosts.conf /opt/lampp/etc/extra/httpd-vhosts.conf
rsync -av /opt/lampp.old/etc/extra/httpd-xampp.conf /opt/lampp/etc/extra/httpd-xampp.conf
rsync -av /opt/lampp.old/etc/my.cnf /opt/lampp/etc/my.cnf

mv /opt/lampp.old/moodledata /opt/lampp/ #i use moodle

/opt/lampp/lampp start

/opt/lampp/lampp security

rm -rf /opt/lampp.old

Back to Top