Abyss & Xubuntu

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Isotonik
-


Joined: 29 Feb 2008
Posts: 5

PostPosted: Sat Feb 27, 2010 2:32 pm    Post subject: Abyss & Xubuntu Reply with quote

I'm having a few issues while installing Abyss server to my existing Xubuntu system. I downloaded and extracted the *.tgz package to /usr/bin/abyssws -folder.

When I try to execute ./abyssw command, the system complains of some priviledges (no permissions to write the abyssws.conf file?)

When trying to run the command as root (sudo ./abyssws), the system complains of the attempt to run Abyssws as root (which is, of course, not very recommended).

I've tried to follow the manual but I do not seem to understand as to what I'm doing wrong.

Help?
Back to top View user's profile Send private message
DonQuichote
-


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

PostPosted: Fri Aug 27, 2010 3:00 pm    Post subject: Reply with quote

Open a terminal window. You should then first decide what user you want the web server to use. I create a user specially for this purpose:

Code:
sudo adduser --system --group abyssd


This will ask for your password (because you are using sudo to run the adduser command as root) and then create a system user called "abyssd" with a primary group with the same name.

Now make sure that this user can create files in the directory you chose:

Code:
sudo chown abyssd:abyssd /usr/bin/abyssws


Now comes something important: you will have to do some steps as the new web server user.

Code:
sudo -u abyssd bash


You are now logged in as abyssd in the terminal. Unpack the tarball:

Code:
tar -xzf abwsx1.tgz


This will unpack the tarball with the rights of the web server user. Now run the web server:

Code:
cd abyssws
./abyssws


It will display a message that the server runs. hit control-C to make it stop. We will clean up now:

Code:
exit


You are now logged in as yourself again. We change the ownership of /usr/bin/abyssws back to root:

Code:
sudo chown root:root /usr/bin/abyssws


Now follow the rest of the manual where it says you should visit http://127.0.0.1:9999
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 932

PostPosted: Mon Aug 30, 2010 2:04 pm    Post subject: Re: Abyss & Xubuntu Reply with quote

Isotonik,

Here is a detailed list of instructions about how to install X1/X2 for Linux and how to configure it to run at startup time:

* Open a user session in Linux using your normal user account (or you can create a new user account for Abyss Web Server that will be exclusively used for Web serving purposes).

* Download your X2 package or Abyss Web Server X1 from http://www.aprelium.com/abyssws/download.php

* Open a terminal window in your Linux system
* Execute:

Code:
tar xvfz /full/path/to/abwsx1.tgz


or

Code:
tar xvfz /full/path/to/abwsx2-26.tgz


where /full/path/to/abwsx1.tgz is to be replaced by the actual path of abwsx1.tgz (Tip: You can drag and drop abwsx1.tgz icon on the terminal to have it automatically type that full path)

* Execute:

Code:
cd abyssws


* Execute:

Code:
./abyssws


* Abyss Web Server will start and create a default abyss.conf file. You can open a browser at that stage and browse http://127.0.0.1:9999 to see the console. No need to configure it right now. You can do that later.

* The first step is over and you can switch back to the terminal and press CTRL+C to stop Abyss Web Server and have the prompt once again to type more commands.

* Now we are going to install Abyss Web Server to start at boot time automatically (similar to the service mode in Windows).

* Execute:

Code:
./autostart-setup install


* This will ask you to enter your root password to be able to execute a privileged action (it will install Abyss Web Server in the list of boot time applications).

* If you get a success message, please skip the following points until End of setup. Otherwise, if you enter the right root password several times and it is refused or if no password is asked for and you get an error message immediately, chances are that you current user has no right to switch to root. In such a case, close the current user session and login as the first user who have installed the system.

* use the command cd to go to the abyssws directory. The command should look like:

Code:
cd /home/someusername/abyssws/


someusername is to be replaced by the login of the user that you used to install Abyss Web Server. (Tip: pressing TAB twice while writing a path in a command will display possible matches, try it. Type cd /home/ then press TAB TAB, next type the first few letters of one of the displayed names, press TAB and it will be autocompleted).

* Now execute again:

Code:
./autostart-setup install


* It should report an operation success and no errors.

End of setup

* At that stage, Abyss Web Server is installed as a startup item. It will be started automatically every time Linux starts. No need for a logged in user. It will run in the background.

* You can restart your computer to start Abyss Web Server or you can run it immediately by issuing the command:

Code:
sudo /etc/init.d/abyssws start


Last thing

From now on, you'd never need to use the command line for Abyss Web Server configuration. All you have to do is to use the console by browsing http://127.0.0.1:9999 .

If you have any problem with the setup please let us know and give us the exact steps you've executed (you can copy/paste the terminal session for more details) as well as the error messages you are getting.

PHP support can be easily added by following the instructions in http://www.aprelium.com/abyssws/php.html#linux. Note that on most modern distributions, you do not need to build PHP by yourself. All you need is to run their package manager and install the PHP package (the CGI/FastCGI version) before declaring it in Abyss Web Server.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions 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