Web Hosting Talk







View Full Version : Ensim!


important
05-02-2002, 04:19 AM
Ensim is the worst, worst control panel i ever used. I have to add all the features in it myself. I managed to do much much stuff.
But i got stuck at one thing.
How can i set a max mysql space per db and allow unlimited dbs per person.
If unlimited not possible. How to put a space limit per db ?

puggy106
05-02-2002, 05:04 AM
what addons have you put on the CP?

important
05-02-2002, 06:47 AM
I didnt installed any add-on as ensim doesnt provide any.
I managed to get working :-

1. PHP 4.1.2. First it was difficult when i did, now just download an rpm and install it.
2. Added subdomains, when a new user is created, he has a subdomain.
3. Installed Webmin besides ensim, which i use mostly for managing cron jobs.
4. Enabled CGI outside the cgi-bin, still can't enable it in /home/user/public_html.

I am dying to find a way to put a space limit on mySQL db's and offer limited or unlimited db's automatically, not by admin, but by users.

puggy106
05-02-2002, 07:06 AM
fot his sub domain does he have a serperate CP or is it all in together?

Thanks

important
05-02-2002, 10:19 AM
I use the same ensim control panel for subdomains

wmac
05-02-2002, 03:05 PM
In another thread, results show that people like ensim after Cpanel/WHM so I do not think that ensim is worst.

There are some points that need more effort.

1- Running cgi from everywhere is limmited for security reasons (a bare unix can run cgi from everywhere). You can override this by uploading a .htaccess file to your root web directory.

2- Adding a subdomain is as easy as creating a simple directory in your root of web.

3- There is a MySQL on Ensim and you can give databse creation (and other permissions) to user if you want.

Ok, it is a little hard but it is an stable and secure CP.

By the way, I have worked with CPanel, Ensim and Plesk and i prefer Ensim for its security and backup features.

It is also more professional.

Mac

puggy106
05-02-2002, 03:11 PM
sarmadys - you wanna help me out a bit! ill pay you:)!

important
05-02-2002, 03:24 PM
Another problem of ensim is, if front page extensions are enabled we cant run .htaccess .
Anyways running cgi outside cgi-bin is easy. I know its for security and is done through suexec.
But running cgi in /home/virtual/siteNN/fst/home/user/public_html is impossible. As suexex doesnt read from that folder, so it isnt considered as cgi.

However, by disabling suexex we can do it. But a very big security risk especially when there are other members in the server.

I managed to invent a procedure to move db's from /var/lib/mysql to virtual users folder and then symlink them. and then folder is set for that site admin. And space counts towards his account.
:)
So one of my problem is solved.

cyansmoker
05-02-2002, 08:27 PM
Originally posted by important
I managed to invent a procedure to move db's from /var/lib/mysql to virtual users folder and then symlink them. and then folder is set for that site admin. And space counts towards his account.

Oh that looks good.
BTW, we too have upgraded some of our servers with PHP 4.1.2 and after many attempts we went with the RPM solution, too, but alas it wasn't satisfactory, because mySQL support wasn't included, so anyway we ended up recompiling. So..careful.

important
05-02-2002, 11:16 PM
I never used RPM solution, i used the my own solution. Got the php 4.1.2 from php.net.
:)

5angle.com
05-03-2002, 06:16 AM
Originally posted by important
I managed to invent a procedure to move db's from /var/lib/mysql to virtual users folder and then symlink them. and then folder is set for that site admin. And space counts towards his account. :)
Wow, that is a great idea ! Care to enlighten us ? :)

important
05-03-2002, 09:55 AM
Its not all automatic. You'll have to do something whenever you create a new domain.

login as root

I prefere to use the directory /usr/sbin for having the movedb script.

pico /usr/sbin/movedb

Paste the text in the file movedb.txt i included.

Ctrl + X
And then yes to save it.

chmod 700 /usr/sbin/movedb
chown root:root /usr/sbin/movedb

And you are done with the script.

Then to move a db the procedure is :

/usr/sbin/movedb domain.com domain_com
path to execute the script Domain DB

What this script do is move the db from /var/lib/mysql to /home/virtual/siteNN/fst/var/lib/ mysql/ dbname.
And symlink it to /var/lib/mysql. Its linked to disallow mysql users to execute the rmdir command for this folder.
After that it chowns to set it for a particular site admin. Which enables to count the mysql size towards that site admin's space limit. Its then given the right chmod.

And its all done.

When you want to delete a site, first delete their db from /home/virtual/domain.com/var/lib/. I prefere to delete the mysql folder created there.
rm -rf mysql.

Enjoy!

ckevin
05-05-2002, 12:47 AM
Originally posted by important
Ensim is the worst, worst control panel i ever used. I have to add all the features in it myself. I managed to do much much stuff.

important, I have the same feeling when I used Ensim in the first time. I agree I used so much time to understand the whole file structure, how things are dealing in Ensim, and then I have to customize my customers sites. One of the most typical difficulties is my existing users wanted FTP accounts having the URL like http://www.domain.com/user/ or http://user.domain.com/ rather than http://www.domain.com/~user/ this is the feature I can never provide with Ensim :(

Though I know it's most secure panel with a classic/professional user interface...

important
05-05-2002, 08:04 AM
Have you managed to get CGI working in /~users folders ?
:eek:

UmBillyCord
05-05-2002, 02:01 PM
Originally posted by important
Have you managed to get CGI working in /~users folders ?
:eek:

As long as suexec is enabled there is no way to have cgi's execute in the public_html directory. You will need to rename the file /usr/sbin/suexec to something else and then restart apache.

important
05-06-2002, 03:49 AM
A big security risk in disabling suexec.

wmac
05-06-2002, 11:35 AM
Originally posted by UmBillyCord


As long as suexec is enabled there is no way to have cgi's execute in the public_html directory. You will need to rename the file /usr/sbin/suexec to something else and then restart apache.


I am not sure if it is because of difference of settings or what but I am able to run cgi from everywhere in htmldirectory if I put below .htaccess file in it:


AddHandler cgi-script .cgi .pl
Options +ExecCGI


Mac

UmBillyCord
05-06-2002, 12:08 PM
Have you managed to get CGI working in /~users folders ?

This was the question sarmadys. Have you got them to work here?

important
05-06-2002, 01:42 PM
Hum, i managed to find some other cgiwrapper and installed it on ensim. And disabled suexec.
Now i am thinking if there is anyway to enable Front Page extensions and .htaccess both at the same time..
Tell me if you have a way.

cyansmoker
05-06-2002, 08:03 PM
Originally posted by important
Hum, i managed to find some other cgiwrapper and installed it on ensim. And disabled suexec.
Now i am thinking if there is anyway to enable Front Page extensions and .htaccess both at the same time..
Tell me if you have a way.

What wrapper do you use?

Fact is you can use FP and .htaccess...to a certain extent. It's not an Ensim issue, rather a FP one.

important
05-07-2002, 02:47 AM
I use mod_cgiwrap . Did you manage to get FP and htaccess work ?
:rolleyes: