TinyPortal

Development => Support => Topic started by: brianjw on December 28, 2006, 08:42:26 PM

Title: Server Settings Help
Post by: brianjw on December 28, 2006, 08:42:26 PM
Ok. I was planning to move my forum over to my homepage by going into my forums server settings and changing the ones that said html/forum to html only and now It won't let me back in.
I was wondering if there is a way I could go in to the server settings through phpmyadmin or a php file. Let me know!
Um... If not what do I do. DO i continue to move it over. and what if that doesnt work? SErious HElp. What DO i do????????? :o :-\ :(
Title: Re: Server Settings Help
Post by: PowerPyx on December 28, 2006, 08:46:01 PM
login via ftp and look inside the settings.php

there you will find all settings and you can reset the paths to the ones you need atm
Title: Re: Server Settings Help
Post by: brianjw on December 28, 2006, 08:48:29 PM
wheeew! i hope ur right
Cuz you have know Idea what the troubles are of MAKING A NEW FORUM all over again :tickedoff: :uglystupid2: it is like your trying to do what u did before but you cant because you forgot :tickedoff:

Thanks! Ill tell u if this works
Title: Re: Server Settings Help
Post by: brianjw on December 28, 2006, 08:53:08 PM
OH MY GOD!!!!!! ;D ;D ;D ;D ;D

Thanks a billion. How can I ever repay you!!!! :laugh: :laugh: IM SO HAPPY!!! :) ;) ;D

This is what I want to do:
-Move all the files located in /forum to be moved to / . What is a safe way to do this and How?
Title: Re: Server Settings Help
Post by: PowerPyx on December 28, 2006, 09:13:55 PM

first download everthying from inside the /forum folder including all subdirectories to your local pc. then you have two options - 1st delete now the forum folder or 2nd upload everthing directly to the /. (root folder) - this is the same procedure if you have done step 1.

after that edit the settings.php and delete /forum from the path strings there.

upload the settings.php and enter your forum - it will work well enough that you gain access to the admin CP - there check all menus for path information and correct them by deleting /forum.

that's all.

should work fine, but, i have to say : I'm not liable for any troubles, damages or any other thing that could harm you / your forums users when you try that.
Title: Re: Server Settings Help
Post by: Ryushi32 on December 28, 2006, 09:20:33 PM
http://docs.simplemachines.org/index.php?topic=663

to correct all of your paths.
Title: Re: Server Settings Help
Post by: brianjw on December 28, 2006, 11:41:51 PM
Quote from: PowerPyx on December 28, 2006, 09:13:55 PM

first download everthying from inside the /forum folder including all subdirectories to your local pc. then you have two options - 1st delete now the forum folder or 2nd upload everthing directly to the /. (root folder) - this is the same procedure if you have done step 1.

after that edit the settings.php and delete /forum from the path strings there.

upload the settings.php and enter your forum - it will work well enough that you gain access to the admin CP - there check all menus for path information and correct them by deleting /forum.

that's all.

should work fine, but, i have to say : I'm not liable for any troubles, damages or any other thing that could harm you / your forums users when you try that.
I am planning to do this tonight. But first I want to see if anyone from the TP Team approves of this. TP Team: Will this work? or Will this not work?

Please let me know soon (as I am trying to do this tonight)
Title: Re: Server Settings Help
Post by: JPDeni on December 28, 2006, 11:46:58 PM
I found it to be better to use repair_settings.php, but it's likely that it'll work if you edit the Settings.php file directly.
Title: Re: Server Settings Help
Post by: brianjw on December 28, 2006, 11:51:38 PM
Are you saying if I do it like PowerPyx said. that it will work? ???
Title: Re: Server Settings Help
Post by: IchBin on December 28, 2006, 11:56:18 PM
To keep it simple brian I would move all your files to the location that you need to. The put repair_settings.php in the same directory and run it in your browser www.yourdomain.com/repair_settings.php. It should automatically detect your settings and allow you to save those settings without any intervention. All should be good in la la land after you have done that. :)
Title: Re: Server Settings Help
Post by: PowerPyx on December 28, 2006, 11:58:57 PM
I agree with IchBin --- use the repair_settings.php ... BUT ... as a webhosters supporter i knew that moving files directly with ftp on a webspace can fail (except you have a ssh access to your webspace). better to download and upload again - i know it takes more time, but its more failsave.
Title: Re: Server Settings Help
Post by: gerrymo on December 29, 2006, 12:24:01 PM
It WILL work Brian, download them all, upload to new location, run repair_settings and then check all paths for themes etc in admin to make sure all your themes will work. Its all quite easy.
Title: Re: Server Settings Help
Post by: brianjw on December 29, 2006, 01:46:12 PM
cool. well actually its uploading right now.
:)
Title: Re: Server Settings Help
Post by: brianjw on December 29, 2006, 02:34:47 PM
HELP!! Nothing is lost but this is the error I get:

