Last updated June 6, 2011. Created by kimmel on June 6, 2011.
Log in to edit this page.

Most of the commands in this guide are to be run as root from the command line.

Install software packages

First you need to install the proper server packages which can be done via YaST2 or on the command line with zypper.

Apache web server:

zypper install apache2

MySQL database:

zypper install mysql-community-server

or Mariadb (a drop-in replacement for MySQL:

zypper install mariadb

PHP 5.3 and modules:

zypper install apache2-mod_php5 php5 php5-gd php5-ftp php5-mysql php5-pear php5-gettext php5-mbstring php5-mcrypt

Where are my config files?

Apache 2

  • Config files and modules: /etc/sysconfig/apache2
  • Default server config: /etc/apache2/default-server.conf
  • Config listening IP and port number: /etc/apache2/listen.conf
  • Server tuning: /etc/apache2/server-tuning.conf
  • Virtual Host config files: /etc/apache2/vhosts.d/*

MySQL/MariaDB:

  • /etc/my.cnf

PHP 5

  • mod_php Apache: /etc/php5/apache2/php.ini
  • PHP CLI: /etc/php5/cli/php.ini
  • Individual module configurations: /etc/php5/conf.d/*

Where are the applications?

  • The apache document root is: /srv/www/htdocs
  • The MySQL/Mariadb databases are in /var/lib/mysql
  • The PHP cli is in /usr/bin

Apache's startup script and basic usage

/etc/init.d/apache2 start
/etc/init.d/apache2 restart
/etc/init.d/apache2 stop
/etc/init.d/apache2 status

The MySQL/MariaDB startup script functions just like apache's:

/etc/init.d/mysql start
/etc/init.d/mysql restart
/etc/init.d/mysql stop
/etc/init.d/mysql status
  • Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.