Sunday, June 29, 2014

How to configure a service to be automatically started at boot time

To configure a service to be automatically started at boot time

In this example, we'll configure sshd daemon to start at boot time
[root@merope ~]# chkconfig
NetworkManager  0:off   1:off   2:on    3:on    4:on    5:on    6:off
abrtd           0:off   1:off   2:off   3:on    4:off   5:on    6:off
atd             0:off   1:off   2:off   3:on    4:on    5:on    6:off
auditd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
avahi-daemon    0:off   1:off   2:off   3:on    4:on    5:on    6:off
bluetooth       0:off   1:off   2:off   3:on    4:on    5:on    6:off
cpuspeed        0:off   1:on    2:on    3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
cups            0:off   1:off   2:on    3:on    4:on    5:on    6:off
dnsmasq         0:off   1:off   2:off   3:off   4:off   5:off   6:off
firstboot       0:off   1:off   2:off   3:off   4:off   5:off   6:off
haldaemon       0:off   1:off   2:off   3:on    4:on    5:on    6:off
httpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off
ip6tables       0:off   1:off   2:on    3:on    4:on    5:on    6:off
iptables        0:off   1:off   2:on    3:on    4:on    5:on    6:off
irda            0:off   1:off   2:off   3:off   4:off   5:off   6:off
irqbalance      0:off   1:off   2:off   3:on    4:on    5:on    6:off
iscsi           0:off   1:off   2:off   3:on    4:on    5:on    6:off
iscsid          0:off   1:off   2:off   3:on    4:on    5:on    6:off
livesys         0:off   1:off   2:off   3:on    4:on    5:on    6:off
livesys-late    0:off   1:off   2:off   3:on    4:on    5:on    6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
mdmonitor       0:off   1:off   2:on    3:on    4:on    5:on    6:off
messagebus      0:off   1:off   2:on    3:on    4:on    5:on    6:off
microcode_ctl   0:off   1:off   2:on    3:on    4:on    5:on    6:off
multipathd      0:off   1:off   2:off   3:off   4:off   5:off   6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off
netplugd        0:off   1:off   2:off   3:off   4:off   5:off   6:off
network         0:off   1:off   2:off   3:off   4:off   5:off   6:off
nscd            0:off   1:off   2:off   3:off   4:off   5:off   6:off
ntpd            0:off   1:off   2:off   3:off   4:off   5:off   6:off
ntpdate         0:off   1:off   2:off   3:off   4:off   5:off   6:off
openvpn         0:off   1:off   2:off   3:off   4:off   5:off   6:off
portreserve     0:off   1:off   2:on    3:on    4:on    5:on    6:off
psacct          0:off   1:off   2:off   3:off   4:off   5:off   6:off
rdisc           0:off   1:off   2:off   3:off   4:off   5:off   6:off
restorecond     0:off   1:off   2:off   3:off   4:off   5:off   6:off
rsyslog         0:off   1:off   2:on    3:on    4:on    5:on    6:off
saslauthd       0:off   1:off   2:off   3:off   4:off   5:off   6:off
sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
smolt           0:off   1:off   2:off   3:off   4:off   5:off   6:off
sshd            0:off   1:off   2:off   3:off   4:off   5:off   6:off
udev-post       0:off   1:on    2:on    3:on    4:on    5:on    6:off
vsftpd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
wpa_supplicant  0:off   1:off   2:off   3:off   4:off   5:off   6:off
xinetd          0:off   1:off   2:off   3:on    4:on    5:on    6:off

xinetd based services:
        chargen-dgram:  off
        chargen-stream: off
        daytime-dgram:  off
        daytime-stream: off
        discard-dgram:  off
        discard-stream: off
        echo-dgram:     off
        echo-stream:    off
        rsync:          off
        tcpmux-server:  off
        telnet:         on
        time-dgram:     off
        time-stream:    off

[root@merope ~]# chkconfig | grep -i ssh
sshd            0:off   1:off   2:off   3:off   4:off   5:off   6:off

[root@merope ~]# chkconfig sshd on

[root@merope ~]# chkconfig | grep -i ssh
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off


[root@merope ~]#

Friday, June 27, 2014

How to Backup and Restore a MySQL database using mysqldump

How to Backup and Restore a MySQL database using mysqldump

## To dump the database "javauser" at server sisifo:
[javauser@sisifo MYSQL]$ mysqldump -u root -padm3FEDORA javauser > sisifo_javauser_dump.sql
[javauser@sisifo MYSQL]$

## Transferring the dump file sisifo_javauser_dump.sql from server sisifo to server thanatos:
[javauser@sisifo MYSQL]$ sftp javauser@thanatos
Connecting to thanatos...
sftp> put sisifo_javauser_dump.sql
Uploading sisifo_javauser_dump.sql to /home/javauser/sisifo_javauser_dump.sql
sisifo_javauser_dump.sql                                                                                                              100%   21MB  21.3MB/s   00:01
sftp> quit

[javauser@sisifo MYSQL]$

## To restore the database "javauser" at server thanatos, using this file sisifo_javauser_dump.sql:
mysql> use javauser;
Database changed

