Starhost
04-23-2001, 06:06 AM
I would like to manually add a new domain, new user. So that it can use the domain and email.
Now I only know how to edit the httpd.conf and named (bind). So I would like to know how I should do this.
I know that I can do it with the GUI, but I also wanna learn it without any, because my company will get a normal linux server within the next weeks.
kentaurus
04-24-2001, 10:20 PM
you'd better install webmin (webmin.com), it lets you play with the server configuration a lot, and you can easily install it on your server.
You need to add a virtualhost, I suggest opening your httpd.conf and finding the tags for your already created sites. Once you've done that it is really easy to add other sites, since you are only changing the servername and the document root. Also you should want to check apache's documentation :)
Hope that was helpful.
Starhost
04-25-2001, 04:15 AM
I already know how to edit the httpd.conf to create a new virtual site. But I don't know how to add a user and set privilieges to his document root. Set a quota etc. etc.
CobaltGuy
04-25-2001, 01:52 PM
If you are talking about doing this on a Cobalt server, DON'T DO IT!! Command-line administration is not supported; a PostgreSQL database is used to maintain config information to generate the GUI from. If you add users/domains/etc via standard Linux command-line tools, you WILL break the GUI.
There are a set of UNSUPPORTED shell tools available which will allow you to manually add/drop users and/or domains from the command line. Find them at ftp://ftp.cobaltnet.com/pub/users/jeffb/shell-tools/. Pull down the appropriate RPM for your platform (RaQ2 through RaQ4), and install. The scripts go into /usr/sbin/cobalt; there is basic help for syntax by running the tools with no arguments.
THESE TOOLS ARE UNSUPPORTED and were developed in the spare time of a Cobalt software engineer. Use them at your own risk!
Starhost
04-25-2001, 02:02 PM
Originally posted by CobaltGuy
If you are talking about doing this on a Cobalt server, DON'T DO IT!! Command-line administration is not supported; a PostgreSQL database is used to maintain config information to generate the GUI from. If you add users/domains/etc via standard Linux command-line tools, you WILL break the GUI.
I don't care breaking the GUI, because when I know how to administrate a server throw the command line, I'll vbe able to create my own GUI using MySql and PHP.
Is it also possible to connect to PstgresSQL with PHP? So that I'll be able to write my own programming while I'm still using the Database?
There are a set of UNSUPPORTED shell tools available which will allow you to manually add/drop users and/or domains from the command line. Find them at ftp://ftp.cobaltnet.com/pub/users/jeffb/shell-tools/. Pull down the appropriate RPM for your platform (RaQ2 through RaQ4), and install. The scripts go into /usr/sbin/cobalt; there is basic help for syntax by running the tools with no arguments.
I've already installed these and with them you are only able to create users. Not to modify them. And that is what I wanna do.
THESE TOOLS ARE UNSUPPORTED and were developed in the spare time of a Cobalt software engineer. Use them at your own risk!
Unsupported doesn't care, because I already don't get any support of them, because I installed MySql Webalizer and PHP on it. And when you do that you won't get support.
CobaltGuy
04-25-2001, 04:41 PM
> I don't care breaking the GUI, because when I know how to
> administrate a server throw the command line, I'll vbe
> able to create my own GUI using MySql and PHP.
Not sure why you want to make your own GUI to replicate what the existing one already does but if that's your thing, then you definitely can do it.
PHP does have the ability to connect to PostgreSQL databases.
> Unsupported doesn't care, because I already don't get any
> support of them, because I installed MySql Webalizer and
> PHP on it. And when you do that you won't get support.
Installing MySQL etc does NOT void your free support for the pre-supplied applications (web serving, email, etc). Free support is only voided if you have somehow replaced or modified anything the server ships with originally. Adding third-party non-related applications does NOT void your free support.
If you install PHP as a DSO, that does not affect Apache; your manual modifications to httpd.conf will not be supported, but other issues related to Apache would still be supported. If you recompile Apache to include PHP in the httpd executable, then your free support for Apache-related functions on the box *is* voided.
Sun does not provide free support for every possible change an end-user could make to the server. In fact, I'd like to know of *any* company, Linux-related or not, that provides free support for their product regardless of what you as an end-user decide to screw around with on that product!
I am speaking from a Cobalt perspective. If your box is at an ISP, they may have their own policies about what you can and cannot add onto your RaQ. But if you buy a box from Cobalt, your 30 days of free support is not affected by standalone third-party applications, unless those apps somehow modify or interfere with the "factory" payload...
For what it sounds like you want to do, though, a Cobalt server may not be the appropriate platform for you. These things are *appliances* and as such, their customizability is greatly reduced, if not eliminated, in favor of making them easier to use for the average non-technical end user. If you want to be able to change the configuration files around, etc, you probably should be looking at a generic purpose RedHat server instead of a Cobalt appliance...