how can I quickly find the config paths and urls?
-
- Forum Members
- Posts: 106
- Joined: Thu Oct 05, 2006 11:27 am
how can I quickly find the config paths and urls?
The default install does a really good job of finding the correct paths and urls for config.php.
I am moving server - does anyone know if there is a quick way to find the correct paths on my new server without doing a clean install or using guesswork. I know you can get some from php info but - i usually still have to mess around.
Any tips appreciated.
I am moving server - does anyone know if there is a quick way to find the correct paths on my new server without doing a clean install or using guesswork. I know you can get some from php info but - i usually still have to mess around.
Any tips appreciated.
Last edited by lainyrache on Tue Jun 19, 2007 2:49 pm, edited 1 time in total.
Re: how can I quickly find the config paths and urls?
I just use a php file with the single line:
if you pop that on the server then open it in a browser it will just tell you the absolute path to where the file is.
Code: Select all
<?php echo(realpath($PHP_SELF)); ?>
Re: how can I quickly find the config paths and urls?
if you have shell access command pwd also usually tells the right path
Re: how can I quickly find the config paths and urls?
As you said install wizard does one time a good work - why not use a second timelainyrache wrote: I am moving server - does anyone know if there is a quick way to find the correct paths on my new server

You can run install procedure once again. You have only to deactivate writing database in step 4.
-
- Forum Members
- Posts: 106
- Joined: Thu Oct 05, 2006 11:27 am
Re: how can I quickly find the config paths and urls?
Thanks for the replys... 
Very strange - does not work for me .. blank page.
but it got me on the right road to ..... this worked fine ( obviously uploading a text file as well)
no shell access unfortunately....
....and cyberman I know it's so easy - I am just to lazy to upload the files..

Very strange - does not work for me .. blank page.
but it got me on the right road to ..... this worked fine ( obviously uploading a text file as well)
no shell access unfortunately....
....and cyberman I know it's so easy - I am just to lazy to upload the files..

-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: how can I quickly find the config paths and urls?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: how can I quickly find the config paths and urls?
SitePusher will handle this issue too, when I release it 

Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: how can I quickly find the config paths and urls?
It's work if "register_globals" is enabled (very bad!)scooper wrote:Code: Select all
<?php echo(realpath($PHP_SELF)); ?>
Use:
Code: Select all
<?php echo(realpath($_SERVER['PHP_SELF'])); ?>
Alby
Re: how can I quickly find the config paths and urls?
I had my first installation under my web site URL with /cmsmadesimple and what I did was copy the whole lot up so everything lives at the root of the web site (yes I suppose I could have used redirects or rewrites but I wanted to test moving it. What I changed was really simple,
config.php was edited and the changes are obvious throughout that file,
BUT
Captcha will not find fonts as in the cms_site_prefs table in the captcha_mapi_prof_font_path row there is a hard coding for the site.
I think thats all I remember. BTW: dirname(__FILE__) will give you the current file location thus create a file e.g.,
and it'll give where the file was run from for the server paths. The dirname(__FILE__) is used a lot throughout the code anyway.
config.php was edited and the changes are obvious throughout that file,
BUT
Captcha will not find fonts as in the cms_site_prefs table in the captcha_mapi_prof_font_path row there is a hard coding for the site.
I think thats all I remember. BTW: dirname(__FILE__) will give you the current file location thus create a file e.g.,
and it'll give where the file was run from for the server paths. The dirname(__FILE__) is used a lot throughout the code anyway.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: how can I quickly find the config paths and urls?
uninstall and re-install the captcha module.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.