ryankf
05-30-2002, 06:43 PM
I was happily installing web-cp for a friend on a redhat 7.2 box when i hit a dead end. the panel is installed, all the apache requirements are met, but the script seems to be broken somehow. the error i get is:
register_globals must be set to On.
Warning: Cannot add header information - headers already sent by (output started at /etc/webcp/web/init.inc.phps:13) in /etc/webcp/web/login.inc.phps on line 117\
now, i have checked /usr/lib/php.ini and register_globals is already set to on so whats up with that? :confused:
this is the software versions i'm using:
apache 1.3.20
php 4.2.1
mysql 3.23.39
any help would be appreciated greatly!
- ryan
TheException
05-30-2002, 07:28 PM
for a friend
heh, thats me. We would really appreciate any help here. :)
Thanks in advance!
If anyone can help us getting this running I can offer them a nice discount on a server... or maybe some free webspace...
The Prohacker
05-30-2002, 08:21 PM
Strange...
Sometimes there is a php.ini in the /etc dir.. You might try setting that also....
ryankf
05-30-2002, 08:27 PM
yeah, i checked that already. the phpinfo() showed that it was looking for the ini in /usr/lib so i copied it from /etc to there (with register_globals on in both of course)
i am beginning to think that the *php code is just a bit too outdated and needs to be rewritten to suit php 4.2.1? of course it would be much nicer if not but i really am stumped here heh :eek:
- ryan
The Prohacker
05-30-2002, 08:28 PM
Originally posted by ryankf
yeah, i checked that already. the phpinfo() showed that it was looking for the ini in /usr/lib so i copied it from /etc to there (with register_globals on in both of course)
i am beginning to think that the php code is just a bit too outdated nad needs to be rewrittend to suit php 4.2.1? of course it would be much nicer if not but i really am stumped here heh :eek:
- ryan
It should work with 4.2.x
But you might try down grading PHP...
ryankf
05-30-2002, 08:30 PM
i guess i will try that next...thanks...and how the hell did you post a reply almost before i finished going back to view my own post? /me ph33rs
- ryan
TheException
05-30-2002, 09:23 PM
lol... some people work fast here
Its nice though :)
I think they need to add some programmers to the webcp team.. they could add some sort of small fee for an additional service to pay for them... oh well.
ryankf
05-31-2002, 12:54 AM
great...downgrading to an older version of php worked. v4.0.6 to be exact. i found a post on the web-cp board from felix (web-cp developer) actually saying that the code needed to be revised to work properly with new php versions. still thanks for the idea. oh and TheException doesn't mean to charge for the open source software...he meant charge for support....install it yourself for free..have them install it for a small fee...not as bad as what i first thought he meant ;)
- ryan
beashnet
08-24-2002, 07:47 PM
Just to update you, ryan!
webcp's latest CVS release (0.5) works perfectly. I had the same prob you did but was sure reg_globals were set as On so I commented out the appropriate lines at the top of init.inc.phps and it worked beautifully.
=)