This install has no rights to create or update file Data.php. #257
klmartinson17
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This worked for me:
Install LAMP: https://upcloud.com/community/tutorials/installing-lamp-stack-ubuntu/
see: cannot connect to database error. On installation #258
Find out what user is running apache:
ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1
(the user is most likely www-data. It may also be: apache or httpd)
cd /var/www/html
sudo apt install git
sudo git clone https://github.com/os4ed/opensis-classic
sudo mv opensis-classic opensis
sudo apt install curl
sudo chown -R yourusername:www-data ./opensis
sudo chmod -R g+rw ./opensis
https://unix.stackexchange.com/questions/35711/giving-php-permission-to-write-to-files-and-folders
sudo nano /etc/mysql/conf.d/strict_mode.cnf
[mysqld]
sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sudo service mysql restart
Beta Was this translation helpful? Give feedback.
All reactions