Abyss Web Server under Debian

 
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
solar_sea
-


Joined: 03 Apr 2007
Posts: 1

PostPosted: Tue Apr 03, 2007 5:54 pm    Post subject: Abyss Web Server under Debian Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Apr 06, 2007 11:33 pm    Post subject: Re: Abyss Web Server under Debian Reply with quote

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 View user's profile Send private message Send e-mail
David Ranieri
-


Joined: 28 Jan 2007
Posts: 8

PostPosted: Fri May 18, 2007 9:25 am    Post subject: Reply with quote

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 View user's profile Send private message
David Ranieri
-


Joined: 28 Jan 2007
Posts: 8

PostPosted: Fri May 18, 2007 9:57 pm    Post subject: Re: Abyss Web Server under Debian Reply with quote

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 View user's profile Send private message
DonQuichote
-


Joined: 24 Dec 2006
Posts: 68
Location: The Netherlands

PostPosted: Sat Oct 13, 2007 1:12 am    Post subject: Running as deamon on port 80 Reply with quote

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
Code:
start-stop-daemon
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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Oct 22, 2007 5:12 pm    Post subject: Re: Running as deamon on port 80 Reply with quote

DonQuichote,

Thank you for your contribution.

We note that since version 2.5, Abyss Web Server for Linux includes a script that automates all that. Please refer to http://www.aprelium.com/data/doc/2/abyssws-linux-doc-html/startup.html for more information.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB phpBB Group