![]() |
![]() |
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...
<?php
include('../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...
Voila! - the PHP error has given you the correct location of your files. Use this information to figure out where Jojo is.
16 Jun 2009
Posts: 35
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...
18 Jun 2009
Posts: 35
thanks in advance! r.
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?
20 Jun 2009
Posts: 35
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"
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');
23 Jun 2009
Posts: 35
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!
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.
24 Jun 2009
Posts: 35
tom im using nightly builds, ok i test with another, which you recommend me?
thx
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.
30 Jun 2009
Posts: 35
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 |
![]() |