mysql> source  sisifo_javauser_dump.sql

Friday, June 20, 2014

How to establish a trust relationship for ssh connection between two Linux servers

How to establish a trust relationship for ssh connection between two Linux servers
Server sisifo will access the server thanatos by using a ssh connection.

Step 1: Generate public key on the source server (sisifo)

[javauser@sisifo ~]$ cd .ssh
[javauser@sisifo .ssh]$ ls -la
total 28
drwx------.  2 javauser javauser  4096 2010-08-31 10:47 .
drwxrwx---. 65 javauser javauser 20480 2014-06-20 11:18 ..
-rw-r--r--.  1 javauser javauser  3164 2014-06-19 20:33 known_hosts
[javauser@sisifo .ssh]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/javauser/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/javauser/.ssh/id_rsa.
Your public key has been saved in /home/javauser/.ssh/id_rsa.pub.
The key fingerprint is:
81:f3:df:6d:b1:43:e9:5a:2f:8f:67:5d:12:58:68:a1 javauser@sisifo
The key's randomart image is:
+--[ RSA 2048]----+
|            .o   |
|       .   .o .  |
|      o . E. o   |
|       o .  . .. |
|        S     +. |
|         . . +.o.|
|          . . B.o|
|             +.++|
|            . .=o|
+-----------------+
[javauser@sisifo .ssh]$ ls -la
total 36
drwx------.  2 javauser javauser  4096 2014-06-20 13:42 .
drwxrwx---. 65 javauser javauser 20480 2014-06-20 11:18 ..
-rw-------.  1 javauser javauser  1675 2014-06-20 13:42 id_rsa
-rw-r--r--.  1 javauser javauser   397 2014-06-20 13:42 id_rsa.pub
-rw-r--r--.  1 javauser javauser  3164 2014-06-19 20:33 known_hosts
[javauser@sisifo .ssh]$

Step 2: Move the file id_rsa.pub to server thanatos (target) and rename it as authorized_keys at the directory ~/.ssh

[javauser@thanatos .ssh]$ sftp javauser@sisifo
javauser@sisifo's password:
Connected to sisifo.
sftp> cd .ssh
sftp> get id_rsa.pub
Fetching /home/javauser/.ssh/id_rsa.pub to id_rsa.pub
/home/javauser/.ssh/id_rsa.pub               100%  397     0.4KB/s   00:00
sftp> quit
[javauser@thanatos .ssh]$ ls -l
total 8
-rw-r--r--. 1 javauser javauser 397 Jun 20 14:49 id_rsa.pub
-rw-r--r--. 1 javauser javauser 401 Jun 20 11:03 known_hosts
[javauser@thanatos .ssh]$ mv id_rsa.pub authorized_keys
[javauser@thanatos .ssh]$ ls -l
total 8
-rw-r--r--. 1 javauser javauser 397 Jun 20 14:49 authorized_keys
-rw-r--r--. 1 javauser javauser 401 Jun 20 11:03 known_hosts
[javauser@thanatos .ssh]$ pwd
/home/javauser/.ssh
[javauser@thanatos .ssh]$

Step 3: Everything will work fine !!!

[javauser@sisifo .ssh]$ ssh javauser@thanatos
Last login: Fri Jun 20 13:26:09 2014
[javauser@thanatos ~]$

Hint 1: Remember that directory .ssh shoud have 700 as permissions. 
If not, change permissions with "chmod 700 .ssh"

[javauser@thanatos ~]$ ls -la | grep ssh
drwx------.  2 javauser javauser  4096 Jun 20 14:49 .ssh
[javauser@thanatos ~]$

Hint 2: In order to add other servers, do not move (mv) id_rsa.pub to authorized_keys but append it.
cat id_rsa.pub >> authorized_keys

For example, adding another server (merope) to access thanatos:

[javauser@merope ~]$ hostname ; pwd
merope
/home/javauser
[javauser@merope ~]$ cd .ssh
[javauser@merope .ssh]$ ls -l
total 4
-rw-r--r--. 1 javauser javauser 403 2014-06-20 13:10 known_hosts
[javauser@merope .ssh]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/javauser/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/javauser/.ssh/id_rsa.
Your public key has been saved in /home/javauser/.ssh/id_rsa.pub.
The key fingerprint is:
3a:ef:0f:38:5f:01:0e:39:b8:94:21:72:07:07:79:3a javauser@merope
The key's randomart image is:
+--[ RSA 2048]----+
|. =++            |
| o.+.+ .         |
|   o+ + .        |
|  E. . + .       |
|   ..   S .      |
|       o   .     |
|      = . .      |
|       = o       |
|       .+..      |
+-----------------+
[javauser@merope .ssh]$ ls -lrt
total 12
-rw-r--r--. 1 javauser javauser  403 2014-06-20 13:10 known_hosts
-rw-r--r--. 1 javauser javauser  397 2014-06-20 15:07 id_rsa.pub
-rw-------. 1 javauser javauser 1675 2014-06-20 15:07 id_rsa
[javauser@merope .ssh]$ sftp javauser@thanatos
Connecting to thanatos...
javauser@thanatos's password:
sftp> cd .ssh
sftp> put id_rsa.pub merope_id_rsa.pub
Uploading id_rsa.pub to /home/javauser/.ssh/merope_id_rsa.pub
id_rsa.pub                                                                                                                            100%  397     0.4KB/s   00:00
sftp> quit
[javauser@merope .ssh]$


