minor changes
git-svn-id: svn://svn.cccv.de/engel-system@304 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
45574da67d
commit
cc2f90cb81
|
@ -52,16 +52,17 @@ echo "setting up mysql"
|
|||
mysql -u root mysql -e "CREATE DATABASE tabel;"
|
||||
|
||||
echo "setting sources in place"
|
||||
cp -r `pwd`/engel-system/www/* /var/www/http/
|
||||
cp -r `pwd`/engel-system/www/* /var/www/http/ # meant to be removed
|
||||
cp -r `pwd`/engel-system/www-ssl/* /var/www/https/
|
||||
cp -r `pwd`/engel-system/includes/ /var/www/
|
||||
cp -r `pwd`/engel-system/default-conf/www-ssl/inc/* /var/www/https/inc/
|
||||
cp -r `pwd`/engel-system/default-conf/var_www_includes/* /var/www/includes/
|
||||
cp -r `pwd`/engel-system/service/ /var/www/
|
||||
|
||||
rm /var/www/https/inc/config.php
|
||||
cat `pwd`/engel-system/default-conf/www-ssl/inc/config.php|sed s/SEDENGELURL/$FQDN/ |sed s/MD5SED/`openssl x509 -noout -fingerprint -md5 -in /etc/apache2/ssl/apache.pem|sed s/MD5\ Fingerprint\=//`/|sed s/SHA1SED/`openssl x509 -noout -fingerprint -sha1 -in /etc/apache2/ssl/apache.pem|sed s/SHA1\ Fingerprint\=//`/ >> /var/www/https/inc/config.php
|
||||
rm /var/www/includes/config.php
|
||||
cat `pwd`/engel-system/default-conf/var_www_includes/config.php|sed s/SEDENGELURL/$FQDN/ |sed s/MD5SED/`openssl x509 -noout -fingerprint -md5 -in /etc/apache2/ssl/apache.pem|sed s/MD5\ Fingerprint\=//`/|sed s/SHA1SED/`openssl x509 -noout -fingerprint -sha1 -in /etc/apache2/ssl/apache.pem|sed s/SHA1\ Fingerprint\=//`/ >> /var/www/includes/config.php
|
||||
|
||||
rm /var/www/https/inc/config_db.php
|
||||
cat `pwd`/engel-system/default-conf/www-ssl/inc/config_db.php|sed s/changeme/$SQL_UPWD/|sed s/root/$SQL_USER/ >> /var/www/https/inc/config_db.php
|
||||
rm /var/www/includes/config_db.php
|
||||
cat `pwd`/engel-system/default-conf/var_www_includes/config_db.php|sed s/changeme/$SQL_UPWD/|sed s/root/$SQL_USER/ >> /var/www/includes/config_db.php
|
||||
|
||||
cp `pwd`/engel-system/DB/User.sql `pwd`/engel-system/DB/User.sql2
|
||||
rm `pwd`/engel-system/DB/User.sql
|
||||
|
@ -99,5 +100,5 @@ echo "-the webfrontend user/pass combo is: admin:$ADM_PASSWD"
|
|||
echo "-the sql-server root account is: root:$SQL_PASSWD"
|
||||
echo "-the sql-server user account is: $SQL_USER:$SQL_UPWD"
|
||||
echo "-you can find further information and the passwords in /root/cfg.info"
|
||||
echo "-make sure \$url in /var/www/https/inc/config.php is correct"
|
||||
echo "-make sure \$url in /var/www/includes/config.php is correct"
|
||||
|
||||
|
|
2
TODO
2
TODO
|
@ -1,2 +0,0 @@
|
|||
* schichten über monatsgrenzen einbauen
|
||||
im moment werden die tag enur hochgezählt und die monatzgrenzen werden ignoriert
|
|
@ -1 +1 @@
|
|||
*/15 * * * * www-data (cd /home/engel-system/services ; php4 cron_dect.php)
|
||||
*/15 * * * * www-data (cd /var/www/services/ ; php5 cron_dect.php)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?PHP
|
||||
|
||||
include ("./inc/config.php");
|
||||
include ("./inc/config_IAX.php");
|
||||
include ("./inc/config_db.php");
|
||||
include ("./inc/error_handler.php");
|
||||
include ("./inc/funktion_modem.php");
|
||||
include ("./inc/funktion_cron.php");
|
||||
include ("../includes/config.php");
|
||||
include ("../includes/config_IAX.php");
|
||||
include ("../includes/config_db.php");
|
||||
include ("../includes/error_handler.php");
|
||||
include ("../includes/funktion_modem.php");
|
||||
include ("../includes/funktion_cron.php");
|
||||
|
||||
|
||||
//ausfuerungs Ruetmuss (in s)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?PHP
|
||||
// löscht alle eintrag in der telefonanlage, indem jede nummer einzähln gelöscht wir (#10<NUMBER>)
|
||||
|
||||
include ("./inc/db.php");
|
||||
include ("./inc/config.php");
|
||||
include ("./inc/funktion_modem.php");
|
||||
include ("../includes/db.php");
|
||||
include ("../includes/config.php");
|
||||
include ("../includes/funktion_modem.php");
|
||||
|
||||
|
||||
$SQL = "SELECT DECT FROM `User`;";
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
/****************************************************************************************************/
|
||||
// INCLUDE
|
||||
/****************************************************************************************************/
|
||||
require_once('./inc/config_jabber.php');
|
||||
require_once("./inc/funktion_jabber.php");
|
||||
include("./inc/config_MessegeServer.php");
|
||||
require_once('../includes/config_jabber.php');
|
||||
require_once("../includes/funktion_jabber.php");
|
||||
include("../includes/config_MessegeServer.php");
|
||||
|
||||
// Set time limit to indefinite execution
|
||||
set_time_limit( 0 );
|
||||
|
|
|
@ -9,20 +9,21 @@ DIRS:
|
|||
|
||||
Anfordeungen:
|
||||
-------------
|
||||
PHP 4.xx
|
||||
PHP 5.xx
|
||||
mysql >=4.0
|
||||
|
||||
Systemconfig:
|
||||
-------------
|
||||
./www-ssl/inc/config.php
|
||||
../includes/config.php
|
||||
algemeien einstellungen
|
||||
./www-ssl/inc/db.php
|
||||
../includes/config_db.php
|
||||
einstellungen der DB
|
||||
Achtung: DB user braucht folgende Rechte: SELECT, CREATE, INSERT, ALTER, UPDATE, INDEX, DELETE, DROP
|
||||
|
||||
php.ini:
|
||||
--------
|
||||
add:
|
||||
allow_url_fopen = On
|
||||
allow_url_fopen = On ## deprecated, ought be removed
|
||||
date.timezone = Europe/Berlin
|
||||
Engelsystem Setup-Guide
|
||||
|
||||
|
@ -30,8 +31,8 @@ Engelsystem Setup-Guide
|
|||
Ich gehe in der Doku von Debian Etch mit Apache2, mysql5 und php4 aus.
|
||||
|
||||
1.1. Installieren der benoetigten Programme:
|
||||
apt-get install vim apache2 mysql-common mysql-server php4-mysql \
|
||||
libapache2-mod-php4 subversion openssl ssl-cert
|
||||
apt-get install vim apache2 mysql-common mysql-server php5-mysql \
|
||||
libapache2-mod-php5 subversion openssl ssl-cert
|
||||
|
||||
1.2. Configuration von apache2:
|
||||
Erstellen von http und https http-root:
|
|
@ -0,0 +1,4 @@
|
|||
* schichten ueber monatsgrenzen einbaue im moment werden die tage nur
|
||||
hochgezaehlt und die monatzgrenzen werden ignoriert
|
||||
* veryfy use of dect_clear.php and jabberserver.php
|
||||
|
Loading…
Reference in New Issue