OpenSuSE 11.4 LAMP installation guide

The following guide demonstrates how to install Apache 2.2, PHP 5.3 and MySQL 5.1 in OpenSuSE linux version 11.4.

I will not guide you through the installationsteps, so I start  after booting the machine and logging in.

You have to be logged in as root (using the sudo command).

By entering the following code into the commandline you install MySQL, Apache, PHP and the basic/required third party modules.

yast2 -i mysql mysql-community-server mysql-client perl-DBD-mysql perl-DBI perl-Data-ShowTable
chkconfig --add mysql
/etc/init.d/mysql start
yast2 -i apache2 apache2-devel apache2-mod_perl apache2-mod_php5 apache2-prefork perl-HTML-Parser perl-URI perl-libwww-perl php5 php5-devel zlib zlib-devel
yast2 -i ImageMagick curl
yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm
chkconfig --add apache2
/etc/init.d/apache2 start

10 thoughts on “OpenSuSE 11.4 LAMP installation guide”

  1. Thank you for the LAMP on OpenSUSE 11.4 tip!
    I had to add runlevel 2 to the network service, otherwise “chkconfig –add mysql” failed, but with that addition I now have a LAMP server without having to install XAMPP. I like XAMPP, but I want a minimal local server for the local archery club ( in order to use a competition management system created for the Italian Archery Association and shared in good free software spirit. I have tried several times before without success. Now it’s working!

  2. im new to linux and i could not figure out in which directory goes the index.html file? Right now, the server works, but when I access localhost, then there is 403 error.

  3. Ok, i found it. The folder named srv was generated, thats where the index file must be copied. Thank you for the tutorial.

  4. Hi,
    where is the part how to configure PHP5 and Apache to run PHP code ?

  5. Great script. However, be advised there is a problem on loopback servers with Apache 2 and Suse 11, Error 403. I have seen may threads, but very few resolutions that worked.

    1. Jausan,
      I am getting exactly the message you mentioned. I am running an OpenSuse 11.4 distro. Do you have any suggestions?


Leave a Reply

Your email address will not be published. Required fields are marked *