-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Configuration
Run the following command to find the location of your PHP initialisation file:
$ php -i | grep php.ini
Open the file(s) that this command returns in an editor:
- For Ubuntu 14.01, this may be both /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini
- For Scientific Linux 7 / Fedora 21, this may be /etc/php.ini
To set UTC (coordinated universal time), look for
[Date]
;date.timezone =
Remove the semi-colon and UTC:
date.timezone = "UTC"
See the PHP documentation for a List of Supported Timezones
Troubleshooting - It is not safe to rely on the system's timezone settings
If you see a message like:
PHP Warning: date_default_timezone_get(): It is not safe to rely
on the system's timezone settings. You are *required* to use the
date.timezone setting or the date_default_timezone_set() function. In
case you used any of those methods and you are still getting this
warning, you most likely misspelled the timezone identifier.
Then:
- Set the timezone as described above.
- Check the timezonke is a valid timezone.
Ubuntu 14.04
Ensure that the Apache user, www-data, is able to read and write files in the directory which holds the database file. One way of doing this is to make www-data the owner of this directory e.g.:
$ chown www-data:www-data /var/databases/
Scientific Linux 7 / Fedora 21
Ensure that the Apache user, apache, is able to read and write files in the directory which holds the database file. One way of doing this is to make apache the owner of this directory e.g.:
$ chown apache:apache /var/databases/
Configure security settings to allow Apache services to read and write files in this directory:
$ chcon -R -t httpd_user_rw_content_t /var/databases/
$ chcon -R -t httpd_user_rw_content_t /var/databases/sameasdb.sq3
Check the configuration as follows:
$ ls -Z /var/databases
-rw-r--r--. apache apache unconfined_u:object_r:httpd_user_rw_content_t:s0 sameasdb.sq3
- SameAs-Lite
- Concepts
- Server Requirements
- Installation & Configuration
- [Data Stores](Data Stores)
- Usage
- Contributing to SameAs-Lite
- [Setting up a development environment](Setting up a development environment)
- [Coding Standards](Coding Standards)
- [Day-to-Day Development](Day-to-Day Development)
- [Open Source Governance](Open Source Governance)
- Support
- [Getting In Touch](Getting In Touch)
- [Legal Information](Legal Information)