-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
145 lines (104 loc) · 5.07 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
Welcome to jCore,
Thank you for your interest, please see below step by step
instructions to install jCore client on your server.
The following instructions are mostly for users who have a
server set up with directories for each user/client and have
full access to that server but with some modifications you should
be able to install jcore even without full access.
As I use cpanel for my hosting (btw I use Hostgator) the settings
best apply to those situations.
INSTALL jCore Client
--------------------
1: Download the installer (install.php) from
http://jcore.net/downloads/installer
2: Put install.php in a public html folder and load it using
your browser and that's it.
MANUAL INSTALL jCore Client
---------------------------
1: 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/
2: 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/
3: 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
----------------
1: 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
2: 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.
3: 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.
4: 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
-----------------
1: 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)
2: 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.
IMPORTANT: if you see a message saying that "Site Temporary Unavailable"
it means that something is wrong and php can't access the db with the
user/password you have provided above, in that case please make sure
that all (sql_user, sql_pass, sql_database) are spelled right and try again.
REQUIREMENTS
------------
PHP >= 5.0, MySQL >= 4.1
Hope everyhting will be fine, if there is anything please don't hesitate
to to write at [email protected]
Regards,
jCore