OrangHRM heb ik een paar dagen terug pas voor het eerst werkend gekregen, na herinstallatie Ubuntuserver en enige mislukte pogingen. Ik ben er ook niet iedere week mee bezig. Ik ben in ieder geval erg blij dat het nu wel werkt, dank zij jou hulp.
Wat convide betreft, ik heb deze keer verschillende malen het volgende geinstalleerd en daarna de recommended en de suggested packages (zoals terminal aanraadt);
sudo -s
- apt-get install php5 php5-imap php-pear php-db phpmyadmin beagle tnef uudeview wv xlhtml unzip zip links2 sfftobmp
html2ps curl fortune-mod aspell sharutils poppler-utils libtiff-tools ghostscript libxml2-utils mpack imagemagick libwmf-bin
Uiteindelijk, na divers pogingen van het hele proces (ook Apache2 aangevinkt), lijkt het te lukken.
Ik heb nu alleen een vraag over;
- vi /var/www/covide/conf/offices.php.sample
vervang
switch($_SERVER["SERVER_NAME"]) {
case "covide.customer.a":
break;
case "covide.customer.b":
$dsn = "pgsql://postgressql:postgresql@tcp(localhost:5432)/covide";
break;
default :
die("No covide office configuration found for this url. Check conf/offices.php file content.");
break;
}
door
$dsn = "mysql://databaseuser:databasepassword@tcp(localhost:3306)/covide";
Hoe komt dit eruit te zien? Moet ik hele tekst vervangen door;
$dsn = "mysql://databaseuser:databasepassword@tcp(localhost:3306)/covide";
Zo ja, heb je hier een voorbeeld van?
Heb jij deze manual zelf in elkaar gezet of ergens vandaan gehaald en zo ja wat is de link daarnaar toe, i.v.m updates?
Groeten John K
Ik bedoel dat je dat stuk tekst helemaal vervangt door die regel.
Hier is een voorbeeld van hoe offices.php eruit moet gaan zien:
<?php
/**
* Configuration file for the database connection.
* In this file you can specify each office you are hosting.
* This is an example file that should be edited to your needs and then be copied to offices.php
*
* The dsn format is: databasetype://username:password@protocol(host:port)/database
* If databasetype is prefixed with 'pdo_' Covide will use the PHP builtin PDO classes.
* If not, Covide will use MDB2 abstraction classes.
*/
/* Connect to a database based on the url */
$dsn = "mysql://mijndatabasegebruiker:mijndatabasepassword@tcp(localhost:3306)/covide";
default :
if (is_dir("conf/offices.d") || is_dir($GLOBALS["autoloader_include_path"]."conf/offices.d")) {
if (is_dir("conf/offices.d")) {
$confpath = "conf/offices.d";
} else {
$confpath = sprintf("%s%s", $GLOBALS["autoloader_include_path"], "conf/offices.d");
}
$_conf_dh = opendir($confpath);
while (false !== ($_conf_file = readdir($_conf_dh))) {
if ($_conf_file != "." && $_conf_file != ".." && substr($_conf_file, -3) == "php") {
$_conffile = sprintf("%s/%s", $confpath, $_conf_file);
include($_conffile);
}
}
closedir($_conf_dh);
}
if (!$dsn) {
die("No covide office configuration found for this url. Check conf/offices.php file content.");
}
break;
}
/* run a contrib folder */
// $contrib["USE_CONTRIB_SCRIPT"] = "covide";
/* set certificate file */
// $certificate = "conf/server.crt";
/* offload beagle to an external index machine */
// $beagle["prefix"] = "ssh -C 192.168.1.2 -p 1026 -l www-data";
// $beagle["home"] = "/var/indexinfo";
/* do 'page'-less cms rewrites (without the /page/ folder) */
// $cms["page_less_rewrites"] = 1;
/* set php binary path for the cms (used in lint checks) */
// $cms["phpbin"] = "/usr/bin/php5";
/* some extra settings */
/* use cms rewriting schema without the /page/ folder */
// $cms["page_less_rewrites"] = 1;
/* use a minimalistic version of the cms footer in the website */
// $cms["minimal_footer"] = 1;
/* disable the static gzip compression */
// $html["no_static_gzip_compression"] = 1;
/* define a custom pagesize settings */
// $html["custom_pagesize"] = array(
// 5 => 5,
// 10 => 10,
// 20 => 20,
// 25 => 25,
// 50 => 50,
// 100 => 100,
// 150 => 150,
// 200 => 200
//);
/* specify some custom smtp settings
// $smtp = array(
// "server_hostname" => "localhost",
// "server_port" => 174,
// "server_timeout" => 60,
// "helo" => "covide.localhost",
// "tls" => 1,
// "auth_enable" => 1,
// "auth_username" => "covide",
// "auth_password" => "mysmtppass",
// "logscript" => "/usr/local/bin/covidelog.php"
//);
/* define a custom polling interval */
// example log script for smtp[logscript]
/*
#!/usr/bin/php
<?php
$params = $argv;
$message = sprintf("covide.%s", $params[1]);
$from = $params[2];
$rcpt = explode(",", $params[3]);
$size = $params[4] + 1024; // 1024 = average header size
// now do whatever you like to do with it ;)
*/
//$voip["polling_interval"] = 30;
/* define custom virus settings */
// $virus["conf"] = array(
// "enable_fprot" => 0,
// "enable_clamav" => 1
//);
/* set this to use database driven session store */
//$conf["sessions"] = "database";
?>
Helaas heb ik niet van het internet maar heb ik de handleiding gemaakt door het programma te installeren op een virtual machine met ubuntu erop.
Hier gaat het ook fout;
:~# mv covide*/* /var/www/covide
mv: cannot stat `covide*/*': No such file or directory
:~# chown -R www-data:www-data /var/www/covide:/var/covide_files
chown: cannot access `/var/www/covide:/var/covide_files': No such file or directory
:~# chmod -R 770 /var/www/covide:/var/covide_files
chmod: cannot access `/var/www/covide:/var/covide_files': No such file or directory
Kun jij zien wat er mis gaat?
Groeten John K
In alle drie de regels staat dat het bestand of de map niet bestaat dus ik zou denken dat je een misschien een paar stappen gemist hebt.
- wget http://downloads.sourceforge.net/project/covide/covide/covide-9.1.2/covide-9.1.2.tar.gz
- tar xvzf covide*.tar.gz
De handleiding moet echt letterlijk stap voor stap gevolgd worden, anders werkt het niet correct. om te kijken of de map echt bestaat kan je het volgende commando gebruiken:
ls covide*/
ls /var/www/covide
ls /var/covide_files
Als je er niet uit komt, deel de output dan met ons zodat we je verder kunnen helpen. Ook kan je dan proberen vanaf stap 1 te beginnen. covide installeren lukte mij ook niet de eerste keer.
Hoop je verder te kunnen helpen,
Groeten,
Badboy4live