Installation of JoJo ver. 1.0

Installation of JoJo ver. 1.0, a forum discussion on Jojo CMS. Join us for more discussions on Installation of JoJo ver. 1.0 on our Installation forum.

Back to Forum Index : Back to Installation   RSS
itchoice

3 Jul 2012
Posts: 4

Hi @ all,

I downloaded the latest version of JoJo as a zip and extraced the files but for some weird reason I cannot install the CMS.

I created 2 directories.

/var/www/jojo ( index.php + .htaccess )
/var/www/jojo/jojocms ( core files )

It asks me for a path and no matter what I enter it returns the following error:

Not Found

The requested URL /jojo/install was not found on this server.

mod_rewrite and gd are installed.

What now
tom

Developer

tom

3 Jul 2012
Posts: 379

Having the core files inside your pubic folder is bad security (as it makes them publicly accessible) but it might be what's causing the problem also.
try
/var/www/public_html (for index.php etc - make sure it is set to 777 for install and then tighten afterwards - this should be the only publicly accessible folder)
var/www/jojo (for the core jojo files)
var/www/mysite (this will house all of the actual files for your particular site - the theme, plugins, cache files, uploads and so on - it needs to be writeable by the webserver)

You may also want to try the 1.1 release that's on github, here https://github.com/JojoCMS/Jojo-CMS/zipball/v1.1 but I think that the folder structure is more likely the issue.
Rick Rick

3 Jul 2012
Posts: 336

I had this issue when I was in Auckland messing round on my laptop to start an api docs plugin. I was working locally and hadn't run Jojo on the laptop before so figured it was a mod_rewrite issue then I got busy. I'll confirm tonight if it's the same issue.

I also looked into AllowOverride in the Apache config. This should be set to "All" for the directory you're using.

Tom's right, the folder with Jojo's files in it as well as the mysite folder (can actually be called anything you want) should both be outside of the web root.
Rick Rick

3 Jul 2012
Posts: 336

Yup, confirmed... If your issue is the same one I had then try checking your Apache config for the "AllowOverride" directive for your web folder. This allows the .htaccess file to sty what it needs to for mod_rewrite.

Let me know if this helps. Oh, and welcome to the forums :)
itchoice

3 Jul 2012
Posts: 4

Rick,

Here is my folder structure:

jojo:

drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 classes
drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 _docs
drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 includes
-rwxrwxrwx 1 www-data www-data 3242373 Jul 3 11:55 JojoCMS-Jojo-CMS-v1.1-0-g6e60237.zip
-rwxrwxrwx 1 www-data www-data 26431 Apr 16 20:59 license.txt
drwxrwxrwx 15 www-data www-data 4096 Apr 16 20:59 plugins
drwxrwxrwx 6 www-data www-data 4096 Apr 16 20:59 themes
-rwxrwxrwx 1 www-data www-data 6 Apr 16 20:59 version.txt
drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 _www
-rwxrwxrwx 1 www-data www-data 5743 Apr 16 20:59 xinha5.3.diff

jojocms:

-rwxrwxrwx 1 www-data www-data 359 Jul 2 20:50 .htaccess
-rwxrwxrwx 1 www-data www-data 21068 Jul 3 11:56 index_lite.php
-rwxrwxrwx 1 www-data www-data 30589 Jul 3 11:56 index.php
-rwxrwxrwx 1 www-data www-data 565 Jul 3 11:56 phpinfo.php
-rwxrwxrwx 1 www-data www-data 451 Jul 3 11:56 readme.txt

jojosite:

drwxrwxrwx 2 www-data www-data 4096 Jul 3 12:02 .
drwxrwxrwx 42 www-data www-data 4096 Jul 3 12:02 ..

The error I am getting is:

Not Found

The requested URL /jojocms/install was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80

AllowOveride is set to all

Am I doing something wrong?

HTACCESS File:

# Jojo .htaccess file.
# Version 1740
RewriteEngine On

RewriteBase /jojo/

# Prevent PHP Session IDs showing up in the url
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0

