4 Answers
4

Why not just do sudo apt-get install lamp-server^ libapache2-mod-perl2 ? The lamp-server^ package should install Apache2, MySQL, PHP, (which should already be set up to work together). The libapache2-mod-perl2 should add Perl support to Apache.*

i didn't test bro because that the only way i know to used and right now i have data in MySql so it should work, so for now unistalling or lose data i should go where i know
–
Rani.ShemerOct 30 '11 at 19:05

several months ago i've solved that problem when i change my 32bit to 64 bit.
note: xampp for linux called lampp. because lampp was compiled for 32bit so when you want to using in 64bit ubuntu, 32bit shared libraries must be installed.
sudo apt-get install ia32-libs (64bit ubuntu only)

for each user has a web folder (example /home/astro/public_html), uncomment this configuration on lampp apache configuration

sudo vim /opt/lampp/etc/httpd.conf

from
#Include etc/extra/httpd-userdir.conf
to
Include etc/extra/httpd-userdir.conf

you can change default folder name in /opt/lampp/etc/extra/httpd-userdir.conf

Actually lampp was included GUI for start or stop daemon (like xampp in windows)
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel.py (must using a root privileges using sudo, but you can do some trick like changing sudoers,etc).

Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
–
PeachyNov 20 '12 at 22:06