I had to install a fresh linux distro and after unpacking the xampp bundle i did:
/opt/lampp/lampp start and got this:
- Code: Select all
XAMPP: SELinux is activated. Making XAMPP fit SELinux...
chcon: failed to change context of /opt/lampp/lib/mysql/libmysqlclient_r.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/mysql/libmysqlclient.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libapr-0.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libapr-1.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libapreq2.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libaprutil-0.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libaprutil-1.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libaprutil.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libc-client.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libcrypto.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libct.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libcurl.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libexpat.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libexslt.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libform.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libfreetype.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libgdbm.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libgd.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libgettextlib-0.11.5.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libgettextlib.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libgettextsrc-0.11.5.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libgettextsrc.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libintl.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libjpeg.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/liblber.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libldap_r.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libldap.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libmcrypt.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libmenu.so to root:object_r:texrel_shlib_t: Invalid argument
chcon: failed to change context of /opt/lampp/lib/libmhash.so to root:object_r:texrel_shlib_t: Invalid argument......
.........
and then it starts Apache, Mysql, and the FTP daemon.
This only happens one time.
If i stop the server and start it again, i no longer get this errors.
Also i have this problem:
Let's say my ip machine is 212.13.51.113, if i run this script
- Code: Select all
<?php
$server1 = "127.0.0.1";
$server2 = "212.13.51.113";
$user = "root";
$pass = "";
$con = mysql_connect($server1, $user, $pass) or die ("no mysql server");
if($con) echo "server is up";
mysql_close($con);
?>
with $server1 set, i get server up, if i use $server2 i get:
- Code: Select all
Warning: mysql_connect() [function.mysql-connect]: Host '212.13.51.113' is not allowed to connect to this MySQL server in /opt/lampp/htdocs/test/mysql.php on line 9
no mysql server
What could be the reason of this problems?
Thank you in advance.