utorak, 22. ožujka 2011.

apache and Mysql setup on openSuSE.

As openSuSE likes to effing complicate things, and since I'm forced to use the goddamn system instead of Ubuntu (thank you very much, ansys), here's how to start and set up the apache and mysql servers and of course phpmyadmin.

LAMP installation has been done automatically during the openSuSE installation; so what remains is to:

1.
Download phpmyadmin from the official site, unpack it, rename to phpmyadmin and save it to /srv/www/htdocs/. You'll neeed to start Dolpin with kdesu, or you won't be able to save stuff.

3.
Start the apache server (use start, here are other commands you might also need):
sudo /etc/init.d/apache2 start|stop|reload|restart|configtest

4.
Start the mysql server:
sudo /etc/init.d/mysql start

5.
Setup mysql password:
sudo mysqladmin -u root password mypassword

6.
Edit the php.ini file. This is fuzzy, because there are two, but I think I figured out the main file you need to edit is:
kdesu kwrite /etc/php5/apache2/php.ini


This is pretty much it, except the goddamn servers won't start on boot, I still have to figure that one out. Ass(es).

Nema komentara: