Nextcloud Running on Raspian
-
Started from Zero and and going step by step with this new information. It would have taken ME longer to find and remove all the files and folders from Nextcloud,... so starting from a fresh install was easier and faster.
Apache2 is running and confirmed. someone want a rematch on AOE II right now.
-
Okay - got to this stage:
Next we’ll test PHP. Run the following command to create a test file:
echo "<?php phpinfo();" >> /var/www/html/phpinfo.php
and get:
pi:~ $ echo "<?php phpinfo();" >> /var/www/html/phpinfo.php -bash: /var/www/html/phpinfo.php: Permission denied pi:~ $ sudo echo "<?php phpinfo();" >> /var/www/html/phpinfo.php -bash: /var/www/html/phpinfo.php: Permission denied
trying
sudo chmod -R o+rw /var/www
That worked.
-
Have it good perfomance?
Previous versions of Owncloud were very slow in Raspberry.
Regards
-
I'm willing to bet that even with the Raspberry Pi 3 it's still on the slower side. Glad you got it working @gjacobse
-
@iroal said in Nextcloud Running on Raspian:
Have it good perfomance?
Previous versions of Owncloud were very slow in Raspberry.
Regards
Good performance != Raspberry Pi, ever.
-
I had to step back from this last night before unpacking NC and proceeding with the next step(s).
Right now I am at the point of doing the Apache Configuration:
On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:
Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>
When I try to do this, I get
[error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]
-
@gjacobse said in Nextcloud Running on Raspian:
I had to step back from this last night before unpacking NC and proceeding with the next step(s).
Right now I am at the point of doing the Apache Configuration:
On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:
Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>
When I try to do this, I get
[error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]
@gjacobse said in Nextcloud Running on Raspian:
I had to step back from this last night before unpacking NC and proceeding with the next step(s).
Right now I am at the point of doing the Apache Configuration:
On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:
Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>
When I try to do this, I get
[error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]
Make sure it's sites-available ... ?
-
ran this thinking it would allow me to create the file
sudo chmod -R o+rw /etc/apache2/sites-available/
same issue.. unable to create the file
-
@dafyre said in Nextcloud Running on Raspian:
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All<IfModule mod_dav.c>
Dav off
</IfModule>SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud</Directory>
Ah - thanks - didn't catch that.
-
Looks like I missed something...
Starting with a simple reboot - then will step backwards
-
@gjacobse said in Nextcloud Running on Raspian:
Looks like I missed something...
Starting with a simple reboot - then will step backwards
Might have to manually install all of those, the meta-package may not be working in Rasbian
-
That is what I am doing now. Thanks to @coliver command:
apt-cache search php
I see the full context of the module.
-
Boom!
-
Think about learning is that you chip away at it,... one problem at a time.
getting a DB error now,
Error while trying to create admin user: Failed to connect to the database: An ex exception occurred in driver: SQLSTATE[HY000][2002] Connection refused
Not sure if I should be using MariaDB or PHP;
Only MySQL/MariaDB is available. Install and activate additional PHP modules to choose other database types
Probably something rather simple like I need to add the user to the DB or get the correct user/password combo.
-
@gjacobse said in Nextcloud Running on Raspian:
Think about learning is that you chip away at it,... one problem at a time.
getting a DB error now,
Error while trying to create admin user: Failed to connect to the database: An ex exception occurred in driver: SQLSTATE[HY000][2002] Connection refused
Not sure if I should be using MariaDB or PHP;
Only MySQL/MariaDB is available. Install and activate additional PHP modules to choose other database types
Probably something rather simple like I need to add the user to the DB or get the correct user/password combo.
PHP is a web display language so the choice is just MariaDB. I think you can use PostgreSQL as well.
-
@coliver said in Nextcloud Running on Raspian:
@gjacobse said in Nextcloud Running on Raspian:
Think about learning is that you chip away at it,... one problem at a time.
getting a DB error now,
Error while trying to create admin user: Failed to connect to the database: An ex exception occurred in driver: SQLSTATE[HY000][2002] Connection refused
Not sure if I should be using MariaDB or PHP;
Only MySQL/MariaDB is available. Install and activate additional PHP modules to choose other database types
Probably something rather simple like I need to add the user to the DB or get the correct user/password combo.
PHP is a web display language so the choice is just MariaDB. I think you can use PostgreSQL as well.
Thank you.. and you are right,.. It's been a while since I have done much web work..
-
Well - this could be the reason:
pi@nextCloud:~ $ sudo systemctl is-active mariadb.service unknown pi@nextCloud:~ $ sudo systemctl restart mariadb.service Failed to restart mariadb.service: Unit mariadb.service failed to load: No such file or directory.
No - wait,.. I realize now that it could be running MySQL - ....
-
Make sure you run mysql_sercure_installation after installing MariaDB.
-
MariaDB is the default MySQL server for Debian and most modern Linux distributions. You actually have to, generally, add a new repo to pick up MySQL.
-
@coliver said in Nextcloud Running on Raspian:
Make sure you run mysql_sercure_installation after installing MariaDB.
pi@nextCloud:~ $ mysql -v -bash: mysql: command not found pi@nextCloud:~ $ mysql -bash: mysql: command not found