|
Search:     Advanced search
Browse by category:
Glossary

How to determine Absolute Path

Add comment
Votes: 0
Comments: 0
Posted: 22 Mar, 2008
by: Pope L.
Updated: 02 Aug, 2008
by: Pope L.
When uploading from a local testing server to a web server the absolute path also needs to be updated.
The absolute path is the directory where Mambo is located on the server hard drive.

This small PHP script will report the actual absolute path.
Make a new PHP file and call it something like serverpath.php
Right at the top, with no spaces before it, add this PHP Code:

<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
Place (upload) this script in the directory where you want to find the absolute path.
Point a browser to this script and the path will appear in the browser.

On a Linux server, that will give you something like this example:
/var/www/example.com/httpdocs

In the Mambo configuration.php file, the above example would look like this:
$mosConfig_absolute_path = '/var/www/example.com/httpdocs';
Others in this Category
document How secure is Mambo?
document Blocking direct access to scripts in your wrapper
document How to install templates on your Mambo site
document How to move your Mambo site
document How to change the template name
document Troubleshooting the WYSIWYG editor
document Lost your admin password?
document Database function failed with error 1054
document Popups not working?
document Incorrect Itemid's
document CAPTCHA not working
document Working with META tags
document Blank or 'White' Pages
document How to turn off MySQL Strict Mode
document FAQ: "This Category is currently empty"
document How to find your version of PHP & other useful information
document What to do when you get a site is temporarily unavailable error
document session save path issues
document Changing/Creating your own favicon
document FAQ: Checked In/ Checked Out
document How to use Mambo Modules

RSS