PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

PostPosted: Sun Aug 05, 2007 9:22 am Reply with quote Back to top

I have got two RN2.10.01 websites set up. One is in the root directory and is working Ok with minor bugs.

The other I have set up in a sub-directory and set a pointer to it in my hosting panel.

When I enter the url
Only registered users can see links on this board!
Get registered or login to the forums!
it opens up the site and all seems Ok. If I try to go to
Only registered users can see links on this board!
Get registered or login to the forums!
or index.php I get the following error HTTP/1.1 404 Object Not Found.

If I try to click on the new user activation link in an email i get the same error. I can only get into the admin.php screen if I type the full path to the sub-directory.

Any pointers would be helpful.

John
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Mon Aug 06, 2007 5:23 am Reply with quote Back to top

Do a test: rename the .htaccess file in your root directory and try again. I think you may need to fully qualify the admin authentication if you're using nuke in 2 places on the same account.
View user's profile Send private message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

PostPosted: Mon Aug 06, 2007 6:36 am Reply with quote Back to top

kguske wrote:
Do a test: rename the .htaccess file in your root directory and try again. I think you may need to fully qualify the admin authentication if you're using nuke in 2 places on the same account.


I assume you mean the .htaccess file in the root of the main folder or website, in this case the
Only registered users can see links on this board!
Get registered or login to the forums!
site. Not the one in the sub-directory for
Only registered users can see links on this board!
Get registered or login to the forums!


What ever I do I want to have both sites working correctly at the end. Would this mean that I will loose all the banned IP's from the root site's .htaccess file or could I copy them back in again afterwards. Also both sites have short links turned on in the .htaccess files, should I keep these in the new .htaccess file.

Sorry still learning with php.

John
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Mon Aug 06, 2007 10:18 am Reply with quote Back to top

Yes, rename the one in the main folder. I think that it what is interfering. You should be able to restore it without losing any of the banned IPs, etc., but you may need to fully qualify the admin file in the htaccess files for both the main folder and subdirectory.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Aug 06, 2007 6:30 pm Reply with quote Back to top

I have also had cases where I have had to rename my admin.php script (don't forget to change config.php to match) on the lower directory version of nuke to keep the top-level Files check in .htaccess from conflicting.

But, I like your idea better kguske in trying first to see if you can fully qualify the Files directive for admin.php in each .htaccess. I never played around with that.
View user's profile Send private message Visit poster's website
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

PostPosted: Tue Aug 07, 2007 6:34 am Reply with quote Back to top

Just to be clear before I cause more problems, what exactly do you mean by "fully qualify".

edited:- I have been trying to find out more information on this on the internet, with mixed success. As far as i can tell I need some sort of re-write rule in each .htaccess file to point to the correct admin.php file depending on which domain is beeing used ie. zenjudo.co.uk to the admin.php file in the root directory and for brzjc.co.uk the admin.php in the /brzjcphp directory.

Problem is I'm not sure what needs to be entered as i can't get my head around how re-write works.

I have tried renaming the admin.php in one site to admin1.php and changing the setting in config.php but same problem. I assume you can't add a url to the admin setting in config.php to point at the correct directory/file.

Could the short-Links On be causing the problems, as when I edit a page in admin via the xxx/xxxx/admin.php directory root, all looks ok in the editor, but when I log out and return to the website using
Only registered users can see links on this board!
Get registered or login to the forums!
the photos and links are all broken. Until I can get into admin.php directly from the
Only registered users can see links on this board!
Get registered or login to the forums!
website, I will have problems.

John

John Question
View user's profile Send private message Visit poster's website
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

PostPosted: Fri Aug 17, 2007 1:22 pm Reply with quote Back to top

Ok after looking through every setting and config file in both directories and making changes to the 404 error page to see if I could find out what was generating it, RavenNuke, NukeSentinel or the server (without success).

I finally managed to fix the problem by changing the website URL in the RavenNuke preferences. I had used the main domain name
Only registered users can see links on this board!
Get registered or login to the forums!
as the website url in the preferences.

So if the Domain is
Only registered users can see links on this board!
Get registered or login to the forums!

and that points to my webhost at
Only registered users can see links on this board!
Get registered or login to the forums!

and in my C-Panel set up any traffic is directed to
Only registered users can see links on this board!
Get registered or login to the forums!

and is sent to the subdirectory the RavenNuke is installed in.

John
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Aug 18, 2007 8:59 am Reply with quote Back to top

Bang Head

Glad you finally found it...
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum