openSUSE LAMP

LAMP is short for Linux, Apache, MySQL, PHP, or in other words the standard open source, web platform. In the case of openSUSE the default is to use MariaDB (Welcome to MariaDB! - MariaDB) which is an open source fork of MySQL, and designed to be a drop in replacement, so it is very compatible.

There is documentation on LAMP from the openSUSE team at SDB:LAMP setup - openSUSE. However I roughly did the following:

Apache

  • SDB:Apache installation - openSUSE
  • sudo rcapache2 start
  • sudo chkconfig -a apache2
  • sudo apache2ctl -M #lists apache modules
  • sudo vi /etc/sysconfig/apache2
  • add rewrite to end of APACHE_MODULES list
  • sudo rcapache2 restart
  • sudo apache2ctl -M lists apache modules
  • create group webadmin with group add
  • Add user and root to webamdin group with usermod command
  • cd /srv/www
  • sudo chown -R root:webadmin htdocs
  • sudo chmod -R 775 htdocs
  • Logout and Login again to make group membership change take effect
MariaDB
  • sudo systemctl start mysql.service
  • Installed "mysql-workbench" for a GUI