Current time: 12-22-2024, 09:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
PHP version & awstats protection dynamic change
Author Message
Nathariel Offline
Junior Member
*

Posts: 11
Joined: Jan 2009
Reputation: 0
Post: #1
PHP version & awstats protection dynamic change
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:    

admin / reseller domain edit example:    

reseller insert a new user example:    

user index example:    

user change domain properties example:    

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 :)
(This post was last modified: 02-06-2009 10:33 PM by Nathariel.)
02-06-2009 10:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #2
RE: PHP version & awstats protection dynamic change
HowTo & Contrib area in the Documentation would be the right place for putting the code ;-)
02-06-2009 10:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
xister Offline
Member
*
Beta Team

Posts: 405
Joined: Oct 2006
Reputation: 6
Post: #3
RE: PHP version & awstats protection dynamic change
Looks very great Smile
02-06-2009 10:38 PM
Find all posts by this user Quote this message in a reply
ispcomm Offline
Junior Member
*

Posts: 93
Joined: Apr 2008
Reputation: 3
Post: #4
RE: PHP version & awstats protection dynamic change
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
02-06-2009 11:08 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #5
RE: PHP version & awstats protection dynamic change
@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
(This post was last modified: 02-06-2009 11:19 PM by sci2tech.)
02-06-2009 11:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: PHP version & awstats protection dynamic change
(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...
02-06-2009 11:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
xister Offline
Member
*
Beta Team

Posts: 405
Joined: Oct 2006
Reputation: 6
Post: #7
RE: PHP version & awstats protection dynamic change
(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
02-06-2009 11:32 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #8
RE: PHP version & awstats protection dynamic change
(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.
02-07-2009 01:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ispcomm Offline
Junior Member
*

Posts: 93
Joined: Apr 2008
Reputation: 3
Post: #9
RE: PHP version & awstats protection dynamic change
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.
02-07-2009 08:42 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #10
RE: PHP version & awstats protection dynamic change
(02-07-2009 08:42 AM)ispcomm Wrote:  If this project leaves ground you can count me on Smile
ispcomm.
Thats depends on us.
02-07-2009 09:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)