View previous topic :: View next topic |
Author |
Message |
josepi -
Joined: 20 Jul 2006 Posts: 30
|
Posted: Wed Aug 02, 2006 12:56 am Post subject: There a way to do this.. |
|
|
I need like and script php that add a site on abyss por 9999
for example an script to add sites and reload abyss
please is there a way to do this |
|
Back to top |
|
 |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Wed Aug 02, 2006 3:34 am Post subject: |
|
|
You could use PHP to write directly to abyss.conf. However, you'll have to write such a script on your own.
Aprelium is probably going to include a better command line interface in Abyss soon. |
|
Back to top |
|
 |
josepi -
Joined: 20 Jul 2006 Posts: 30
|
Posted: Wed Aug 02, 2006 3:55 am Post subject: |
|
|
but do you have the script ..., and do you know if there a way to know tranfer data for a domain hosted on my abyss by command on php or something like that |
|
Back to top |
|
 |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Wed Aug 02, 2006 4:09 am Post subject: |
|
|
cmxflash wrote: | However, you'll have to write such a script on your own. |
That means, there is no such script.
I'm not really sure what you mean with your second question, but I'll guess you're looking for $_SERVER['HTTP_HOST']. |
|
Back to top |
|
 |
josepi -
Joined: 20 Jul 2006 Posts: 30
|
Posted: Wed Aug 02, 2006 4:32 pm Post subject: |
|
|
ok well but 1 question how can i know how many bandwidth is using for example inferno.net site , and how can i limit the banwidth examplo 1 gb/month , but
i want to know the bandwidth used without using abyss admin |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Aug 02, 2006 6:54 pm Post subject: |
|
|
Abyss lets you see its statistics using any CGI interface. You can see the total
Transfered data in bytes (Bandwidth Transfer), but there's no possible way for
you to limit bandwidth per month as of yet. No need to, unless your a
huge Company hosting hundreds of people.
However, it is possible for you to create a command line PHP script to monitor
each website's log file. You would need to parse the log file in order to pull up
every bit of bytes it sent to the users (This could be a slow process depending
on how big the log file is). Once it reads the log file, have it send a command
to Abyss to stop that specific host if they go over their limit.
Note: Even after you stop the Host, you still need to rename the log file for
that same month, and once that next month comes, start the host again. It
would have to be a scheduled task in order to function properly.
Here's the PHP script I wrote that stops an Abyss Host.
http://www.aprelium.com/forum/viewtopic.php?p=54146#54146
Note: I will try and write such a script later on if I have time. It won't be easy
to setup but it will work exactly how you want it.
Sincerely, TRUSTAbyss |
|
Back to top |
|
 |
josepi -
Joined: 20 Jul 2006 Posts: 30
|
Posted: Wed Aug 02, 2006 9:56 pm Post subject: |
|
|
ok i have an script that limits bandwidth but the scripts need to know how many bandwidth used for x site but how can i know the bandwidth used for x site ?? without using abyss =( just an script that uses access.log |
|
Back to top |
|
 |
|