Control Panel Software » Confixx
suPHP in Confixx 3.2 aktivieren
Ab Confixx-Version 3.2 wird suPHP unterstützt.
Vorher mußte man parallel mit mod_php und suPHP arbeiten, um Confixx laufen lassen zu können. Dies ist nun nicht mehr nötig.
Leider unterstützt das in Debian Sarge enthaltene suPHP keine
Angabe von suPHP-Direktiven in den VHosts. Es kommt eine Fehlermeldung,
wenn man den Apache Webserver neu starten möchte:
Forcing reload of web server: Apache2Syntax error on line 49 of /etc/apache2/sites-enabled/000-default:
suPHP_AddHandler not allowed here
Also müssen wir suPHP selber bauen. Aber dazu später, fangen wir von Anfang an.
1) Wir deaktivieren mod_php4 - PHP als Modul brauchen wir ab heute nicht mehr.
2) Wir installieren ein paar notwendige Pakete
Apache 1.3:
- apt-get install apache-dev php4-cgi
Apache 2.0:
- apt-get install apache2-prefork-dev php4-cgi
3) Wir holen uns suPHP und compilieren es
- cd /tmp
- wget www.suphp.org/download/suphp-0.6.1.tar.gz
- tar xvfz suphp-0.6.1.tar.gz
- cd suphp-0.6.1
Apache 1.3:
- vi src/apache/mod_suphp.c
- Im Abschnitt "/* Command table */" ersetzen wir "ACCESS_CONF" durch "RSRC_CONF | ACCESS_CONF"
siehe hier:
static const command_rec suphp_cmds[] = {
{"suPHP_Engine", suphp_handle_cmd_engine, NULL, RSRC_CONF|ACCESS_CONF,
FLAG, "Whether suPHP is on or off, default is off"},
{"suPHP_ConfigPath", suphp_handle_cmd_config, NULL, OR_OPTIONS, TAKE1,
"Where the php.ini resides, default is the PHP default"},
#ifdef SUPHP_USE_USERGROUP
{"suPHP_UserGroup", suphp_handle_cmd_user_group, NULL,
RSRC_CONF|ACCESS_CONF, TAKE2, "User and group scripts shall be run as"},
#endif
{"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF | ACCESS_CONF, ITERATE, "Tells mod_suphp to handle these MIME-types"},
{"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF | ACCESS_CONF, ITERATE, "Tells mod_suphp not to handle these MIME-types"},
{NULL}
};
Apache 2.0:
- vi src/apache2/mod_suphp.c
- wir ersetzen "ACCESS_CONF" durch "RSRC_CONF | ACCESS_CONF" (bei suPHP 0.6.1 Zeile 316 und 317
static const command_rec suphp_cmds[] =
{
AP_INIT_FLAG("suPHP_Engine", suphp_handle_cmd_engine, NULL, RSRC_CONF | ACCESS_CONF,
"Whether suPHP is on or off, default is off"),
AP_INIT_TAKE1("suPHP_ConfigPath", suphp_handle_cmd_config, NULL, OR_OPTIONS,
"Wheres the php.ini resides, default is the PHP default"),
#ifdef SUPHP_USE_USERGROUP
AP_INIT_TAKE2("suPHP_UserGroup", suphp_handle_cmd_user_group, NULL, RSRC_CONF | ACCESS_CONF,
"User and group scripts shall be run as"),
#endif
AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL,
RSRC_CONF | ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"),
AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL
, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"),
{NULL}
};
Apache 1.3:
- ./configure --prefix=/usr --sysconfdir=/etc --with-apache-user=www-data --with-setid-mode=paranoid --with-apxs=/usr/bin/apxs
Apache 2.0:
- ./configure --prefix=/usr --sysconfdir=/etc --with-apache-user=www-data --with-setid-mode=paranoid --with-apxs=/usr/bin/apxs2
- make
- make install
4) Wir aktivieren suPHP für Confixx
- /root/confixx/admin/admin.pl aufrufen und unter 2) suPHP aktivieren und mod_php deaktivieren
5) Damit sind wir theoretisch fertig.
Da wir aber suPHP mit "./configure ... --with-setid-mode=paranoid ..." compiliert haben, müssen wir in den vhosts noch die Benutzer eintragen, unter denen suPHP jeweils laufen soll:
- confixx_mhost.conf editieren und unter dem Eintrag "suPHP_Engine on" einfach "suPHP_UserGroup confixx confixx" einfügen. Jetzt dürfte nach einem Restart des Apachen schonmal die Confixx-Domain laufen. Wir rufen diese gleich einmal auf und melden uns als Admin an.
- Unter "httpd-Spezial" für "alle Anbieter" fügen wir einfach "suPHP_UserGroup ##user## ##user##" ein, speichern und lassen /root/confixx/confixx_counterscript.pl laufen ...
Nach einer Weile dürften alle webxx.conf-Dateien um den entsprechenden Eintrag erweitert sein und die Seiten laufen wieder und ab sofort unter suPHP.
Seit Confixx Version 3.2.1 kannst Du den letzten Schritt auch weg lassen, da man durch setzen des Parameters $suphp_paranoid=1 in der confixx_main.conf das automatische Eintragen der o.a. Zeile erreichen kann.
Letzte Änderung des Artikels: 2007-04-01 20:56
Verfasser des Artikels: Alen
Revision: 1.1
Es ist möglich diesen Artikel kommentieren
Kommentar von SASA (2009-07-20 03:54:00):
MY wow power leveling
BUY wow gold
good wow power leveling
buy wow gold
my wow power leveling
cheap wow gold
cheap wow power leveling
buy wow gold
Kommentar von ljhha (2010-01-05 02:16:26):
Spend Your Money!ugg classic tall boots - 5 ReasonsUgg boots to GoWomen's ugg boots Against Classic tall uggsthe Graindiscount ugg boots .Are youblack classic tall ugg boots planningugg sand a ugg pinktrip GHD Pinkor a largeGHD Purple purchase,GHD Dark currently GHD Kissweighing GHD Purethe positivespink ghd hair and negativespink ghd straighteners to yourpink ghd hair straighteners decision?ghd mk4 pink Do yourghd straighteners purple professionalhigh heel pumps obligationslinks of london bracelet get in thelinks of london sweetie bracelet way of rewarding links of london braceletsyourselflinks of london necklace withEd Hardy somethingEd Hardy Caps that you wouldEd Hardy Shoe really likeEd Hardy Mens to have Ed Hardy Womensor do? If you Ed Hardy clothingsaid yes,
Kommentar von ljhha (2010-01-05 02:18:19):
If our spending isRay Ban sunglasses attached aviator sunglassesto our ray ban wayfarerself-esteem, ray ban wayfarersit reflectsray ban 3025 who weray ban 2140 think weray ban aviator 3025 are and our selfray ban 2132 image.jewelry necklaces Do you pandora braceletfind thatlinks of london bracelet you have adopted links of london sweetie braceleta frugal behaviourpandora jewellery charms relatingjuicy couture bracelet to thepandora charm bracelet current silver bracelet pandoraeconomic state.
Kommentar von ljhha (2010-01-05 02:19:08):
Please remembercoach handbags to observetimberland boots a verytimberland shoes bootsimportanttimberland pro point during timberland men's bootsthis phase. Movingblack timberland boots forwardtimberland euro hiker with a women's timberland bootsmore women's timberland bootaggressive discount designer handbagsplan isdiscounted designer handbags wise if youdesigners handbags are confidentreplica clothing and suretory burch shoesof the manolo blahnik shoesresults jimmy choo sandalsof suchjimmy choo shoes an attempt.christian louboutin prive Educatechristian louboutin pumps yourself with theysl shoes risks involved.zanotti shoes Ensure thatreplica handbags you arereplica watches well groundedDesigner clothing in your Designer replica handbagsfinancial position .
Kommentar von ljhha (2010-01-05 02:21:57):
Is somethingReplica rolex watches egging youreplica jewelry on to makeWholesale jewelry a large replica wholesale handbagspurchase? prada messenger bagAre you Miu Miu Toteup at nightMiu Miu Bag thinkingprada hobo about doingPrada Clutch somethingPrada Handbag big? Prada ToteThe opportunityGucci Bag to negotiategucci boston bag a greatgucci hysteria deal isGucci Tote knocking Gucci Shoulder Bagon yourGucci Hobo door. gucci handbagAsk them Gucci Messenger Bagin and talk. chanel handbagsYou maycheap replica handbagsnot see this offer come aroundbrand bag again. handbags discountIf you arecheap designer handbags on solidbranded handbags financialdesigner handbags ground.
Kommentar von asa (2010-01-30 12:20:27):
spiele online casino
Kommentar von liping (2010-02-01 09:07:46):
The relationship between the wow gold MMD Government and the people of Western province continue towow gold drift apart. Ascheap wow gold if a snab of buy wow goldfailing to seebuy cheap wow gold off thebuy wow gold cheap Litunga inwow gold cheap Leului wascheapest wow gold ever not enough, tbc goldan MMD wow gold guide led National wow gold cheap Constitutional Conference gold for wow(NCC) wow gold pricesstruck off an wow gold hacksannual budgetmake wow gold appropriation wow power levelingof thewow powerleveling Barotse treaty wow cd keyobligation.
Kommentar von liping (2010-02-01 09:11:32):
Photo Caption: President wow levelingof Jamaica Association of Marylandworld of warcraft leveling (JAM), Rickdfo gold Nugentdfo powerleveling (centre),daoc gold with camelot goldrecipientsdarkfall gold of the darkfall power levelingClaude McKaycheap ffxi gil Bookffxi cheap gil Scholarshipsffxi power leveling. They are runescape gold(from leftrunescape money), Shalonda rs2 power levelingDale, who willmaple Story mesos attend TowsonMaple Story mesoUniversity, in maple story power levelingBaltimore, EverQuest 2 goldMaryland;eq2 plat Brandon EQ2 power levelingWilliams, city of heroes influenceBrown's coh influenceCollege,city of heroes power level Minnesota; city of villains infamyJeromeCOV infamy Blakecity of villains power leveling, Coppinmetin2 gold Statemetin2 power level Universityaion gold, in aion power levelingBaltimore,eve online isk banquet of city of heroes power levelingJAM, held buy coh influenceat the Best cheapest aion goldWestern Hotel
Kommentar von louis vuitton (2010-05-26 05:44:50):
choose China wholesaleyou will find what you need
there are many wholesalefor wholesale
You need slendertone flexfor relax
slendertone beltwill give you a wonderful experience
looking for slendertone abson discount
For the sort of slendertone padswill give you a wonderful choice
As a top luxury consumablelouis vuitton
louis vuitton handbagsofferings hot handbags
hight quality louis vuitton bagsfor wholesale
if you want to buy louis vuitton bagis dedicated to providing the best and newest
there are many kinds of fashion in louis vuitton store
Why cheap replica louis vuitton handbagsare so attractive and so outstanding?
Maybe some customers want to know the secret of Louis Vuitton Shoes
Now let's start to see how many types fashion louis vuittonhave
Nowadays Louis Vuitton bagsproducts are so popular in the world and the name of Louis Vuitton is well known to the world too
it has shoulder Louis Vuitton Shoessuitable for men and women
A large number of wholesale louis vuitton handbags
all kinds of louis vuitton handbagswill give you a wonderful time
You need to buy cheap luxury bagsis good choise
A large number of wholesale louis vuitton bags
A large number of wholesale louis vuitton bag
-----------------------
louis vuitton handbagsis a hot selling series
louis vuittonwhich can give you different feelings
high quality and inexpensivereplica louis vuittonon wholesale
I think you need to louis vuitton purses
A large number of gucci bagsat incomparable prices
to have a louis vuitton bagwould be the woman's dream
new arrive louis vuittonwhich can give you different feelings
You want louis vuitton bagsfor wholesale
A large number of wholesalelouis vuitton bagfor wholesale
looking for louis vuitton handbagsfor discount
different kinds of louis vuitton walletsand you can find favorite one
high quality and inexpensivelouis vuitton pursesmay be your best choice
Welcome to wholesale louis vuitton
Many people have run-off louis vuitton
New Arrival cheap louis vuittonon sale
replica louis vuittonreplica louis vuitton
come take a look at designer louis vuitton
Limited Supply louis vuitton handbags
Limited Supply louis vuitton handbag
The best looking Christian Louboutin shoes
I think you must come and see Christian Louboutin boots
you want Christian Louboutin
hm201005
Kommentar von wow power leveling (2010-06-03 03:36:03):
wow power leveling cheap wow gold count under their own diminishing returns aion gold buy wow gold but I think such a lazy person will never be wow power leveling cheap wow power leveling the first to calculate what tankspot wedding dresses buy wow power leveling of diminishing returns has long rolex cheap wow gold been compared to the detailed calculation argument louis vuitton handbags for the relevant translation xyj xyjjgijgsjl
Kommentar von shoulder bags (2010-08-03 08:31:43):
Draw up an Inventory of Most Charming Tote bags for Pretties 10 Reasons for You to Shop shoulder bags