# Catch all requests
RewriteRule ^$ index.php?uri= [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?uri=$1
Rick Rick

4 Jul 2012
Posts: 336

Change the RewriteBase to /jojocms/ and it should work.

The rewrite base in .htaccess shows the path to your website's root folder relative to the domain's root. At the moment RewriteBase is pointing to the core Jojo files, not your website's root.

For example, if your index.php and .htaccess files were in /var/www (and if that is where the web root is) then the rewrite base will be
RewriteBase /

but if your website is within a sub folder of the domain root such as http://localhost/jojo/ (eg if /var/www is your web root and your website is in /var/www/jojo) then the rewrite base will be
RewriteBase /jojo/

This is fine for initial local testing, but moving forward you'll want to move the jojocms and jojosite folders out of the web root and change the permissions on the web root and core files (usually in a folder called jojocms but you've got them in a folder called "jojo") to be read only by the web server.

One thing to remember is that if you move this website from being in a subfolder (or just move the web root to be the sub folder) then you'll need to update the RewriteBase and then run setup (by going to the site's new address and adding /setup/ on the end, eg http://localhost/setup/

We've all got different structures for our files and I'm sure you'll have your own too, but the important thing (and one of the best things about Jojo) is that the core files and mysite (you've called it jojosite) can be outside of the web root. This makes it nice and secure.
Rick Rick

4 Jul 2012
Posts: 336

Sorry, it was a long and convoluted post, but the points were
  • your folder names are backward to normal (this broke your install but was easily fixed. but this will make it difficult to ask for further help if there's confusion over the jojocms folder which you're using as the website's folder but others use as the core files folder
  • the folders containing the core files and mysite files should be outside the web root
  • the rewrite base setting in .htaccess is the path from your web root to the site's public folder
  • /setup/ needs to be run after moving the a site
itchoice

4 Jul 2012
Posts: 4

After your recommended changes & playing around I decided to go from scratch:

I had a look at your Video: http://www.jojocms.org/videos/

I still do not get this right:

Here the info again... I still have them in the same directory ....this is only for testing

What am I doing wrong here....

jojo:

drwxrwxrwx 2 www-data www-data 4096 Jul 4 09:05 .
drwxrwxrwx 43 www-data www-data 4096 Jul 4 10:36 ..

jojocms:

drwxrwxrwx 8 www-data www-data 4096 Jul 4 10:37 .
drwxrwxrwx 43 www-data www-data 4096 Jul 4 10:36 ..
drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 classes
drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 _docs
drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 includes
-rwxrwxrwx 1 www-data www-data 3242373 Jul 4 09:41 JojoCMS-Jojo-CMS-v1.1-0-g6e60237.zip
-rwxrwxrwx 1 www-data www-data 26431 Apr 16 20:59 license.txt
drwxrwxrwx 15 www-data www-data 4096 Apr 16 20:59 plugins
drwxrwxrwx 6 www-data www-data 4096 Apr 16 20:59 themes
-rwxrwxrwx 1 www-data www-data 6 Apr 16 20:59 version.txt
drwxrwxrwx 2 www-data www-data 4096 Apr 16 20:59 _www
-rwxrwxrwx 1 www-data www-data 5743 Apr 16 20:59 xinha5.3.diff

jojoexample:
total 44

-rwxrwxrwx 1 www-data www-data 366 Jul 4 10:40 .htaccess
-rwxrwxrwx 1 www-data www-data 30589 Jul 4 10:38 index.php

jojomysite:

drwxrwxrwx 2 www-data www-data 4096 Jul 4 10:36 .
drwxrwxrwx 43 www-data www-data 4096 Jul 4 10:36 ..

Thanks for all the help Rick
tom

Developer

tom

5 Jul 2012
Posts: 379

Does your htaccess file now say
RewriteBase /jojoexample/
?
itchoice

6 Jul 2012
Posts: 4

# Jojo .htaccess file.
# Version 1740
RewriteEngine On

RewriteBase /jojoexample/

# Prevent PHP Session IDs showing up in the url
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0

# Catch all requests
RewriteRule ^$ index.php?uri= [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?uri=$1
Rick Rick

6 Jul 2012
Posts: 336

And it's still not working? Are the jojoexample, jojomysite and jojocms folders inside your web root?
Back to Forum Index : Back to Installation   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.