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.
raulandres
16 Jun 2009
Posts: 35
hello harvey, what about local install? I have this problem, install page not found on my local install
i use differente nightly versions, jojo basedir is /var/www/newsite/jojo, generate ok the .htaccess file but doesnt work for me ;), i tried a lot of times the install and different tests
(sorry my duplicate comment)
thanks in advance for your help, im jojonewbie ;), my congrats...
i use differente nightly versions, jojo basedir is /var/www/newsite/jojo, generate ok the .htaccess file but doesnt work for me ;), i tried a lot of times the install and different tests
(sorry my duplicate comment)
thanks in advance for your help, im jojonewbie ;), my congrats...
raulandres
18 Jun 2009
Posts: 35
Harvey is possible answer me or redirect to link
thanks in advance! r.
thanks in advance! r.
can you post more info?
Jojo basedir: /var/www/newsite/jojo
where is the webdir with the copy of index.php in it?
(the same folder that will have the htaccess file and config.php put in it)
what folder are you using for your mysitedir (theme, downloads etc)?
what url are you on when you get the 404 error?
what steps had you gone through already?
Jojo basedir: /var/www/newsite/jojo
where is the webdir with the copy of index.php in it?
(the same folder that will have the htaccess file and config.php put in it)
what folder are you using for your mysitedir (theme, downloads etc)?
what url are you on when you get the 404 error?
what steps had you gone through already?
raulandres
20 Jun 2009
Posts: 35
hello tom and thanks on first
look i reply your questions.
please reply me asap, i need continue, thx again! r.
my jojo basedir is: /var/www/newsite/jojo
where is the webdir with the copy of index.php in it?
(the same folder that will have the htaccess file and config.php put in it)
r> /var/www/newsite/
r> yes .htaccess ok created in the same place /var/www/newsite/
r> config.php for jojocms not appear me or how to create it? exist a template?
what folder are you using for your mysitedir (theme, downloads etc)?
r> only i create manually mkdir mysite, but is empty...
what url are you on when you get the 404 error?
r> http://localhost/newsite/install (step 2)
what steps had you gone through already?
r> until step 2, i stay on "Jojo basedir. Enter the location of your core JoJo files"
look i reply your questions.
please reply me asap, i need continue, thx again! r.
my jojo basedir is: /var/www/newsite/jojo
where is the webdir with the copy of index.php in it?
(the same folder that will have the htaccess file and config.php put in it)
r> /var/www/newsite/
r> yes .htaccess ok created in the same place /var/www/newsite/
r> config.php for jojocms not appear me or how to create it? exist a template?
what folder are you using for your mysitedir (theme, downloads etc)?
r> only i create manually mkdir mysite, but is empty...
what url are you on when you get the 404 error?
r> http://localhost/newsite/install (step 2)
what steps had you gone through already?
r> until step 2, i stay on "Jojo basedir. Enter the location of your core JoJo files"
so the first step is OK, and it creates your htacess file - can you check it?
it should say on line 5
RewriteBase /newsite/
then it asks you to Enter the location of your core JoJo files
and you put in:
/var/www/newsite/jojo
and then it came back with a 404?
It may be because you've put the Jojo folder inside the webdir - can you move it down one so that all the folders are at the same level (it's bad security to have the JOJO directory in the public folder in any case):
/var/www/jojo
/var/www/newsite/
/var/www/mysite
You'll also need to prepare an empty database and user for the site (easiest is to use phpmyadmin > privileges > add a new user and check the option to create a new database with the same name and all privileges).
the text for config.php is generated in the next step (once it's found the Jojo files)
but you can just make it manually and save it into the webdir folder:
<?php
/* Database Connection */
define('_DBHOST', 'localhost');
define('_DBUSER', 'dbname');
define('_DBPASS', 'dbpassword');
define('_DBNAME', 'dbname');
/* Directory locations */
define('_SITEURL', 'http://localhost/newsite');
define('_BASEDIR', '/var/www/jojo');
define('_WEBDIR', '/var/www/newsite');
define('_MYSITEDIR', '/var/www/mysite');
/* Debug Options - not recommended for production installations */
define('_DEBUG', false);
/* Master password */
define('_MASTERPASS', 'password');
/* Admin root */
define('_ADMIN', 'admin');
it should say on line 5
RewriteBase /newsite/
then it asks you to Enter the location of your core JoJo files
and you put in:
/var/www/newsite/jojo
and then it came back with a 404?
It may be because you've put the Jojo folder inside the webdir - can you move it down one so that all the folders are at the same level (it's bad security to have the JOJO directory in the public folder in any case):
/var/www/jojo
/var/www/newsite/
/var/www/mysite
You'll also need to prepare an empty database and user for the site (easiest is to use phpmyadmin > privileges > add a new user and check the option to create a new database with the same name and all privileges).
the text for config.php is generated in the next step (once it's found the Jojo files)
but you can just make it manually and save it into the webdir folder:
<?php
/* Database Connection */
define('_DBHOST', 'localhost');
define('_DBUSER', 'dbname');
define('_DBPASS', 'dbpassword');
define('_DBNAME', 'dbname');
/* Directory locations */
define('_SITEURL', 'http://localhost/newsite');
define('_BASEDIR', '/var/www/jojo');
define('_WEBDIR', '/var/www/newsite');
define('_MYSITEDIR', '/var/www/mysite');
/* Debug Options - not recommended for production installations */
define('_DEBUG', false);
/* Master password */
define('_MASTERPASS', 'password');
/* Admin root */
define('_ADMIN', 'admin');
raulandres
23 Jun 2009
Posts: 35
hello tom again
i tried a lot of combinations, all, and nothing doesnt work, always return me with 404 on http://localhost/newsite/install
i dont know,i'll try tomorrow with clean new install
you know i think jojocms has a problem on localhost installation, if you think and another solution please notice me
thx!
i tried a lot of combinations, all, and nothing doesnt work, always return me with 404 on http://localhost/newsite/install
i dont know,i'll try tomorrow with clean new install
you know i think jojocms has a problem on localhost installation, if you think and another solution please notice me
thx!
I'm running a copy off localhost, so it can be done certainly.
are you using WAMP?
or IIS?
have a look at http://www.jojocms.org/docs/system-requirements/
i think default server installs of WAMP and IIS need some options enabled in order for them to work with Jojo
some of the nightly builds of Jojo can be broken, but I haven't noticed this issue with any of them lately.
are you using WAMP?
or IIS?
have a look at http://www.jojocms.org/docs/system-requirements/
i think default server installs of WAMP and IIS need some options enabled in order for them to work with Jojo
some of the nightly builds of Jojo can be broken, but I haven't noticed this issue with any of them lately.
raulandres
24 Jun 2009
Posts: 35
im using apache and lighttpd, i tried with 2,
tom im using nightly builds, ok i test with another, which you recommend me?
thx
tom im using nightly builds, ok i test with another, which you recommend me?
thx
and you've configured lighttpd like it says here?:
http://www.jojocms.org/docs/lighttpd-installation/
it sounds like you're having a redirect problem, which might be to do with "mod_redirect" not being enabled.
Any of the recent nightly builds should be ok. If you can install an svn client though, that's the easiest way to keep up with all the updates/fixes.
Jojo is nearly ready for another tagged release, which should be reasonably stable.
http://www.jojocms.org/docs/lighttpd-installation/
it sounds like you're having a redirect problem, which might be to do with "mod_redirect" not being enabled.
Any of the recent nightly builds should be ok. If you can install an svn client though, that's the easiest way to keep up with all the updates/fixes.
Jojo is nearly ready for another tagged release, which should be reasonably stable.
raulandres
30 Jun 2009
Posts: 35
hello tom, i tried on internet hosting and its work on first, i get install it on first time, simple, but on localhost doesnt work yet...
lighttpd has mod_redirect is enabling.
i dont know why on localhost doesnt work the install, im try apache too, but fail in same step.
thx anyway tom, regards! i'll continue try it
lighttpd has mod_redirect is enabling.
i dont know why on localhost doesnt work the install, im try apache too, but fail in same step.
thx anyway tom, regards! i'll continue try it
| Back to Forum Index : Back to Installation |
|
