Page 1 of 1

security fix problem

PostPosted: 16. December 2007 16:43
by friend223
hello people, I'm really new here.
I've just installed xampp 1.6.4 on ubuntu gutsy (linux). I got this error when starting:
Code: Select all
/opt/lampp/lampp: line 74: arch: command not found.

I fixed it by:
Code: Select all
replacing arch by uname -m in ligne 74 and sudo gedit /bin/arch "uname -m" and sudo chmod +x /bin/arch

now I start my server with:
Code: Select all
sudo /opt/lampp/lampp start

it works fine.
I start the security check with:
Code: Select all
sudo /opt/lampp/lampp security

Code: Select all
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes
XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...

It seems that mysql would be secured now, but the next time I checked it, it was just open again. So I got not no errors or warnings, but mysql still stays open via network.

PostPosted: 17. December 2007 12:06
by skuipers

PostPosted: 17. December 2007 17:34
by friend223
The second one is unsafe and has a red icon, "mysql is accessible from network". The other four have a green icon.
I get the hint to execute: "/opt/lampp/lampp security"

PostPosted: 19. December 2007 02:51
by TheMusicGuy
My situation is nearly identical to yours. (Using Ubuntu 7.10) The only difference is that instead of modifying a XAMPP script I put a script at /usr/local/bin.

/usr/local/bin/arch:
Code: Select all
#!/bin/sh
uname -m


I figured that if xampp needed the arch command there were bound to be other things that needed it as well. :)

I, too, am unable to make the MySQL-network-off thing work. But, you might want to look at this topic:
http://community.apachefriends.org/f/viewtopi ... l+security

I haven't tried it yet, but it looks good.