Nik

Topic: XAMPP on Ubuntu x64 Solution

Found on Ubuntu forums:

Here's what I did to get Xampp to work on 64 bit Ubuntu Studio (Hardy)

From Synaptic:

-Install ia32-libs

In a terminal:

-Pull package from Apache Friends (version may change)
wget http://www.apachefriends.org/download.p … 6.6.tar.gz

-su to root, or use sudo for each of the commands below:

-Extract, w/ overwrite into /opt:
tar xvfz xampp-linux-1.6.6.tar.gz -C /opt

-Start xampp:
/opt/lampp/lampp start

-Test Xampp:
type localhost in a browser

-Start Xampp on boot:
gedit /etc/init.d/rc.local
Below the #! /bin/sh line, type:
/opt/lampp/lampp start

-Make Xampp more secure:
/opt/lampp/lampp security
(Follow prompts.)

That's it. Your pages go in /opt/lampp/htdocs.

If you use PHP scripts in your html & you want to keep the .html or .htm extension on your pages, you can:

-Open text editor and type:

RemoveHandler .htm. .htm
AddType application/x-httpd-php .php .htm .html

-Save the file as .htaccess (note the dot) and place in /opt/lampp/htdocs.

Last edited by Nik (2008-10-10 14:58:27)

64bitdrivers.com
The Ultimate x64 resource on the .net!
Suggested 64bitdrivers.com Downloads
Ubuntu 8.10 Intrepid Ibex for x64

die_z

Re: XAMPP on Ubuntu x64 Solution

What about this one?

Code:
$ sudo aptitude install phpmyadmin mysql-server

Using package managers (you could just install the packages phpmyadmin and mysql-server using synaptic) and dependencies[1] between packages you can easily get a (full 64-bit) LAMP setup in a single command and there are other benefits, too:
- you get a clean system, no hand-dropped files
- FHS (Filesystem Hierarchy Standard) compliant system (which Debian/Ubuntu systems always are)
- constant and automatic security support (default desktop Ubuntu systems automatically update package lists and tell the user new versions are available)
- ease of management: you can remove all of those packages completely with a single command

Code:
$ sudo aptitude remove phpmyadmin mysql-server

(if you also want to remove configuration files, just use purge instead of remove)

[1] you can see a package's dependencies using synaptic, aptitude's ncurses interface or apt-cache (i.e. $ apt-cache depends phpmyadmin)

### Debian GNU/Linux ### - http://www.debian.org/
Linux counter registered user n° 356433 - http://counter.li.org/