Install & Configure LAMP (Apache/MySQL/PHP) in openSUSE 11.0

75 Comments

  1. Well done, exactly what the doctor ordered 🙂

  2. can’t install mysql-tools

  3. Author

    any details? errors?

  4. Tryed yast2 –install mysql-tools
    but it can’t find it

  5. Author

    There is a formatting issue on this website “–” reads as one single”-”

    Try this

    yast2 –i mysql-tools

  6. I keep on getting this
    Following packages haven’t been found on the medium:
    mysql-tools


  7. Here’s another thank you – I kept running into this problem with phpMyAdmin after installing – didn’t know what the problem was. Creating the config.inc.php as suggested here finally makes it work!

  8. Very helpful post. Used YAST2 LAMP pattern directly rather than install. Otherwise only phpMyAdmin is not on Suse 11.0 demo DVD. Therefore this administration looks like a personal favorite and is downloaded separately? Overall this was a real assist for novice users.

  9. Thanks for the post. I have followed every step suggested for installation, and every systems, Apache2, MySQL, and PHP, seemed to work just fine. However, my PHP code has problem connecting to MySQL using mysql_connect() function. There were no error message even if I turn the “display_error” ON in the php.ini file. Can anybody suggest some directions I may follow, or something I have to check to solve the problem. Thanks.

  10. All but the root password sets correctly for me.
    I do the line and it gives me a new line with ‘Enter password:’ on it.
    It just stops dead there though I can get into everything since it has
    no password defined. Might add that this worked flawlessy on ubuntu with
    a bit of editing of apache2.conf and php.ini but neither here in OpenSuSE 11
    has been mentioned. I look into php.ini but couldn’t find the line with
    extension = mysql.so
    to uncomment to make sure it connects to it and neither did I find
    apache2.conf to add Include phpadmin/apache.conf

    It’s on a server that’s runs locally but still nice to have it working
    properly

  11. ho seguito la guida ma quando arrivo ad attivare apache con il comando rcapache2 start mi da questo errore :

    Starting httpd2 (prefork) (98)Address already in use: make_sock: could not bind to address [::]:80
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1

  12. Same problem as Werner with the setting of the root password using
    mysqladmin -u root -p password
    I can’t set the password:

    Enter password:
    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Access denied for user ‘root’@’localhost’ (using password: YES)’

    How can I work around this?

  13. I was also getting the root password setting problem.
    I have a MySQL book by Paul DuBois for MySQL4, and I tried typing in
    mysqladmin -h localhost -u root password "rootpass"
    and it worked.

    Give it a try.

  14. Funciono a la perfeccion. Gracias

    It did work perfectly. Thank you very much.

  15. Hi! Thank you very much! It it the best ‘HowTo install LAMP’ I’ve seen so far!

  16. To correctly set the MySQL password enter the command:

    set password = password(“yournewpassword”);

    Enter this command at the mysql> prompt.

  17. thx .. merci super vraiment bien
    nice thank

  18. Thank you very much this was very helpful the most helpful I have run into
    GodBless you and the OpenSource community

  19. Perfect one. Thankyou very much.

  20. Hi there.

    whenever I tried to install either mysqhl or php I get the following message:

    – Cannot determine type for repository factory-non-oss.

    and later on it says it can’t find the mysql mysql-tools or certain php-tools, which means it doesn’t install mysql at all, I’m not sure about php.

    Also, when I open the web browser, going to http://localhost/ it would say access denied also I tried to change the rights with chmod… Because of that I also can’t add any files – only as root, but I was too frustrated to lear how vi works.

    Thanks in advance

  21. While installing mysql I typed my password wrong and I couldn’t crack it. I have done this before, so can you send me the code to crack?

  22. i ‘ve installed apache2 server, but i get the following error when trying to run

    linux-fk7c:/srv/www/htdocs # rcapache2 start

    code>
    Module “include” is not installed, ignoring.
    Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
    Module “log_config” is not installed, ignoring.
    Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
    Starting httpd2 (prefork) Syntax error on line 11 of /etc/apache2/mod_log_config.conf:
    Invalid command ‘LogFormat’, perhaps misspelled or defined by a module not included in the server configuration

    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
    [/code]

    Did i forget to install something?

    when i check for status i get:

    [code]

    linux-fk7c:/srv/www/htdocs # rcapache2 status
    Checking for httpd2: unused

    [/code]

    [/code]

  23. Author

    @Toni: You are missing the mod_include, mod_log_config apache modules. Installing that should fix the problem.

  24. Hi guys,
    I tried to follow the guide to install LAMP on SLES10 but I’ve some problems.
    I can’t install the mysql-tools and the phpMyAdmin.

    I tried so:
    yast2 -i mysql-tools / the error is that the following package haven’t found on the medium.

    yast2 -i phpMyAdmin / Same error like above

    Thank you all!

  25. Use XAMPP, much more easier to install and use.

  26. No thanks, I prefer to use LAMP 😉

    However I found a solution 🙂
    Thx all

    Bye,

  27. I*ve installed apache2 and php5 but when e try rcmysql status after i*ve used yast2 -i mysql-tools
    in screen appears rcmysql not found please can you help me because i realy need to install mysql

  28. I followed the exact steps as mentioned. The three packages – mysql-tools and apache2-mod-php5 and phpMyAdmin are not found on the DVD. so I downloaded the two apache2-mod-php5 and phpMyAdmin.

    I can see the index.html on local host,phpMyAdmin is fine and mysql is also fine. Everything is ok till now.
    But when added some php code in the index.html I am not getting those displayed in the output. Following is the index.html content

    testing

    Could you please help me admin ? Do i need to do some extra configuration for php?

  29. A small correction for above post. I tried to provide the html code but it seems it will not work here. So just for information I used the ?” for php code.

  30. Thanks a lot.
    Very straight forward.

    Best of its kind.

  31. newbie here:

    i get this error.

    administrator@zion:~> yast2 -install apache2
    bash: yast2: command not found

  32. Author

    @xpd: Use “yast2 –install apache2” (note two “-” before install)

    or

    use “yast2 -i apache2”

  33. Hi, I get an error message “Media is not accessible”. Does it mean that apache2 is not a part of my SuseLinux 11.0 installation? Where do I find Apache2 download for this SuseLinux version?

  34. mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Access denied for user ‘root’@’localhost’ (using password: YES)’

  35. great site and many thanks to Admin and all the other posts.The mysql password and the revised install post where great.

    But….

    Have not found the phpMyAdmin.
    Tried both yast2 -i phpMyadmin and using the yast GUI.
    is there a site to download just that?

    Dario, what was your solution?

    thanks again!

  36. got phpmyadmin going.Download from the php site.

    Still getting access forbidden message when i tried the http://local/phpmyadmin thing.

    good old error 403

  37. hey when i start apache server..it’ll giv error

    linux-aqop:~ # rcapache2 start
    Starting httpd2 (prefork) /usr/sbin/httpd2-prefork: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
    failed
    pls help me


  38. hello sir

    Thank u so much for helping me out
    this is a very good posting

  39. Hello Guys.

    I don’t understand the workflow like this:

    change the directory from follows:

    “This installs phpMyAdmin and setup a website at /srv/www/htdocs/phpMyAdmin directory. Change directory and use the sample config file to quickly setup phpMyAdmin.

    opensuse11:~ # cd /srv/www/htdocs/phpMyAdmin
    opensuse11:~ # cp config.sample.inc.php config.inc.php

    Edit the file and look for

    $cfg[‘blowfish_secret’] = ‘mysqladmin’;

    Enter a value for blowfish secret (I’ve set it to mysqladmin here)

    Thats done and has the default configs on it. Logon to phpMyAdmin from http://localhost/phpMyAdmin with the MySQL root username and password.

    1.) edit? how? in a terminal? I’ve done this local, but i think that isn’t it.

    2.)In the Browser at http://localhost/phpMyAdmin….. I can’t type in the user or password

    Thank in advance for your help


  40. …worked great! Except that I also needed to install

    # yast2 --install php5-mcrypt php5-mbstring
    # rcapache2 restart

    Thanks for the tutorial! I had this knocked out during lunch!

  41. can i know where the location to store the data for database we created in phpPgAdmin/postgresql server?

  42. is it here :/var/lib/mysql/ ? if yes, why my database that i created using phpPgAdmin doesn’t show in that directory? anyone can help?

Leave a Reply

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