Thursday, June 19, 2014

How to Install XAMPP in FEDORA LINUX

At this time, I do it in a little different way.
I download xampp-linux-1.8.3-4-installer.run file from xampp site.
So, I change permissions of this file, adding x to it. And I run in.

[root@thanatos Downloads]# ls -lrt
total 120124
-rw-rw-r--. 1 eider eider 123003340 Jun 19 15:37 xampp-linux-1.8.3-4-installer.run
[root@thanatos Downloads]# chmod +x xampp-linux-1.8.3-4-installer.run
[root@thanatos Downloads]# ./xampp-linux-1.8.3-4-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.

----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited)

XAMPP Developer Files [Y/n] :Y

Is the selection above correct? [Y/n]: Y

----------------------------------------------------------------------------
Installation Directory

XAMPP will be installed to /opt/lampp
Press [Enter] to continue :

----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: Y

----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.

[root@thanatos Downloads]#
[root@thanatos Downloads]# cd /opt/lampp
[root@thanatos lampp]# ls -l
total 10120
drwxr-xr-x.  5 root   root      4096 Jun 19 17:22 apache2
drwxrwxr-x.  2 root   root     12288 Jun 19 17:23 bin
drwxr-xr-x.  2 root   root      4096 Jun 19 17:23 build
drwxr-xr-x.  2 root   root      4096 Jun 19 17:22 cgi-bin
-rwxr-xr-x.  1 root   root     27372 Jun 19 17:22 ctlscript.sh
drwxr-xr-x.  2 root   root      4096 Jun 19 17:23 docs
drwxrwxr-x.  3 root   root      4096 Jun 19 17:22 error
drwxr-xr-x.  8 root   root      4096 Jun 19 17:23 etc
drwxr-xr-x.  5 root   root      4096 Jun 19 17:23 htdocs
drwxr-xr-x.  3 root   root      4096 Jun 19 17:23 icons
drwxr-xr-x.  2 root   root      4096 Jun 19 17:22 img
drwxr-xr-x. 20 root   root     12288 Jun 19 17:24 include
drwxr-xr-x.  2 root   root      4096 Jun 19 17:23 info
lrwxrwxrwx.  1 root   root        16 Jun 19 17:23 lampp -> /opt/lampp/xampp
drwxr-xr-x. 14 root   root     12288 Jun 19 17:24 lib
drwxr-xr-x.  2 root   root      4096 Jun 19 17:22 libexec
drwxr-xr-x.  2 root   root      4096 Jun 19 17:22 licenses
drwxr-xr-x.  2 daemon daemon    4096 Jun 19 17:24 logs
drwxr-xr-x.  7 root   root      4096 Jun 19 17:23 man
-rwx------.  1 root   root   3096815 Jun 10  2013 manager-linux.run
drwxr-xr-x. 14 root   root     12288 Jun 19 17:23 manual
drwxr-xr-x.  2 root   root      4096 Jun 19 17:24 modules
drwxr-xr-x.  3 root   root      4096 Jun 19 17:22 mysql
drwxr-xr-x.  2 root   root      4096 Jun 19 17:23 pear
drwxr-xr-x.  3 root   root      4096 Jun 19 17:22 php
drwxr-xr-x.  9 root   root      4096 Jun 19 17:23 phpmyadmin
drwxr-xr-x.  3 root   root      4096 Jun 19 17:22 proftpd
-rw-r--r--.  1 root   root       803 Jun 19 17:24 properties.ini
-rw-r--r--.  1 root   root     72812 Apr 10 05:44 RELEASENOTES
drwxr-xr-x.  2 root   root      4096 Jun 19 17:23 sbin
drwxr-xr-x. 45 root   root      4096 Jun 19 17:23 share
drwxrwxrwx.  2 daemon daemon    4096 Jun 19 17:22 temp
-rwx------.  1 root   root   6742795 Jun 19 17:25 uninstall
-rw-------.  1 root   root    244501 Jun 19 17:25 uninstall.dat
drwxr-xr-x.  6 root   root      4096 Jun 19 17:22 var
-rwxr-xr-x.  1 root   root     15201 Jul 22  2013 xampp
[root@thanatos lampp]# ./lampp status
Version: XAMPP for Linux 1.8.3-4
Apache is running.
MySQL is not running.
ProFTPD is not running.
[root@thanatos lampp]# ./lampp start
Starting XAMPP for Linux 1.8.3-4...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
[root@thanatos lampp]# ./lampp status
Version: XAMPP for Linux 1.8.3-4
Apache is running.
MySQL is running.
ProFTPD is running.
[root@thanatos lampp]#


