ispCP - Board - Support
PHP version & awstats protection dynamic change - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Enhancements (/forum-43.html)
+--- Thread: PHP version & awstats protection dynamic change (/thread-5638.html)

Pages: 1 2


PHP version & awstats protection dynamic change - Nathariel - 02-06-2009 10:27 PM

Hey all,

I would like to introduce you some of my local ispcp enhancements.

There are many different websites and people and everybody has its own desires. One wants php5 running, other php4, somebody else doesn't want awstats protection (despite it is a great feature)...
It is too much administration overhead if you want to make everybody happy :) That's why I added some little 'functionalities' to ispcp to simplify those tasks.

The main points are:
* php version setting per domain
* awstats protection setting per domain
* admin & resellers could see the current php version / awstats protection status using "domain details"
* admin & resellers could change the current php version / awstats protection using "edit domain"
* the php version and awstats protection settings are now chosen upon user creation.
* each user can see the php version / awstats protection status on his domain at the index.page
* added "change domain properties" option in the client menu so every user could change the php version or awstats proteciton status (if enabled for the domain).

Some screenshots:

admin / reseller domain details example: [attachment=591]

admin / reseller domain edit example: [attachment=593]

reseller insert a new user example: [attachment=594]

user index example: [attachment=595]

user change domain properties example: [attachment=596]

I am using already those changes on a live server and till now everything works fine. If someone is interested in trying and testing it, I will add the code changes here.
p.s. I can provide support in english, german, *russian (or something near it ;) ) and bulgarian if needed :)


RE: PHP version & awstats protection dynamic change - rbtux - 02-06-2009 10:31 PM

HowTo & Contrib area in the Documentation would be the right place for putting the code ;-)


RE: PHP version & awstats protection dynamic change - xister - 02-06-2009 10:38 PM

Looks very great Smile


RE: PHP version & awstats protection dynamic change - ispcomm - 02-06-2009 11:08 PM

I think this is a much needed functionality in ispcp. Both php4/5 change and awstats protection are something I've started to implement in my own servers, not as well integrated in the GUI as yours.

I'm getting pressures from customers for exactly the same features, and till now I've been using a dual server with php4 on one and php5 on the other, but now that's not needed.

It would be nice to see if a core developer would step in and help with integration. well done nathariel!

ispcomm

ps: I've been away from the forums for some time now. Maybe time to come back and join forces Smile


RE: PHP version & awstats protection dynamic change - sci2tech - 02-06-2009 11:19 PM

@Nathariel Looks great your work. If you can provide a diff against trunk, I`ll merge in v1.0.1 (right now we are on last bugs before v1.0.0 hopefully in one week). But we drop support for php4 (since is discontinued) so only awstats part will be merged.
@ispcomm Welcome back. Your return is a great news and if you decide to join it`s a even greater news Smile


RE: PHP version & awstats protection dynamic change - rbtux - 02-06-2009 11:25 PM

(02-06-2009 11:19 PM)sci2tech Wrote:  But we drop support for php4 (since is discontinued) so only awstats part will be merged.

Maybe it should be integrated anyway... Because in 2 years we may have php5 and php6 running together... just a thought...


RE: PHP version & awstats protection dynamic change - xister - 02-06-2009 11:32 PM

(02-06-2009 11:19 PM)sci2tech Wrote:  @Nathariel Looks great your work. If you can provide a diff against trunk, I`ll merge in v1.0.1 (right now we are on last bugs before v1.0.0 hopefully in one week). But we drop support for php4 (since is discontinued) so only awstats part will be merged.
@ispcomm Welcome back. Your return is a great news and if you decide to join it`s a even greater news Smile

thats were a nice feature for 1.0.1.

(02-06-2009 11:25 PM)rbtux Wrote:  Maybe it should be integrated anyway... Because in 2 years we may have php5 and php6 running together... just a thought...

Right Smile

@ispcomm
Join the team and bring ispCP a little further Smile


RE: PHP version & awstats protection dynamic change - sci2tech - 02-07-2009 01:17 AM

(02-06-2009 11:25 PM)rbtux Wrote:  Maybe it should be integrated anyway... Because in 2 years we may have php5 and php6 running together... just a thought...
Right. I must catch some sleep, I do not think clear anymore Smile. Please provide patch as it is, for future php versions.


RE: PHP version & awstats protection dynamic change - ispcomm - 02-07-2009 08:42 AM

nice to meet you again sci2tech. I've been lurking the forums now and then, but not too often.

I was wondering with this php4/5 issue myself. I have hundreds of sites on php4 and it's not easy to push customers on php5 as some things don't work exactly the same way. Mambo and Joomla 1.0.x come to my mind as good examples, but there are others for sure.

A good hoster will keep existing technology while providing an upgrade path. A bad hoster will upgrade the server overnight without notice (guess which am I).

php6 will come along and perhaps Nathariel has a good idea how to accomodate other things like "ruby" and why not... "perl" via fastcgi/fcgid.

If this project leaves ground you can count me on Smile

ispcomm.


RE: PHP version & awstats protection dynamic change - sci2tech - 02-07-2009 09:08 AM

(02-07-2009 08:42 AM)ispcomm Wrote:  If this project leaves ground you can count me on Smile
ispcomm.
Thats depends on us.