You are not logged in.

#1 2010-04-24 19:55:54

justjohn
Member
Registered: 2010-04-23
Posts: 29

How to autostart xampp with xfce

Okay I'm probably just missing something really obvious, but...


Installed xampp using these instructions: http://www.apachefriends.org/en/xampp-linux.html#374

Ran the start command. Console output=

Starting XAMPP for Linux 1.7.3a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Put http://localhost in chromium address bar to test, according to instructions. Page not found. (xampp page says I should be redirected to xampp's index.php and see the xampp start page)

What did I miss?

Last edited by justjohn (2010-04-24 21:03:27)

Offline

#2 2010-04-24 20:02:27

justjohn
Member
Registered: 2010-04-23
Posts: 29

Re: How to autostart xampp with xfce

Ah, yep. I was stupid. I should have guessed. I just needed to actually type in the name of my localhost.

Is there a way to fix it so that I can just type "localhost?"

Offline

#3 2010-04-24 20:09:14

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: How to autostart xampp with xfce

$ cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain    localhost

Last edited by wuischke (2010-04-24 20:09:33)

Offline

#4 2010-04-24 21:00:32

justjohn
Member
Registered: 2010-04-23
Posts: 29

Re: How to autostart xampp with xfce

Thanks, I wonder why the beginner's guide told me to change that.

So now I'm trying to get xampp to load with xfce. I put

ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp

in rc.local, that didn't work so opened a console as root in autostart and added them, and that didn't work either.

I'm guessing it's because xampp needs to be started as root. So I think I want to add xampp to the list of things you can sudo, and then redo the commands using sudo. I think I can do the first part, but can someone tell me the correct syntax to use those commands with sudo? Or tell me if this is the wrong approach altogether...

Last edited by justjohn (2010-04-24 21:01:01)

Offline

#5 2010-04-24 21:35:44

justjohn
Member
Registered: 2010-04-23
Posts: 29

Re: How to autostart xampp with xfce

Okay, so I made the xampp dir sudo-able with no password. Confirmed by using sudo to start xampp.

I tried using both
ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp
and
sudo ln -s /opt/lampp/lampp S99lampp
sudo ln -s /opt/lampp/lampp K01lampp

to create symbolic links in the autostart dir, but it still does not start with xfce. Do I just need to fix my syntax or do I need to do this a different way?

Offline

#6 2010-04-24 23:36:26

justjohn
Member
Registered: 2010-04-23
Posts: 29

Re: How to autostart xampp with xfce

Ok, so I came up with a makeshift solution.

For whatever reason it didn't like the s99lampp and k01lampp scripts, so I just used the add startup programs option and linked xampp start. Needed sudo to work, so the actual line was

sudo ln -s /opt/lampp/lampp start


I would still like to know if there's a way to run the s99 and k01 things, and if I'm going to damage anything by not having that shutdown script in there.

Offline

#7 2010-04-25 00:12:28

PoZiTPoH
Member
From: Yekaterinburg
Registered: 2009-08-25
Posts: 64
Website

Re: How to autostart xampp with xfce

Maybe write line:

/opt/lampp/lampp start

in /etc/rc.local file?

Offline

#8 2010-04-25 00:46:34

justjohn
Member
Registered: 2010-04-23
Posts: 29

Re: How to autostart xampp with xfce

I assume that would work as well, I'm just wondering if I can and if I should or if I "need" to use the s99 and k01 things that the xampp site suggests.

Offline

#9 2010-04-25 17:17:42

PoZiTPoH
Member
From: Yekaterinburg
Registered: 2009-08-25
Posts: 64
Website

Re: How to autostart xampp with xfce

justjohn wrote:

I assume that would work as well, I'm just wondering if I can and if I should or if I "need" to use the s99 and k01 things that the xampp site suggests.

No, because Arch use BSD-init. http://wiki.archlinux.org/index.php/FAQ … g_about.3F

Last edited by PoZiTPoH (2010-04-25 17:19:45)

Offline

Board footer

Powered by FluxBB