I seem to have everything installed and configured (on Mandrake 8.0, 2.2kernel):
index.php comes up fine;
signup.php comes up fine;
admin.php comes up fine ("you must be logged in...")
login.php comes up okay but blanks after authentication:
once logged in as admin, or as a user, I get a blank page, while
the url stays on login.php
users.php is blank.
Authentication seems to be working, but something keeps the admin and user pages from coming up - and there are no error messages. Any solution?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the second report of this problem I've received recently. After debugging the first one, I found that none of the HTTP-level functions worked correctly. These include header(), and more importantly, setcookie(). Without be able to set cookies, no authentication can take place.
To test if this is what is causing your problem, set your browser preferences to alert you when a cookie is sent (or use Lynx or w3m), and log in using login.php. If you don't get a cookie sent to you, this is most likely the problem. To be sure, create a php file with this content:
Then visit the page. If you aren't forwarded to Google, then we know what the problem is. My best guesses as to why this happens is either 1) a tricky bug in phpwebhosting that only affects a few sites; 2) a bug in some version of PHP; 3) Your hosting provider is causing the problem.
The last possible cause would occur if there were some kind of proxy between the site and the user that sends data before the page is sent, which is unlikely but possible.
Enough rambling I guess :) I'd be interested to know what your setup is like. What versions of Apache and PHP, PHP configure options, and what provider.
Thanks,
Jason aka Zone
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-07-19
1. no cookies are being sent, so you are right on there;
2. the php header file didn't work either, giving a parse error; twice right.
3. I'm using php-4.0.4pl1-3mdk and suppose it would be quite simple to upgrade that to 4.0.6-2mdk which is the latest from the cooker.
4. Interesting discovery when querying MySQL, I find TWO versions installed! -3.23.23-1mdk and -3.23.34-1 (a Red Hat version); I remember that trying to get PHPNuke to work, I initially had to use the Red Hat version because of some bug that prevented it from working with php. So this looks like a probable source of the problem.
5. I'm using apache-1.3.14-4mdk. The latest version for LM is 1.3.20-1mdk.
Otherwise, php-nuke is working fine as is AWF, a fine little php/MySQL script that I installed yesterday.
6. Finally, I'm setting this up on my home network, so no ISP is involved.
Let me hold off on the php configure options until I see what a little upgrading will do.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-07-20
Total pain trying to upgrade everything with the rpms from cooker, but wound up not being able to use phpnuke, phpwebhosting, or awf, so I uninstalled and went back to stock LM 8.0. We're drifting farther from Red Hat as each rpm is customized...
current config: apache-1.3.19-3mdk, php-4.0.4pl1-6mdk (and there IS NO php-mysql for the newest mdk php ?), MySQL-3.23.36-2mdk.
Got my phpnuke and awf back, but still have same problem with phpwebhosting.
BTW, I did fix the Header script, and it works fine (I broke the syntax when I wrote the file). So, we're back to NO Cookies and blank pages as before.
Do you know of another GPL webhosting app I can use?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't used either. Also note that the work on phpwebhosting for the past few monthes has been porting it over to work with phpGroupWare (http://phpgroupware.org). It will still be a while before it's released in a standalone version, but there are TONS of new features. If you end up still looking for something, you might want to check back in a few weeks (no guarentee on the time table, it's a complicated release).
Jason Wies aka Zone
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I seem to have everything installed and configured (on Mandrake 8.0, 2.2kernel):
index.php comes up fine;
signup.php comes up fine;
admin.php comes up fine ("you must be logged in...")
login.php comes up okay but blanks after authentication:
once logged in as admin, or as a user, I get a blank page, while
the url stays on login.php
users.php is blank.
Authentication seems to be working, but something keeps the admin and user pages from coming up - and there are no error messages. Any solution?
This is the second report of this problem I've received recently. After debugging the first one, I found that none of the HTTP-level functions worked correctly. These include header(), and more importantly, setcookie(). Without be able to set cookies, no authentication can take place.
To test if this is what is causing your problem, set your browser preferences to alert you when a cookie is sent (or use Lynx or w3m), and log in using login.php. If you don't get a cookie sent to you, this is most likely the problem. To be sure, create a php file with this content:
<?php
header ("Location: http://google.com"\);
?>
Then visit the page. If you aren't forwarded to Google, then we know what the problem is. My best guesses as to why this happens is either 1) a tricky bug in phpwebhosting that only affects a few sites; 2) a bug in some version of PHP; 3) Your hosting provider is causing the problem.
The last possible cause would occur if there were some kind of proxy between the site and the user that sends data before the page is sent, which is unlikely but possible.
Enough rambling I guess :) I'd be interested to know what your setup is like. What versions of Apache and PHP, PHP configure options, and what provider.
Thanks,
Jason aka Zone
1. no cookies are being sent, so you are right on there;
2. the php header file didn't work either, giving a parse error; twice right.
3. I'm using php-4.0.4pl1-3mdk and suppose it would be quite simple to upgrade that to 4.0.6-2mdk which is the latest from the cooker.
4. Interesting discovery when querying MySQL, I find TWO versions installed! -3.23.23-1mdk and -3.23.34-1 (a Red Hat version); I remember that trying to get PHPNuke to work, I initially had to use the Red Hat version because of some bug that prevented it from working with php. So this looks like a probable source of the problem.
5. I'm using apache-1.3.14-4mdk. The latest version for LM is 1.3.20-1mdk.
Otherwise, php-nuke is working fine as is AWF, a fine little php/MySQL script that I installed yesterday.
6. Finally, I'm setting this up on my home network, so no ISP is involved.
Let me hold off on the php configure options until I see what a little upgrading will do.
Total pain trying to upgrade everything with the rpms from cooker, but wound up not being able to use phpnuke, phpwebhosting, or awf, so I uninstalled and went back to stock LM 8.0. We're drifting farther from Red Hat as each rpm is customized...
current config: apache-1.3.19-3mdk, php-4.0.4pl1-6mdk (and there IS NO php-mysql for the newest mdk php ?), MySQL-3.23.36-2mdk.
Got my phpnuke and awf back, but still have same problem with phpwebhosting.
BTW, I did fix the Header script, and it works fine (I broke the syntax when I wrote the file). So, we're back to NO Cookies and blank pages as before.
Do you know of another GPL webhosting app I can use?
http://owl.sourceforge.net
http://elegac.free.fr
I haven't used either. Also note that the work on phpwebhosting for the past few monthes has been porting it over to work with phpGroupWare (http://phpgroupware.org). It will still be a while before it's released in a standalone version, but there are TONS of new features. If you end up still looking for something, you might want to check back in a few weeks (no guarentee on the time table, it's a complicated release).
Jason Wies aka Zone