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.
You must be logged in to post a reply
| |
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.
create 2 PHP files...
(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...
Voila! - the PHP error has given you the correct location of your files. Use this information to figure out where Jojo is.
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');
<?php
include('../bar.php');
/domain.com/bar.php
<?php
skjhgbsfjhg
<?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.
| Back to Forum Index : Back to Installation |
|
