How to find your Jojo folder

How to find your Jojo folder, a forum discussion on Jojo CMS. Join us for more discussions on How to find your Jojo folder on our Installation forum.

Back to Forum Index : Back to Installation   RSS
Harvey

Lead Developer

Harvey

7 Aug 2007
Posts: 203

A lot of people seem to be having trouble finding out where their Jojo directory (aka basedir) is on their server.

It's actually not totally straightforward, and unfortunately not something which is easily autodetected either.

Here's a trick I use to find out where my Jojo files are.

Imagine you have the following folders on your FTP server...

/domain.com/jojo
/domain.com/mysite
/domain.com/public_html

There are 2 potential problems.

Firstly, your FTP client makes your FTP home directory appear as root. So the actual folders may be...

/xxxxx/xxxxx/domain.com/jojo
/xxxxx/xxxxx/domain.com/mysite
/xxxxx/xxxxx/domain.com/public_html

Jojo needs to know the full path.

Secondly, the public_html directory is often a symbolic link to another part of the server, and it's address may actually something completely different. Luckily, Jojo can detect the web directory so this is less of an issue.

The solution


create 2 PHP files...
/domain.com/public_html/foo.php
<?php
include('../bar.php');

/domain.com/bar.php
<?php
skjhgbsfjhg

(yes, this is deliberately gibberish)

Upload both files into their respective locations on your server, and call www.domain.com/foo.php in your browser. It should give a message like this...
Parse error: syntax error, unexpected $end in /home/username/domain.com/bar.php on line 2


Voila! - the PHP error has given you the correct location of your files. Use this information to figure out where Jojo is.
User Profile
Back to Forum Index : Back to Installation   RSS
You must be logged in to post a reply


You are not logged in
You need to Register or Log In before posting on these forums.