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
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
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 (http://www.gjesdalbuane.no) 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!
Thanks, very useful article, I’ll try it today
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.
Ok, i found it. The folder named srv was generated, thats where the index file must be copied. Thank you for the tutorial.
the server index folder is linux distro dependent
where is the part how to configure PHP5 and Apache to run PHP code ?
should work automatically after a server restart
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.
Loopback servers like? Virtualisation?
I am getting exactly the message you mentioned. I am running an OpenSuse 11.4 distro. Do you have any suggestions?