how can I quickly find the config paths and urls?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
lainyrache
Forum Members
Forum Members
Posts: 106
Joined: Thu Oct 05, 2006 11:27 am

how can I quickly find the config paths and urls?

Post by lainyrache »

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.
Last edited by lainyrache on Tue Jun 19, 2007 2:49 pm, edited 1 time in total.
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm

Re: how can I quickly find the config paths and urls?

Post by scooper »

I just use a php file with the single line:

Code: Select all

<?php echo(realpath($PHP_SELF)); ?>
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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: how can I quickly find the config paths and urls?

Post by tsw »

if you have shell access command pwd also usually tells the right path
cyberman

Re: how can I quickly find the config paths and urls?

Post by cyberman »

lainyrache wrote: I am moving server - does anyone know if  there is a quick way to find the correct paths on my new server
As you said install wizard does one time a good work - why not use a second time ;)?

You can run install procedure once again. You have only to deactivate writing database in step 4.
lainyrache
Forum Members
Forum Members
Posts: 106
Joined: Thu Oct 05, 2006 11:27 am

Re: how can I quickly find the config paths and urls?

Post by lainyrache »

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..  ;D
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: how can I quickly find the config paths and urls?

Post by calguy1000 »

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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: how can I quickly find the config paths and urls?

Post by calguy1000 »

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.
alby

Re: how can I quickly find the config paths and urls?

Post by alby »

scooper wrote:

Code: Select all

<?php echo(realpath($PHP_SELF)); ?>
It's work if "register_globals" is enabled (very bad!)
Use:

Code: Select all

<?php echo(realpath($_SERVER['PHP_SELF'])); ?>
or calguy1000 code

Alby
openmtl
Forum Members
Forum Members
Posts: 16
Joined: Sat Jul 07, 2007 11:26 am

Re: how can I quickly find the config paths and urls?

Post by openmtl »

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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: how can I quickly find the config paths and urls?

Post by calguy1000 »

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.
Locked

Return to “[locked] Installation, Setup and Upgrade”