[root@thanatos lampp]# cd /opt/lampp/etc/extra
[root@thanatos extra]# ls -l
total 68
-rw-r--r--. 1 root root  2865 Apr  9 09:16 httpd-autoindex.conf
-rw-r--r--. 1 root root  1777 Apr  9 09:16 httpd-dav.conf
-rw-r--r--. 1 root root  2943 Feb 29  2012 httpd-default.conf
-rw-r--r--. 1 root root  1119 Apr  9 09:16 httpd-info.conf
-rw-r--r--. 1 root root  5078 Apr  9 09:16 httpd-languages.conf
-rw-r--r--. 1 root root  1009 Apr  9 09:16 httpd-manual.conf
-rw-r--r--. 1 root root  4444 Feb 29  2012 httpd-mpm.conf
-rw-r--r--. 1 root root  2198 Apr  9 09:16 httpd-multilang-errordoc.conf
-rw-r--r--. 1 root root 11037 Jun 19 17:23 httpd-ssl.conf
-rw-r--r--. 1 root root   694 Apr  9 09:16 httpd-userdir.conf
-rw-r--r--. 1 root root  1451 Apr  9 09:16 httpd-vhosts.conf
-rw-r--r--. 1 root root  1696 Jun 19 17:23 httpd-xampp.conf
-rw-r--r--. 1 root root  3161 Apr  9 09:16 proxy-html.conf
[root@thanatos extra]# cp httpd-xampp.conf httpd-xampp.conf.backup
[root@thanatos extra]# cat httpd-xampp.conf
#<IfDefine PHP4>
#LoadModule php4_module        modules/libphp4.so
#</IfDefine>
#<IfDefine PHP5>
#LoadModule php5_module        modules/libphp5.so
#</IfDefine>

# We will enable it by default
#<IfDefine PHP>
   LoadModule php5_module        modules/libphp5.so
#</IfDefine>

LoadModule perl_module        modules/mod_perl.so

Alias /phpmyadmin "/opt/lampp/phpmyadmin"
Alias /phpsqliteadmin "/opt/lampp/phpsqliteadmin"

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require all granted
</Directory>

<Directory "/opt/lampp/phpsqliteadmin">
    AllowOverride AuthConfig Limit
    Require all granted
</Directory>

# since LAMPP 1.0RC1
AddType application/x-httpd-php .php .php3 .php4

XBitHack on

# since 0.9.8 we've mod_perl
<IfModule mod_perl.c>
        AddHandler perl-script .pl
        PerlHandler ModPerl::PerlRunPrefork
        PerlOptions +ParseHeaders
        PerlSendHeader On
</IfModule>

# demo for mod_perl responsehandler
#PerlModule Apache::CurrentTime
#<Location /time>
#      SetHandler modperl
#      PerlResponseHandler Apache::CurrentTime
#</Location>

# AcceptMutex sysvsem is default but on some systems we need this
# thanks to jeff ort for this hint
#AcceptMutex flock
#LockFile /opt/lampp/logs/accept.lock

# this makes mod_dbd happy - oswald, 02aug06
# mod_dbd doesn't work in Apache 2.2.3: getting always heaps of "glibc detected *** corrupted double-linked list" on shutdown - oswald, 10sep06
#DBDriver sqlite3

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
[root@thanatos extra]#

Using vi, I comment the dettached line. That's the final status:


[root@thanatos extra]# cat httpd-xampp.conf | tail -6
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        #Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
[root@thanatos extra]#

So, I restarted xampp and everything works fine:

[root@thanatos extra]# /opt/lampp/lampp restart
Restarting XAMPP for Linux 1.8.3-4...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
[root@thanatos extra]#


No comments:

Post a Comment

About Me

My photo
Leitor Compulsivo e Apaixonado