Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
arnoldkrg
New Member
New Member



Joined: Sep 15, 2003
Posts: 20

PostPosted: Thu Jan 13, 2005 8:20 am Reply with quote

I was just testing the 2.8 patches for PHP-Nuke 7.3 on a new install on a local apache server running on windows xp. Before the patches were applied, http://localhost/my73site opened the site with no problems. However, after applying the patches and resetting config.php, http://localhost/my73site gives a website not found error. But http://localhost/my73site/index.php opens the site properly. Now this doesnt seem to be a server problem because I have 2.8 patched PHP-Nuke 7.4,7.5, and 7.6 sites on the same server which open quite happily without having to include index.php in the path.

Is this some kind of bug related only to PHP-Nuke 7.3 2.8 patches. And can it, or should it be fixed. Everything else seems to work just fine.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Jan 13, 2005 9:18 am Reply with quote

In the nuke admin configuration panel, is your site url'
http://localhost/my73site ?
 
View user's profile Send private message
arnoldkrg







PostPosted: Thu Jan 13, 2005 2:49 pm Reply with quote

I've tried it via both http://localhost/my73site with that in the Site URL and also via a dynamic IP service with the correct dynamic address in the Site URL. Makes no difference. If I use index.php in the URL (not in the site URL in admin.php of course) the site opens, but without it the site doesnt. This is only with PHP-Nuke 7.3 after the 2.8 patches have been applied. Other than this, the site is fine, the activation link works with no problems.

I will go get a new copy of both the patches and PHP-Nuke 7.3, just in case there has been some corruption in the downloads and I will investigate further.

[SELFEDIT] Just to convince myself that it isnt something stupid that either me or my server has done, I downloaded fresh copies of both PHP-Nuke7.3 and the 2.8 patches for PHP-Nuke 7.3. I made a complete fresh install and then installed the patches. Same again. The site opens fine after the patches as long as it is accessed via localhost/my73site/index.php.

Then just to make even more sure, I downloaded fresh copies of PHP-Nuke 7.5 and the 2.8 patches for PHP-Nuke 7.5. Made a clean new install then applied the 2.8 patches. No problems.....the site opens without needing index.php in the URL. This definitely only happens with the 2.8 patches for PHP-Nuke 7.3[/SELFEDIT]
 
Raven







PostPosted: Thu Jan 13, 2005 4:03 pm Reply with quote

It is not a bug or the entire community would be sceaming, and they're not. Are you doing any mod_rewrites in .htaccess that might be causing this?
 
arnoldkrg







PostPosted: Fri Jan 14, 2005 3:52 am Reply with quote

No......Its a fresh install....I've added no .htaccess files other than those that come already included. I only use this server for development so its not a production site. I am just testing to make sure that a patched version of Approve_Membership will actually work on a patched version of PHP-Nuke 7.3. I guess you are right that, if there were a real problem with the 2.8 patches and PHP-Nuke 7.3, I would have heard about it too. I will go ahead and release the patched Approve_Membership.

Maybe its time that I did a complete uninstall and reinstall of Apache and PHP. They have been going for a couple of years now and there is no telling what unexpected effects I have introduced while I have been experimenting.

Thanks for the reassurance.
 
Raven







PostPosted: Fri Jan 14, 2005 5:08 am Reply with quote

Try it, it's worth a shot. I have no ideas otherwise. Let us know!
 
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Fri Jan 14, 2005 9:44 am Reply with quote

Try commenting out the following from mainfile.php:
Code:
if($_SERVER['REQUEST_URI'] != "/" AND substr($_SERVER['REQUEST_URI'], -1) == "/") {

  header("Location: http://".$_SERVER['HTTP_HOST'].rtrim($_SERVER['REQUEST_URI'],'/'));
}
 
View user's profile Send private message Visit poster's website
arnoldkrg







PostPosted: Fri Jan 14, 2005 11:20 am Reply with quote

Yes that did it. Many thanks......I will be able to advise my users now if they run into similar problems. Any explanations why this code is in the 2.8 patches for PHP-Nuke 7.3 and not in the 2.8 patches for higher versions?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©