Manual install is only for advanced users. The recommended way to install jCore server and/or client is using the Installer.
Below are the steps described to install jCore server, client. You should have received an INSTALL file within your jCore packages which contain the same information but in case you got stuck please read the comments as they may be helpful.
INSTALL jCore Server as Core System
-
Copy the content of this directory to a global place. Usually I use /var/www/jcore/ directory.
-
Create a subdomain for your main domain where you would like to access the jCore server, for e.g. it could be jcore.yourdomain.com which will create a directory in your home /home/yourdomain.com/public_html/jcore/
-
Now delete the jcore directory just got created in your home folder (/home/yourdomain.com/public_html/jcore/) and create a symlink to /var/www/jcore/
- That's it, just make sure to configure the jCore clients with the right url/path defined above and everything should work just fine.
INSTALL jCore Server as Stand Alone website
- Copy the content of this directory to a home folder, for e.g. /home/yourdomain/public_html/
-
Once content is copied and IF NO PHPChmod is activated give write access to the following directories to everyone:
rss/
sitefiles/banner/
sitefiles/design/
sitefiles/file/
sitefiles/flash/
sitefiles/image/
sitefiles/media/
SETTING UP MySQL
-
Now we have everything set up we just need to configure it but before that we need to setup the MySQL db for the site. To do that please go to your cpanel, usually http://yourclient.com:2082 and click "MySQL Databases".
Here you should create a db, enter the name for your db New Database: [yourdb]
Please note: your db will be prenamed with your clients' username, for e.g. it will look like this: yourclient_yourdb
I usually enter only DB when creating a new database for my clients and then I have a db called myclient_DB
-
After you have set up the db you have two options, or you create a user for this new db or you just use the one you used to login to cpanel as that one will work too.
For safety I recommend to use a new user/password for the db connection, just scroll down and where it says "Add New User" enter the username and the passwords, click Create user and that's it.
Now below "Add User to Database", select the new user you created and for the Database select the DB you created and click Add and check all privileges for the user and that should be.
-
After we have the DB set up, it's time to import the SQL file. First in your cpanel go back to home and click the "phpMyAdmin" icon and select your new db just created.
NOTE: You should define a Collation for your db click on the "Operations" in phpMyAdmin as this charset will be used for your whole db and if you want characters like Hungarian you should set this to latin2_hungarian_ci for example.
- Click "Import" in phpMyAdmin and browse to the jCore-client-0.1.sql file you downloaded and click "Go" This will import the tables and set up some example entries for you.
CONFIGURING jCORE Server
-
Now we should have both jCore and MySQL set up, it's time to configure it to use the right core and database.
Go to your jCore servers directory and edit config.inc.php as following:
SQL_HOST (you should leave it as it is, change it only if needed) SQL_DATABASE (the new database you created, for e.g. yourclient_DB) SQL_USER (the new user you created for your database) SQL_PASS (the password for the user)
SITE_URL_PATH (the url of your new site, for.e.g http://yourdomain.com/) NOTE: please always add a slash to the end of the url!
SITE_ABSOLUTE_PATH (this should be the home directory of your user, for e.g. /home/yourdomain/public_html/) NOTE: please always add a slash to the end of the path!
SEO_FRIENDLY_LINKS (this will allow you to see the urls like http://yourdomain.com/about instead of http://yourdomain.com?menuid=1)
- That should be all, now test out your site, just enter the servers url into your browser (http://yourdomain.com) and you should see the site.
INSTALL jCore Client
-
Please make sure you have jCore server installed on your server and you know the absolute path to it and have an url to access it too. For e.g.
Absolute Path: /var/www/jcore/
Url: http://jcore.yourdomain.com/
-
Now copy the content of this directory to a place where you would like to have your client's website. For e.g.
Absolute Path: /home/yourclient/public_html/
Url: http://yourclient.com/
-
Once content is copied and IF NO PHPChmod is activated give write access to the following directories to everyone:
rss/
sitefiles/banner/
sitefiles/design/
sitefiles/file/
sitefiles/flash/
sitefiles/image/
sitefiles/media/
SETTING UP MySQL
-
Now we have everything set up we just need to configure it but before that we need to setup the MySQL db for the site. To do that please go to your cpanel, usually http://yourclient.com:2082 and click "MySQL Databases".
Here you should create a db, enter the name for your db New Database: [yourdb]
Please note: your db will be prenamed with your clients' username, for e.g. it will look like this: yourclient_yourdb
I usually enter only DB when creating a new database for my clients and then I have a db called myclient_DB
-
After you have set up the db you have two options, or you create a user for this new db or you just use the one you used to login to cpanel as that one will work too.
For safety I recommend to use a new user/password for the db connection, just scroll down and where it says "Add New User" enter the username and the passwords, click Create user and that's it.
Now below "Add User to Database", select the new user you created and for the Database select the DB you created and click Add and check all privileges for the user and that should be.
-
After we have the DB set up, it's time to import the SQL file. First in your cpanel go back to home and click the "phpMyAdmin" icon and select your new db just created.
NOTE: You should define a Collation for your db click on the "Operations" in phpMyAdmin as this charset will be used for your whole db and if you want characters like Hungarian you should set this to latin2_hungarian_ci for example.
- Click "Import" in phpMyAdmin and browse to the jCore-client-0.1.sql file you downloaded and click "Go" This will import the tables and set up some example entries for you.
CONFIGURING jCORE
-
Now we should have both jCore and MySQL set up, it's time to configure it to use the right core and database.
Go to your jCore client's directory (/home/yourclient/public_html/) and edit the jcore.inc.php file and here set the followings as:
SQL_HOST (you should leave it as it is, change it only if needed)
SQL_DATABASE (the new database you created, for e.g. yourclient_DB)
SQL_USER (the new user you created for your database)
SQL_PASS (the password for the user)
SITE_URL_PATH (the url of your new site, for.e.g http://yourclient.com/) NOTE: please always add a slash to the end of the url!
SITE_ABSOLUTE_PATH (this should be the home directory of your user, for e.g. /home/yourclient/public_html/) NOTE: please always add a slash to the end of the path!
JCORE_URL (the url to access jCore-server, usually http://jcore.yourdomain.com/) NOTE: please always add a slash to the end of the url!
JCORE_PATH (the absolute path to the jCore-server, usually /var/www/jcore/) NOTE: please always add a slash to the end of the path!
SEO_FRIENDLY_LINKS (this will allow you to see the urls like http://yourclient.com/about instead of http://yourclient.com?menuid=1)
- That should be all, now test out your site, just enter the clients url into your browser (http://yourclient.com) and you should see the site.
Comments (21)
The Multilanguage feature requires that PHP to be compiled with gettext support. Rebuild PHP with the --with-gettext option to configure, or if using RPM's install the php-gettext RPM should fix your problem.
Hope this helps.
there is not in the folder
jCore-server and jCore-client .sql file are all the same so it is safe to use them wherever you want but you should be able to get the jcore-client.sql from the Downloads / jCore Client directory:
http://jcore.net/downloads/jcore-client
Thx for fasting msg..:)it's done
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /home/mykwikho/public_html/lib/includes.fxn.php on line 29
Warning: Cannot modify header information - headers already sent by (output started at /home/mykwikho/public_html/lib/includes.fxn.php:29) in /home/mykwikho/public_html/lib/includes.fxn.php on line 30
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mykwikho/public_html/lib/includes.fxn.php:29) in /home/mykwikho/public_html/lib/includes.fxn.php on line 32
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mykwikho/public_html/lib/includes.fxn.php:29) in /home/mykwikho/public_html/lib/includes.fxn.php on line 32
Fatal error: Call to undefined function bindtextdomain() in /home/mykwikho/public_html/lib/languages.class.php on line 396
help needed.
thanks!
If possible please let me know the bugs you found so I can fix those too or if you prefer you can also send me patches, all the help is more than welcome!
Somehow I find it very confusing to install at this point. Will there be a release in the future that is more simple to install / user friendly installation?
Thank you.
Erik
Yes, there is plan for that but for now I'm developing things as they are required (meaning functionality comes before everything) as I'm using this as a core for my client sites but once we have most of the requirements done I will focus my time on better installation (one click installation is my plan) and other things that would make our (webmasters) life even more easier to deploy a site for a client where after deployment the designer is able to handle all the rest to finalize a website.
Cheers,
I get this errors:
Warning: include_once(lib/sql.class.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\jcore\lib\settings.class.php on line 11
Warning: include_once() [function.include]: Failed opening 'lib/sql.class.php' for inclusion (include_path='.;C:\xampp\php\PEAR;/htdocs/jcore/') in C:\xampp\htdocs\jcore\lib\settings.class.php on line 11
Fatal error: Class 'sql' not found in C:\xampp\htdocs\jcore\lib\settings.class.php on line 194
i need help
tanks
It seems the paths in the config.inc.php aren't right, anyway, could you please try the new installer to install jCore server, just download the install.php put it in your c:/xamp/htdocs/jcore/ directory (which should be empty by the way) and then load http://localhost/jcore/install.php in your browser define the mysql db/user/pass and hit install and it should work.
If you still have problem please let me know and I will get back to you asap.
Cheers,
i am looking for info about the multisite install, i installed the server at www.domain.com, and the client site at the subdomains. I have a gentoo server. Should i copy all the files each time i create a client site?
Nope, you don't have to install/copy jCore server files for every client/subdomain, what you would have to do is following:
1. Copy all the jCore server files to a global place for e.g. domain.com/jcore/
2. Install jCore clients for every subdomain you wish like subdomain1.domain.com which would go under domain.com/subdomain1/ directory (usually)
3. When installing the jCore clients for the subdomains define domain.com/jcore for the jCore server path and that's it. (later on you can also define your own jCore url but for testing you can keep http://jcore.net)
This way if there is a new release you just overwrite the old jCore server files with the new ones in domain.com/jcore/ and this way all you client sites are already upgraded.
Think of jCore server as a library for your sites while jCore client as the website you are building.
Cheers,
i installed jcore server on www.domain.com
i created a sub.domain.com subdomain, copied the install.php file into the folder of the subdomain. The install went fine, the pb is the css style is not loading and i cannot access the admin panel. Looks like some path config pb. I didn't keep the jcore.net url, i replaced with my www.domain.com for the url path, is it ok?
I am very interested to succeed because i want to propose hosting for my subscribers.
Thanks for your help.
www.glottr.com
i have http://paris.glottr.com as a jCore client.
Basically i copied the install.php to the subfolder corresponding to the subdomain.The content of jcore.inc.php is this:
define('SITE_URL', 'http://paris.glottr.com/');
define('SITE_PATH', '/home/glottr/sd/paris/www/');
define('JCORE_URL', 'http://www.glottr.com/');
define('JCORE_PATH', '/home/glottr/www/');
define('SEO_FRIENDLY_LINKS', true);
/*
* Do Not touch these unless you know what to do
*/
define('JCORE_VERSION', '0.4');
Thanks for the feedback.
Fatal error: Call to undefined function bindtextdomain() in /home/joey/public_html/jcore/lib/languages.class.php on line 396