Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
;;;;;;;;;;;;;;;;;;;;;
; Database Settings ;
;;;;;;;;;;;;;;;;;;;;;
[database]
; if you're running MySQL, otherwise it will be PostgreSQL
driver = mysql
; some hosts use a different address for the MySQL server. You should have that info in your CPanel
host = localhost
; this is the user that has grants on the databases in MySQL. If this user can create databases, all you need to inform next is the database name. Otherwise, the database will need to be created first!
username = MySQLuserName
; this is the password the MySQL user needs to access MySQL. In a local machine with XAMPP, you'll probably leave this blank, unless you added passwords to users.
password = MySQLuserName Password
; this is the database name, to be created by the MySQL user, if it has powers to, or the previously created database. Try not to use OJS as a database name.
name = databasename
ramon wrote:Hello Darryl,
If you're a newbie at Web development, then you should read first about MySQL, Apache and PHP so you can understand what each do and how they work together to create what used to be called "dynamic" web sites (dynamic because they load data from databases, not because of animations of flashy things on screen), which also gave them the more correct name data-driven websites.
Usually XAMPP, run in local Windows machine, installs MySQL with user "root" without password, which is unsafe, but since the machine is not a server, it's ok.
In your server, you need to inform in the following section of ojs/config.inc.php the correct data (all these are defined in the installation form!!):;;;;;;;;;;;;;;;;;;;;;
; Database Settings ;
;;;;;;;;;;;;;;;;;;;;;
[database]
; if you're running MySQL, otherwise it will be PostgreSQL
driver = mysql
; some hosts use a different address for the MySQL server. You should have that info in your CPanel
host = localhost
; this is the user that has grants on the databases in MySQL. If this user can create databases, all you need to inform next is the database name. Otherwise, the database will need to be created first!
username = MySQLuserName
; this is the password the MySQL user needs to access MySQL. In a local machine with XAMPP, you'll probably leave this blank, unless you added passwords to users.
password = MySQLuserName Password
; this is the database name, to be created by the MySQL user, if it has powers to, or the previously created database. Try not to use OJS as a database name.
name = databasename
Other essential settings for the install to be correct are the following:
- ; Client output/input character set
client_charset = utf-8- ; Database connection character set
; Must be set to "Off" if not supported by the database server
; If enabled, must be the same character set as "client_charset"
; (although the actual name may differ slightly depending on the server)
connection_charset = utf8- ; Database storage character set
; Must be set to "Off" if not supported by the database server
database_charset = utf8- ; Enable character normalization to utf-8 (On recommended)
; If disabled, strings will be passed through in their native encoding
; Note that client_charset and database collation must be set
; to "utf-8" for this to work
charset_normalization = Off- A folder to store submissions needs to be created, preferably outside of the public web, but Apache and PHP need to have access to this folder.
files_dir = /home/user/files- ; Make sure this file exists and has the correct file definition settings. In latest Ubuntu distros, this file has come empty...
mime_database_path = /etc/magic.mime- ; The encryption (hashing) algorithm to use for encrypting user passwords
; Valid values are: md5, sha1
; Note that sha1 requires PHP >= 4.3.0
encryption = sha1
On a Windows environment, you won't need to worry much about file permissions.
On your server, if you only have FTP access, setting the permissions will be a littler trickier.
The OJS folder can be set to 644 (least available permissions), with 775 (max write permissions to set) in internal folders "public", "cache", "plugins", "locale" and "lib/pkp/locale" (if you want to install plugins and use the Translation and Custom Translation plugins via the Web interface to save the locale.xml files) but working like this will depend on server settings as well!
The cache folder NEEDS to be writable by the Apache user (usually "nobody", "www-data" or "apache").
Search this forum or the Web for how to set permissions and ownership (on linux servers you use the chmod and chown commands, search for these on the web and this forum!)
Also, take a look at this page
The error message you are seeing in your install is that you probably don't have a MySQL user named "ojs".
The default info is just for exemplifying what needs to be informed.
_______________________________
Ramón Martins Sodoma da Fonseca
Analista em C&T
Coordenação de Tecnologias de Informação
Instituto Brasileiro de Informação em Ciência e Tecnologia - IBICT
Ministério da Ciência e Tecnologia - MCT
Return to OJS Technical Support
Users browsing this forum: No registered users and 2 guests