Tuesday, March 5, 2013

to install xampp in linux

Download XAMPP

 

wget http://biznetnetworks.dl.sourceforge.net/project/xampp/XAMPP%20Linux/1.7.3a/xampp-linux-1.7.3a.tar.gz 
 
 

Extract XAMPP

 

tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt 
 
 

Start XAMPP

 

/opt/lampp/lampp start 
 
 

To stop it, open a terminal and type this:

 

/opt/lampp/lampp stop 
 
 

 check

http://localhost
 To fix most of the security weaknesses simply call the following command:
 Open /etc/rc.local using command
 vi /etc/rc.local 
 Add the following line in at end of the file
 /opt/lampp/lampp start 
 
 
 
One more problem again xampp is only able to run in32 bit os for a 64 bit os need to install 32 bit libraries,
 
so go for below steps,
 
yum -y install glibc* libstd* ld-linux.so.2
 
tar zxvf xampp-linux-1.8.1.tar.gz
mv ./lampp /opt/
 change the owner ship to nobody: root
chown nobody:root /opt/lampp/ -R
XAMPP was designed to run on 32 bit operating systems. The start up script will prevent xampp from starting up if you are running on a 64 bit system which isn’t necessary since you installed 32 bit compatibility libraries in step 1. To get around this restriction, open /opt/lampp/lampp in an editor and comment out the following lines.  
# XAMPP is currently 32 bit only
#case `uname -m` in
# *_64)
#   if /opt/lampp/bin/php -v > /dev/null 2>&1
#   then
#      :
#   else
#      $de && echo "XAMPP gibt es zur Zeit nur als 32-Bit Applikation.
#      Bitte verwende eine 32-Bit Kompatibilitaetsbibliothek fuer Dein
#      System."
#
#      $de || echo "XAMPP is currently only availably as 32 bit
#      application. Please use a 32 bit compatibility library for
#      your system."
#
#   exit
#   fi
#   ;;
#esac
 
 
 
 
 
  1. Open /opt/lampp/etc/etc/extra/httpd-xampp.conf in an editor.
  2. Replace the “Deny from all” statement with “Require all grant” in the <LocationMatch> stanza.  You can also comment out the “Allow from…” line if you don’t want to accept connections from any external system. 
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|
                               server-status|server-info))">
    Order deny, allow
#   Deny from all
    Require all granted
#   Allow from ::1 127.0.0.0/8 \
#      fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
#      fe80::/10 169.254.0.0/16
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
 
 Start up xampp
/opt/lampp/lampp start
Open http://localhost in a browser. You should a get a browser window with the XAMPP for Linux startup screen:
  1. At this point most of the setup work for XAMPP is done.  However, if you plan to use phpyMyAdmin you’ll have to do a little further configuration to get it to work properly.
  2. XAMPP does not create all the tables that phpmyadmin needs so you have to do this with an SQL script that is enclosed with the package. To do this click on the Import tab in the toobar at the top of the screen.
  3. Click on the Choose button in the File to import section.
 Choose the create_tables.sql script in /opt/lampp/lampp/phpmyadmin/examples directory.
  1. Click on the Go button in the Format of imported file to run the script which will add all the tables you need to the phpmyadmin database.
  2. Open /opt/lampp/lampp/phpmyadmin/config.inc.php in your editor of choice.
  3. Change $cfg['Servers'][$i]['auth_type'] from ‘config’ to ‘cookie which will create a login page for future phpmyadmin sessions.
    $cfg['Servers'][$i]['auth_type'] = 'cookie'
  4. Add the following lines in the config.inc.php file.
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';
    $cfg['Servers'][$i]['recent'] = 'pma_recent';
  5. To set a root password for phpmyadmin click on the Users tab in the XAMPP Control Panel toolbar.
  20.Click on the edit icon in the column to the right on the User Overview table for the root account on localhost.

Click on the Password radio button in the Change password section of the Edit Privileges: User ‘root’@'localhost’ page.



  1.  Enter the new password then re-type the password.
  2.  Click on the Go button to save the new password.
  3. Close your browser then restart Apache and MySQL in the XAMPP Control Panel.
    /opt/lampp/lampp restart
  4. Open phpMyAdmin in your browser.  This time you’ll be take to a phpMyAdmin login screen.
  5. Login as root using password you set in step 21.
If everything went well you’ll go to the phpMyAdmin main screen and see a green Exit icon under the phpMyAdmin frame on the left side of the screen.  You can now create other databases and tables with phpMyAdmin.

if any doubt refer:

http://vichargrave.com/how-to-install-xampp-on-linux-step-by-step/
 
 

 

 
 
 
 

No comments:

Post a Comment