Strolen's World · Legacy archive

LAMP

Started by Strolen Jan 7, 2007 5 posts Locked

  1. LAMP

    #1
    http://humanlanguage.wordpress.com/

    Find a CMS you want to install:
    http://opensourceCMS.com/

    Your favorite CMS requires a particular version of LAMP.
    For example, osCommerce requires PHP4 + MySQL4. You will need to pick one of the following options.

    Apache2 + PHP4 + MySQL4:
    sudo apt-get install apache2 php4 mysql-client mysql-server phpmyadmin libapache2-mod-php4 libapache2-mod-auth-mysql php4-mysql

    Apache2 + PHP5 + MySQL4:
    sudo apt-get install apache2 php5 mysql-client mysql-server phpmyadmin libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql

    Apache2 + PHP5 + MySQL5:
    sudo apt-get install apache2 php5 mysql-client-5.0 mysql-server-5.0 phpmyadmin libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql

    Reboot or start Apache/MySQL this way:
    sudo /etc/init.d/apache2 start
    sudo /etc/init.d/mysql start

    Open phpmyadmin in your browser:
    http://localhost/phpmyadmin/

    Log into phpmyadmin:
    Name: root
    Password:

    If you need it, you can install the latest version of LAMP with XAMPP:
    http://humanlanguage.wordpress.com/install-xampp-on-ubuntu/
  2. Re: LAMP

    #2
    http://egharish.blogspot.com/2006/12/how-to-install-apache2-php5-and-mysql.html


    How to install Apache2, PHP5, and MySql on Ubuntu Dapper

    This howto will provide a straight forward instructions on how to install the following packages on Linux Ubuntu Dapper:

      1. Apache2
      2. MySql
      3. PHP5
      4. GD library for PHP5
      5. imagemagic for PHP5
      6. and, PhpMyAdmin

    First of all, you should make sure that you have added extra repositories to your repositories list. If you are not sure how to do that, please visit this Ubuntu Guide wiki in order to learn how you can do that.

    Once you have updated your repositories list, you can simply execute the following command and it should take care of installing everything for you.

    sudo apt-get install apache2 mysql-server php5 php5-gd php5-mysql id3v2 imagemagick libgd2-dev libgd2 php-auth phpmyadmin

    That is it. Now you should have Apache2, PHP5, Mysql etc installed on your machine.

    You should now restart your server and closely examine your server configurations.

    sudo /etc/init.d/apache2 restart

    To test your installation, open a command prompt and type the type the following

    sudo gedit /etc/var/www/index.php

    once gedit opens up, type the following and close the editor

    phpinfo();
    ?>

    Open your favourite web browser, and type the following in the address bar:

    http://localhost

    You should see PHPINFO and all the packages you have installed.

    Now, you should turn your attention to securing MySql database. To do this, open a command shell if you have not got one open already and type the following.

    mysql -u root

    Once you are in MySql prompt, change to MySql database by typing the following command.

    use mysql;

    Now, you should select all the users defined in the user's table by executing the following command.

    select user, host, password from user;

    By default, I had the following users:

      1. 'root'@'localhost'
      2. 'root'@'****', and
      3. 'debian-sys-maint'@'localhost'

    Personally, I have no use for the following user 'debian-sys-maint'@'localhost', and did not think that this account should be there any way, so, I removed it by executing the following command.

    drop user 'debian-sys-maint'@'localhost';

    As for the other two remaining accounts, I used the following command to set the new passwords:

    set password for 'root'@'localhost' = password( 'YOUR_NEW_PASSWORD' );

    Once you have set the passwords for all of your accounts, execute the following command in order for the new changes to take affect.

    flush privileges;

    That concludes this tutorial.

    If you have any questions, please contact me.

    Cheers :)
  3. Re: LAMP

    #3
    http://www.supriyadisw.net/?p=513

    Here are several steps to install Ubuntu Linux Desktop if you have not already done so.

        * First download and burn your own installation CD file from the Ubuntu Linux site or order a free CD from Shipit - Free CDs.
        * Second, try out your new Ubuntu Linux without changing anything on your computer by booting the installation CD. This is a great way to test compatibility with your computer.
        * Third, install Ubuntu Linux permanently on your computer by double-clicking the install icon on your temporary desktop.
            1. Download the Ubuntu Linux Desktop ISO CD image from the Ubuntu Linux site.
            2. Burn a bootable CD from the ISO CD image.
            3. Boot the CD on the target machine. Make sure the network is connected. If all is successful, Ubuntu Linux will start up in a fully functional friendly desktop environment. Experiment for a while if you like.
            4. Double-click on the installer icon on the desktop to permanently install Linux.
            5. Enter Name, Username, Password, and Time Zone. Set the clock if necessary. Choose automatic partition and format to erase the previous operating system.
            6. WARNING - This will wipe out everything on the target machine hard drive.
            7. Wait.
            8. Restart.
            9. Remove the CD to prevent starting over.
            10. Type Enter to boot.
            11. Login.

    Apache

    Install Apache

    sudo apt-get install apache2

    Testing HTTP Server by open a web browser and enter http://localhost
    PHP

    Install PHP5

    sudo apt-get install php5 libapache2-mod-php5

    Stop/Restart Apache

    sudo /etc/init.d/apache2 restart

    Test the installation

    sudo gedit /var/www/testphp.php

    Insert this following line into testphp.php file.



    Save this new file.
    Open a web browser and enter http://localhost/testphp.php
    Be sure to remove the file afterwards, as it may pose a security risk.

    sudo rm /var/www/testphp.php

    MySQL

    Install MySQL Server

    sudo apt-get install mysql-server

    MySQL initially only allows connections from the localhost (127.0.0.1). We’ll need to remove that restriction if you wish to make it accessible to everyone on the internet. Open the file /etc/mysql/my.cnf

    gksudo gedit /etc/mysql/my.cnf

    Find the line bind-address = 127.0.0.1 and comment it out then save the file.
    MySQL comes with no root password as default. This is a huge security risk. You’ll need to set one. So that the local computer gets root access as well, you’ll need to set a password for that too. The local-machine-name is the name of the computer you’re working on.

    mysqladmin -u root password newpassword
    mysqladmin -h root@local-machine-name -u root -p password newpassword
    sudo /etc/init.d/mysql restart

    MySQL Administrator

    Install MySQL Administrator

    sudo apt-get install mysql-admin

    Refresh Gnome Panel

    killall gnome-panel

    Run MySQL Administrator
    Applications -> System Tools -> MySQL Administrator
    MySQL for Apache HTTP Server

    sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

    To get PHP to work with MySQL, open the php.ini file

    gksudo gedit /etc/php5/apache2/php.ini

    You’ll need to uncomment the “;extension=mysql.so” line so that it looks like this

    extension=mysql.so

    Restart Apache

    sudo /etc/init.d/apache2 restart

    Well done!
  4. Re: LAMP

    #4
    sudo apt-get install apache2 php5 php5-gd mysql-client mysql-server phpmyadmin libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql id3v2 imagemagick libgd2-xpm php-auth
  5. Re: LAMP

    #5
    Creating config file /etc/phpmyadmin/apache.conf with new version

    Creating config file /etc/phpmyadmin/config.footer.inc.php with new version

    Creating config file /etc/phpmyadmin/config.header.inc.php with new version

    Creating config file /etc/phpmyadmin/config.inc.php with new version

    Creating config file /etc/phpmyadmin/htaccess with new version

Strolen's World · All categories · Guildhall