Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4599

http://localhost:80/ocsinventory error 500

$
0
0
When i tried to do  a Local Import i received the error 500 each time.  I validated the configuration on both file
/etc/httpd/conf.d/z-ocsinventory-server.conf and /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php

# Which version of mod_perl we are using

  # For mod_perl <= 1.999_21, replace 2 by 1

  # For mod_perl > 1.999_21, replace 2 by 2

  PerlSetEnv OCS_MODPERL_VERSION 2

  # Master Database settings

  # Replace localhost by hostname or ip of MySQL server for WRITE

  PerlSetEnv OCS_DB_HOST localhost

  # Replace 3306 by port where running MySQL server, generally 3306

  PerlSetEnv OCS_DB_PORT 3306

  # Name of database

  PerlSetEnv OCS_DB_NAME ocsweb

  PerlSetEnv OCS_DB_LOCAL ocsweb

  # User allowed to connect to database

  PerlSetEnv OCS_DB_USER ocs

  # Password for user

  PerlSetVar OCS_DB_PWD !mdf1Ocs!

  # Slave Database settings

  # Replace localhost by hostname or ip of MySQL server for READ

  # Useful if you handle mysql slave databases

  # PerlSetEnv OCS_DB_SL_HOST localhost

  # Replace 3306 by port where running MySQL server, generally 3306

  # PerlSetEnv OCS_DB_SL_PORT_SLAVE 3306

  # User allowed to connect to database

  # PerlSetEnv OCS_DB_SL_USER ocs

  # Name of the database

  # PerlSetEnv OCS_DB_SL_NAME ocsweb

  # Password for user

  # PerlSetVar OCS_DB_SL_PWD ocs

  # Path to log directory (must be writeable)

  PerlSetEnv OCS_OPT_LOGPATH "/var/log/ocsinventory-server"

  # If you need to specify a mysql socket that the client's built-in

  #PerlSetEnv OCS_OPT_DBI_MYSQL_SOCKET "path/to/mysql/unix/socket"

  # DBI verbosity

  PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0

  # Unicode support

  PerlSetEnv OCS_OPT_UNICODE_SUPPORT 1

  # If you are using a multi server architecture,

  # Put the ip addresses of the slaves on the master

  # (This is read as perl regular expressions)

  PerlAddVar OCS_OPT_TRUSTED_IP 127.0.0.1

  #PerlAddVar OCS_OPT_TRUSTED_IP XXX.XXX.XXX.XXX

 
====================================================================================================================================================================================================

 
<?php

define("DB_NAME", "ocsweb");

define("SERVER_READ","localhost");

define("SERVER_WRITE","localhost");

define("COMPTE_BASE","ocs");

define("PSWD_BASE","!mdf1Ocs!");

?>

Viewing all articles
Browse latest Browse all 4599

Trending Articles