Friday, November 23, 2007

XAMPP 1.64 on Ubuntu

We know that Ubuntu server comes with a great support for LAMP, but for mobility issue, we can use XAMPP. However, I encountered a /bin/arch problem on my Gutsy. A quick search on Google, I found this link, http://jauhdimata.wordpress.com/2007/11/20/daripada-lupa/

Just in case something wrong with the link, I copied the solution here:

/opt/lampp/lampp: line 74: arch: command not found
Starting XAMPP for Linux 1.6.3…
/opt/lampp/lampp: line 74: arch: command not found
/opt/lampp/lampp: line 74: arch: command not found
XAMPP: Starting Apache with SSL (and PHP5)…
/opt/lampp/lampp: line 74: arch: command not found
XAMPP: Starting MySQL…
/opt/lampp/lampp: line 74: arch: command not found
XAMPP: Starting ProFTPD…
XAMPP for Linux started.

add this file, /bin/arch by typing:
% sudo vim /bin/arch

put this as the content of /bin/arch:

uname -m

then save and exit from vim by typing :wq

don't forget to make it executable by typing:

% sudo chmod +x /bin/arch

ok. now you can restart the xampp:

% sudo /opt/lamp/lampp restart

No comments: