Difference between revisions of "PKP/OJS/Install Software/Before"

From Libopedia
Jump to navigation Jump to search
(Created page with "<center> '''Back to OJS Installation''' </center>")
 
m
 
Line 2: Line 2:
 
  '''[[PKP/OJS/Install Software|Back to OJS Installation]]'''
 
  '''[[PKP/OJS/Install Software|Back to OJS Installation]]'''
 
</center>
 
</center>
 +
 +
==Use a safe location for the article and issue files.==
 +
Create the folder
 +
mkdir /var/ojs
 +
 +
Give the above folder full read/write permissions by the web server.
 +
chown www-data.root /var/ojs
 +
 +
chmod 0777 /var/ojs
 +
 +
==Login to phpmyadmin==
 +
Log in to phpmyadmin. This is normally ''hostname of journal''/'''phpmyadmin'''.
 +
 +
===Create the MySQL Database with the following credentials===
 +
* dbname = ojs
 +
* dbuser = ojs
 +
* dbpass = XXXX
 +
 +
==Create root MySQL file (/root/.my.cnf)==
 +
nano /root/.my.cnf
 +
Copy and paste the following. Change password to suit.
 +
<pre>
 +
[mysql]
 +
user = root
 +
password = XXXX
 +
 +
[mysqladmin]
 +
user = root
 +
password  = XXXX
 +
 +
[mysqldump]
 +
user = root
 +
password  = XXXX
 +
</pre>
 +
 +
chmod 0600 /root/.my.cnf
 +
Test database connection, by typing as follows:
 +
mysql
 +
 +
show databases;
 +
 +
\q

Latest revision as of 10:39, 23 July 2014

Back to OJS Installation

Use a safe location for the article and issue files.

Create the folder

mkdir /var/ojs

Give the above folder full read/write permissions by the web server.

chown www-data.root /var/ojs
chmod 0777 /var/ojs

Login to phpmyadmin

Log in to phpmyadmin. This is normally hostname of journal/phpmyadmin.

Create the MySQL Database with the following credentials

  • dbname = ojs
  • dbuser = ojs
  • dbpass = XXXX

Create root MySQL file (/root/.my.cnf)

nano /root/.my.cnf

Copy and paste the following. Change password to suit.

[mysql]
user = root
password = XXXX

[mysqladmin] 
user = root
password  = XXXX

[mysqldump] 
user = root
password  = XXXX
chmod 0600 /root/.my.cnf

Test database connection, by typing as follows:

mysql
show databases;
\q