[javauser@thanatos .ssh]$ hostname ; pwd
thanatos
/home/javauser/.ssh
[javauser@thanatos .ssh]$ cat merope_id_rsa.pub >> authorized_keys
[javauser@thanatos .ssh]$

[javauser@merope ~]$ hostname
merope
[javauser@merope ~]$ ssh javauser@thanatos
Last login: Fri Jun 20 14:55:44 2014 from sisifo
[javauser@thanatos ~]$

Hint 3: The home directory at target server must have permissions 700 or you will not be able to connect without password.

[root@sisifo home]# ls -l | grep javauser
drwxrwx---. 65 javauser  javauser    20480 2014-06-20 15:39 javauser
[root@sisifo home]# chmod 700 javauser
[root@sisifo home]# ls -l | grep javauser
drwx------. 65 javauser  javauser    20480 2014-06-20 15:39 javauser
[root@sisifo home]#




Thursday, June 19, 2014

How to install Java ( JDK ) on Linux Fedora

01) Download file from Oracle site:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
(In my case, the select file was jdk-8u5-linux-i586.tar.gz because my Fedora is 32 bits).

02) As root user, create directory /usr/java and move the file to this new directory.

[root@thanatos java]# pwd
/usr/java
[root@thanatos java]# ls -lrt
total 156164
-rw-r--r--. 1 root root 159910666 Jun 19 19:58 jdk-8u5-linux-i586.gz
[root@thanatos java]#

03) Uncompress the file.

[root@thanatos java]# gunzip jdk-8u5-linux-i586.gz
[root@thanatos java]# ls -lrt
total 321008
-rw-r--r--.  1 root root 328704000 Jun 19 19:58 jdk-8u5-linux-i586
[root@thanatos java]#

04) Due to a lack in Oracle site, uncompressed file does not have .tar extension. No problem, untar it using "tar -xvf". Since I have obsessive compulsive disorder, I changed the file name to put the extension .tar before untaring it.
[root@thanatos java]# mv jdk-8u5-linux-i586 jdk-8u5-linux-i586.tar
[root@thanatos java]# tar -xvf jdk-8u5-linux-i586.tar
jdk1.8.0_05/
jdk1.8.0_05/src.zip
jdk1.8.0_05/lib/
jdk1.8.0_05/lib/ir.idl
... supressed lines ...
jdk1.8.0_05/db/bin/setNetworkServerCP.bat
jdk1.8.0_05/db/bin/stopNetworkServer.bat
jdk1.8.0_05/db/README-JDK.html
[root@thanatos java]#

05) In order to save disk space, remove tar file.

[root@thanatos java]# ls -lart
total 321012
drwxr-xr-x.  8   10  143      4096 Mar 18 05:03 jdk1.8.0_05
-rw-r--r--.  1 root root 328704000 Jun 19 19:58 jdk-8u5-linux-i586.tar
drwxr-xr-x. 12 root root      4096 Jun 19 19:59 ..
drwxr-xr-x.  3 root root      4096 Jun 19 20:04 .
[root@thanatos java]# rm jdk-8u5-linux-i586.tar
rm: remove regular file ‘jdk-8u5-linux-i586.tar’? y
[root@thanatos java]#

06) Edit /etc/profile in order to set the new java directory for all users, by including these lines at the file:

[root@thanatos bin]# vi /etc/profile

#Line to be added (please, correct for newest versions of Java).
export JAVA_HOME=/usr/java/jdk1.8.0_05
export PATH=$JAVA_HOME/bin:$PATH

07) To be continued... 
I know that there is an issue about running java classes from crontab, because .profile is not read.

MySQL Error Number 1130 - Host is not allowed to connect to this MySQL server


You need to grant access to the IP Address from which you are trying to access MySQL. To do this, open a Terminal at your Linux Server, access mysql by command line and do that.

[javauser@thanatos ~]$ /opt/lampp/bin/mysql -u root -h localhost
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.6.16 Source distribution

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cdcol              |
| mysql              |
| performance_schema |
| phpmyadmin         |
| test               |
+--------------------+
6 rows in set (0.00 sec)

mysql> create database javauser;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL ON javauser.* TO 'root'@'10.80.122.16' IDENTIFIED BY 'my_root_password';
Query OK, 0 rows affected (0.00 sec)

mysql>

Now, everything works fine !!!


Linux Fedora - Editing PATH and other variables at .bash_profile


$ vi ~/.bash_profile

[javauser@thanatos ~]$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

# Added by Eider - June, 19 2014
PATH=$PATH:/opt/lampp/bin:$HOME/bin
export PATH
export JAVA_HOME=$JAVA_HOME:$HOME/classes

alias h='history'

[javauser@thanatos ~]$

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]#


About Me

My photo
Leitor Compulsivo e Apaixonado