games and code code it, play it
XAMPP on Ubuntu
May 18th, 2008

XAMPP is a software bundle consisting of Apache web server, MySQL database server and PHP hypertext processor. XAMPP is the easiest way to start with web development. It’s easy to install, just follow instruction on it’s web page. Unfortunately, on Ubuntu it doesn’t work immediately. When starting, I got some error message:”<code>arch: command not found</code>”. Lampp expects this command to be available but it isn’t in Ubuntu. Instead, you can use Uname command.

  1. Create fake arch by typing: “sudo gedit /bin/arch”.
  2. As content of the file write “uname -m”.
  3. Save and exit from gedit.
  4. Type “sudo chmod +x /bin/arch” to make the file executable.
  5. Now you can restart the xampp with “sudo /opt/lamp/lampp restart”

There’s one more thing about XAMPP. You can start it after login if you put it in startup in session manager. But to start server with system, before anybody logins, in file: “/etc/rc.local” add line “/opt/lampp/lampp start”.




Category: Software
Tags:

Was this article helpful? Improve it with your comment.