Warning: main(/home/content/b/j/w/bjwilson/html/Sources/QueryString.php): failed to open stream: No such file or directory in /home/content/b/j/w/bjwilson/html/index.php on line 49

Fatal error: main(): Failed opening required '/home/content/b/j/w/bjwilson/html/Sources/QueryString.php' (include_path='.:/usr/local/lib/php') in /home/content/b/j/w/bjwilson/html/index.php on line 49


HELP!!!! Brianjw!!!!
Title: Re: Server Settings Help
Post by: RvG on December 29, 2006, 02:44:30 PM
Did you use the repair_settings.php? If not yet, you have to use the repair_settings.php now... www.yoururl.com/forumpath/repair_settings.php then fix all the paths now. :)
Title: Re: Server Settings Help
Post by: brianjw on December 29, 2006, 03:01:04 PM
I used it and that gave me the error!
Title: Re: Server Settings Help
Post by: brianjw on December 29, 2006, 03:06:24 PM
This is weird. I left the forum directory there even though I was moving it to / and I went into settings.php changed it added to forum to each of the directory so it links to /forum and then went into repair_settings.php I made it all back to with the /forum in it and now look. It works in the /forum and in the /

But I want it all to be able to work off / with out /forum but I got that error after going to repair_settings.php and settings.php ???How ???
Title: Re: Server Settings Help
Post by: JPDeni on December 29, 2006, 03:12:14 PM
If you're going to use repair_settings.php, don't edit your Settings.php file. Leave it alone.

Upload your files to the / directory again, keeping the Settings.php file and all of your other files exactly as they are in the /forum directory. Upload repair_settings.php to the / directory. Run it.
Title: Re: Server Settings Help
Post by: brianjw on December 29, 2006, 04:04:40 PM
ok. lets see...
Title: Re: Server Settings Help
Post by: brianjw on December 29, 2006, 04:06:24 PM
Ok JPDeni,
When I did exactly as you said and did it with the repair_settings.php
I got that error:

Warning: main(/home/content/b/j/w/bjwilson/html/Sources/QueryString.php): failed to open stream: No such file or directory in /home/content/b/j/w/bjwilson/html/index.php on line 49

Fatal error: main(): Failed opening required '/home/content/b/j/w/bjwilson/html/Sources/QueryString.php' (include_path='.:/usr/local/lib/php') in /home/content/b/j/w/bjwilson/html/index.php on line 49
Title: Re: Server Settings Help
Post by: gerrymo on December 29, 2006, 05:27:59 PM
have a look in FTP to make sure the file is there, and intact (not 0Kb). It may just be that your FTP Program has dropped the file somehow.
Title: Re: Server Settings Help
Post by: brianjw on December 29, 2006, 06:04:58 PM
No the repair_settings.php is there.

Just to make it easier this is what I am doing. In repair settings every file and directory has /forum next to it except for the homepage directory and url. I changed those to brianjwilson.com. Now it is getting the sources from /forum and the I deleted index.php in /forum so no one can go in there :) Job well done.

See: new one: http://brianjwilson.com old one: http://brianjwilson.com/forum

Complete :)
Title: Re: Server Settings Help
Post by: IchBin on December 30, 2006, 06:28:53 AM
gerrymo wasn't referring to the repair_settings.php file. The error is pointing to the fact that it cant seem to find QueryString.php
Title: Re: Server Settings Help
Post by: brianjw on December 30, 2006, 04:17:50 PM
Can I get a new QueryString.php