new debian mysql installation script
====
root@warlocke:/etc/apache2/conf.d# sh debian-install.sh
debian-install.sh: 32: read: Illegal option -s
mysqlroundcubepassword [9pqTdDYSV5KHtGQvgMnw]:xxxxxx
httproot [/var/www]:
roundcubesitename [roundcube]:
roundcubeproductname [Roundcube Webmail]:
roundcubelanguage [en_US]:
user [root]:
domain [yourdomain.tld]: graywitch.co.nz
roundcube downloading in /tmp/roundcubemail-1.1.2.tar.gz
untar /tmp/roundcubemail-1.1.2.tar.gz
remove the tarfile
mv /var/www/roundcubemail-* /var/www/roundcube
get PHP composer
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /var/www/roundcube/composer.phar
Use it: php composer.phar
Loading composer repositories with package information
Initializing PEAR repository http://pear.php.net
[RuntimeException]
Failed to execute git clone --mirror 'https://git.kolab.org/diffusion/PNL/php-net_ldap.git' '/root/.composer/cache/vcs/https---git.kolab.org-diffusion-PNL-php-net-l
dap.git/'
error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://git.kolab.org/diffusion/PNL/php-net_
ldap.git/info/refs
fatal: HTTP request failed
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [packages1] ... [packagesN]
change the rights in the /var/www/roundcube directory
database setup
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Enter password:
no crontab for root
Module deflate already enabled
Enabling module expires.
To activate the new configuration, you need to run:
service apache2 restart
Enabling module headers.
To activate the new configuration, you need to run:
service apache2 restart
ERROR: Site roundcube does not exist!
apache2: Syntax error on line 265 of /etc/apache2/apache2.conf: Syntax error on line 271 of /etc/apache2/conf.d/debian-install.sh: /etc/apache2/conf.d/debian-install.sh:271: <?php> was not closed.
Action 'configtest' failed.
The Apache error log may have more information.
failed!
check install-roundcube.log for errors
root@warlocke:/etc/apache2/conf.d# debian-install.sh
-su: debian-install.sh: command not found
root@warlocke:/etc/apache2/conf.d# vi debian-install.sh
root@warlocke:/etc/apache2/conf.d#
======
Should this work on raspberian?