View previous topic :: View next topic |
Author |
Message |
solar_sea -
Joined: 03 Apr 2007 Posts: 1
|
Posted: Tue Apr 03, 2007 5:54 pm Post subject: Abyss Web Server under Debian |
|
|
Code: | installing abyss web server on debian [sarge 3.1]
1) Create a new user & group for Abyss with 'adduser'.
2) Login as the new user, download abyss & extract it.
3) As root, go to /etc/init.d . You will find a file
called 'skeleton' there. Copy it under a different name,
for example abyssws, then open it with a text editor.
Add the path to abyss' folder on the PATH=... line.
Put in some description for the purpose of logging on
DESC="...". Type abyssws on the NAME=... line. Then
edit the DAEMON line to point to /abyss' path/$NAME
and the PIDFILE line to /abyss's path/log/$NAME.pid
Edit the SCRIPTNAME to point to the actual new file in
/etc/init.d/
Find the d_start() block in this file and append after
"--exec $DAEMON" " -- -d". This must be done, so that
Abyss will run in daemon mode. Save the file & exit.
Try it if it works with ./newfile start and ./newfile stop
4) Again as root type update-rc.d newfile defaults
Congrats, you have installed Abyss Web Server on your debian
system. From now on, it will run whenever you are in
runlevel 2 - 5. |
I've used abyss for quite a long time under windows, so I wondered how to get abyss running as a daemon on my debian system, while being done according to debian policy manual. Here is the result, I hope it would be usefull for anyone.
Thanks for the great abyss server :) |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Apr 06, 2007 11:33 pm Post subject: Re: Abyss Web Server under Debian |
|
|
solar_sea,
Thank you for your contribution.
The next version will have an installer (or a set of tools) that will help installing Abyss Web Server as a daemon on popular Linux distributions (Ubuntu/Debian, Suse, Redhat). Hopefully this will make our users' life easier. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
David Ranieri -
Joined: 28 Jan 2007 Posts: 8
|
Posted: Fri May 18, 2007 9:25 am Post subject: |
|
|
I certainly hope soon I would love it especially since configuring a lampp server in any distro and a control panel is about a 4 year degree to learn. _________________ Thank You,
David Ranieri |
|
Back to top |
|
 |
David Ranieri -
Joined: 28 Jan 2007 Posts: 8
|
Posted: Fri May 18, 2007 9:57 pm Post subject: Re: Abyss Web Server under Debian |
|
|
solar_sea wrote: | Code: | installing abyss web server on debian [sarge 3.1]
1) Create a new user & group for Abyss with 'adduser'.
2) Login as the new user, download abyss & extract it.
3) As root, go to /etc/init.d . You will find a file
called 'skeleton' there. Copy it under a different name,
for example abyssws, then open it with a text editor.
Add the path to abyss' folder on the PATH=... line.
Put in some description for the purpose of logging on
DESC="...". Type abyssws on the NAME=... line. Then
edit the DAEMON line to point to /abyss' path/$NAME
and the PIDFILE line to /abyss's path/log/$NAME.pid
Edit the SCRIPTNAME to point to the actual new file in
/etc/init.d/
Find the d_start() block in this file and append after
"--exec $DAEMON" " -- -d". This must be done, so that
Abyss will run in daemon mode. Save the file & exit.
Try it if it works with ./newfile start and ./newfile stop
4) Again as root type update-rc.d newfile defaults
Congrats, you have installed Abyss Web Server on your debian
system. From now on, it will run whenever you are in
runlevel 2 - 5. |
I've used abyss for quite a long time under windows, so I wondered how to get abyss running as a daemon on my debian system, while being done according to debian policy manual. Here is the result, I hope it would be usefull for anyone.
Thanks for the great abyss server :) | Scratching head..... Policy maniual..... in open source gnu....????? _________________ Thank You,
David Ranieri |
|
Back to top |
|
 |
DonQuichote -
Joined: 24 Dec 2006 Posts: 68 Location: The Netherlands
|
Posted: Sat Oct 13, 2007 1:12 am Post subject: Running as deamon on port 80 |
|
|
I figured out how to run the abyss on port 80 as a deamon (Xubuntu in my case, but it should not make a difference). Instead of adding the -d option manually, I added it to the options variable at the start of the file:
Code: | DAEMON_ARGS='-d -r' |
To all the lines, I added the option Code: | --chuid root --group abyssd | . The "--chuid root" should be superfluous, as the script is executed as root anyhow (abyssd is both the group and the user I want to run the server as). The -r option given above allows the Abyss to be executed as root. This is needed to be allowed to serve port 80.
The user abyssd should have no shell (/bin/false) and as little rights as workable. This means we did not log in as "abyssd" during install, and we have to use chown to change the ownership of the installation directory and all files and directories beneath it to "abyssd". Alternatively, do log in as abyssd during install and disable its shell later.
As root, start the deamon (sudo /etc/init.d/abyssws start).
Do not be afraid, the pages will soon be served by another user:
Open the configuration site (http://127.0.0.1:9999/), change the server port to 80 and go to
server -> parameters -> Operating System Parameters.
Choose the user that should serve the site. This user executes PHP and all PHP actions. Well, instead of taking my word for it, let's test it with a small PHP file (restart the webserver first from the configuration site):
Code: | <?php
echo 'start of test';
file_put_contents('/tmp/abysstest', 'Let\'s see who owns this file...');
echo file_get_contents('/tmp/abysstest');
echo 'test ended.';
?> |
We write to /tmp, because anyone may write there. Look at the owner, group and permissions of the created file. The user is the one stated in Abyss' configuration site and the group if given by the --group option in the service batch file.
You can now choose between making web content world-readable or group-readable by group "abyssd". In the latter case, all web programmers or uploaders should be members of the group "abyssd". |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|