Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 09:12 am EDT

Geeklog Forums

I want to move geeklog to anther folder


Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
Location:EU
I have it installed in folder cute, now i want to change that and install it in cute1, is it possible and what do i have to change

Is there an easier way to do it

I do no0t have domin yet so i have to type to get to thos geeklog mypreviousdomain.com/cute/public_html

Is it possible to disable this url path so noone can get to this geeklog, because i will buy a new domain and i will not have to use the path again

sorry for complex q
 Quote

Status: offline

jhk

Forum User
Chatty
Registered: 07/13/02
Posts: 57
Quote by garfy: I have it installed in folder cute, now i want to change that and install it in cute1, is it possible and what do i have to change

You have to edit the paths in lib-common.php and config.php. Very simple actually.

I do no0t have domin yet so i have to type to get to thos geeklog mypreviousdomain.com/cute/public_html

Is it possible to disable this url path so noone can get to this geeklog, because i will buy a new domain and i will not have to use the path again

You could use a .htaccess file, but as long as you set the new domain name in config.php, you shouldn't have to worry about it. It is not really a security issue - mainly a cosmetic one.

sorry for complex q

Which complex question? Cool
 Quote

Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
Location:EU
Quote by jhk:
Quote by garfy: I have it installed in folder cute, now i want to change that and install it in cute1, is it possible and what do i have to change

You have to edit the paths in lib-common.php and config.php. Very simple actually.

I do no0t have domin yet so i have to type to get to thos geeklog mypreviousdomain.com/cute/public_html

Is it possible to disable this url path so noone can get to this geeklog, because i will buy a new domain and i will not have to use the path again

You could use a .htaccess file, but as long as you set the new domain name in config.php, you shouldn't have to worry about it. It is not really a security issue - mainly a cosmetic one.

sorry for complex q

Which complex question? Cool


i changed it in lib and config and it didnt work

on how many places do i have to change it, can u be more recise

and how to do that other stuff

but i would prefer changing folder, because someone else know where geeklog is and i want to be a secret

 Quote

Status: offline

jhk

Forum User
Chatty
Registered: 07/13/02
Posts: 57
IIRC you have to change one path in lib-common.php and two paths in config.php (depending on your setup).

.htaccess redirection intro
 Quote

Status: offline

Sand Man

Forum User
Newbie
Registered: 04/15/05
Posts: 4
are you positive you have changed all of your paths in lib-common.php and config.php? is your databaes information the same?
 Quote

Status: offline

jhk

Forum User
Chatty
Registered: 07/13/02
Posts: 57
thoughtful
So, did it work out for you?
 Quote

Status: offline

GeeklogLover

Forum User
Newbie
Registered: 03/20/12
Posts: 3
Hi,
I am trying to move GeekLog from site root to to another folder named /home. I followed your instruction but the only file I see is db-configure.php, lib-common.php.
Are these two files the same as the files I mentioned above? "You have to edit the paths in lib-common.php and config.php. Very simple actually"

In the file lib-common.php, do I change anything here? and How?

require_once 'siteconfig.php';

/**
* Configuration class
*/
require_once $_CONF['path_system'] . 'classes/config.class.php';

$config =& config::get_instance();
$config->set_configfile($_CONF['path'] . 'db-config.php'Wink;
$config->load_baseconfig();
$config->initConfig();


In file siteconfig.php I added the new path /home and copied all the contents of my Installed Geeklog site into it ( e.g - Full Path to my Site/Mysite.com/home/). NO Changes were made to the Database or password.
when I now search for the site www.mysite.com/home,
I get the message:
Warning: fopen() [function.fopen]: Unable to access Full Path to mysite/mysite.com//logs/error.log in/usr/local/ Full Path to mysite/mysite.com//home/lib-common.php on line 1950

Warning: fopen(/usr/ Full Path to mysite/mysite.com///logs/error.log) [function.fopen]: failed to open stream: No such file or directory in/usr/local/ Full Path to mysite/mysite.com//home/lib-common.php on line 1950

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/ Full Path to mysite/mysite.com//home/lib-common.php:1950) in/usr/ Full Path to mysite/mysite.com//home/lib-common.php on line 6718

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/ Full Path to mysite/mysite.com//home/lib-common.php:1950) in/usr/ Full Path to mysite/mysite.com//home/lib-common.php on line 6719
Unfortunately, an error has occurred rendering this page. Please try again later.


What do I do now?
Thanks.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
You do not need to edit files but you will need to install the rescue tool to change your paths.



Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Actually, you should be able to do a Migration with the install script, i.e. use the Migration option in the install script and choose the option to migrate your current database.

Having backups can't hurt, of course Wink

bye, Dirk
 Quote

GeekLog-Lover

Anonymous
I will do as suggested and will post feedback of result. Thanks.
 Quote

Status: offline

GeeklogLover

Forum User
Newbie
Registered: 03/20/12
Posts: 3
Thanks to JHK, Ben and as usual Dirk.
The rescue/migration tool works. I believe this is a must Have tool. I will try out Dirk's option in another experiment.

Yee Haw, Geeklog All Day Baby...
 Quote

All times are EDT. The time is now 09:12 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content