HASANDIZ
asked on
PHP Config File
I have this php web site that I have to make it run under IIS with mysql. here is the code for config.php
I cant get it run please help
in apachee server lines with define works fine but on IIS I couldnt define them correctly. what am I doing wrong. I am not a php person :(
<?php
//DIR
// DIR
// define('DIR_APPLICATION', '/home2/topo5249/public_ht ml/kitap1/ catalog/') ;
// define('DIR_SYSTEM', '/home2/topo5249/public_ht ml/kitap1/ system/');
// define('DIR_DATABASE', '/home2/topo5249/public_ht ml/kitap1/ system/dat abase/');
// define('DIR_LANGUAGE', '/home2/topo5249/public_ht ml/kitap1/ catalog/la nguage/');
// define('DIR_TEMPLATE', '/home2/topo5249/public_ht ml/kitap1/ catalog/vi ew/theme/' );
// define('DIR_CONFIG', '/home2/topo5249/public_ht ml/kitap1/ system/con fig/');
// define('DIR_IMAGE', '/home2/topo5249/public_ht ml/kitap1/ image/');
// define('DIR_CACHE', '/home2/topo5249/public_ht ml/kitap1/ system/cac he/');
// define('DIR_DOWNLOAD', '/home2/topo5249/public_ht ml/kitap1/ download/' );
// define('DIR_LOGS', '/home2/topo5249/public_ht ml/kitap1/ system/log s/');
// Config Overrides
// See: http://expressionengine.com/wiki/Config_Overrides/
// See: http://expressionengine.com/wiki/Hidden_Configuration_Variables/
$CFG->wwwroot = 'http://www.gulver.com.tr';
$CFG->dirroot = 'C:\Gulver Web Production\';
$CFG->DIR_SYSTEM = 'C:\Gulver Web Production\SYSTEM';
$CFG->DIR_DATABASE = 'C:\Gulver Web Production\SYSTEM\DATABASE ';
$CFG->DIR_LANGUAGE = 'C:\Gulver Web Production\catalog\languag e\';
$CFG->DIR_TEMPLATE = 'C:\Gulver Web Production\catalog\view\th eme\';
$CFG->DIR_CONFIG = 'C:\Gulver Web Production\SYSTEM\CONFIG\' ;
$CFG->DIR_IMAGE = 'C:\Gulver Web Production\IMAGE\';
$CFG->DIR_DOWNLOAD = 'C:\Gulver Web Production\DOWNLOAD\';
$CFG->DIR_CACHE = 'C:\Gulver Web Production\SYSTEM\CACHE\';
$CFG->DIR_LOGS = 'C:\Gulver Web Production\SYSTEM\LOGS\';
//DB
$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'mydbname';
$CFG->dbuser = 'myDbSuer';
$CFG->dbpass = 'myDbPasswrd';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';
?>
I cant get it run please help
in apachee server lines with define works fine but on IIS I couldnt define them correctly. what am I doing wrong. I am not a php person :(
<?php
//DIR
// DIR
// define('DIR_APPLICATION', '/home2/topo5249/public_ht
// define('DIR_SYSTEM', '/home2/topo5249/public_ht
// define('DIR_DATABASE', '/home2/topo5249/public_ht
// define('DIR_LANGUAGE', '/home2/topo5249/public_ht
// define('DIR_TEMPLATE', '/home2/topo5249/public_ht
// define('DIR_CONFIG', '/home2/topo5249/public_ht
// define('DIR_IMAGE', '/home2/topo5249/public_ht
// define('DIR_CACHE', '/home2/topo5249/public_ht
// define('DIR_DOWNLOAD', '/home2/topo5249/public_ht
// define('DIR_LOGS', '/home2/topo5249/public_ht
// Config Overrides
// See: http://expressionengine.com/wiki/Config_Overrides/
// See: http://expressionengine.com/wiki/Hidden_Configuration_Variables/
$CFG->wwwroot = 'http://www.gulver.com.tr';
$CFG->dirroot = 'C:\Gulver Web Production\';
$CFG->DIR_SYSTEM = 'C:\Gulver Web Production\SYSTEM';
$CFG->DIR_DATABASE = 'C:\Gulver Web Production\SYSTEM\DATABASE
$CFG->DIR_LANGUAGE = 'C:\Gulver Web Production\catalog\languag
$CFG->DIR_TEMPLATE = 'C:\Gulver Web Production\catalog\view\th
$CFG->DIR_CONFIG = 'C:\Gulver Web Production\SYSTEM\CONFIG\'
$CFG->DIR_IMAGE = 'C:\Gulver Web Production\IMAGE\';
$CFG->DIR_DOWNLOAD = 'C:\Gulver Web Production\DOWNLOAD\';
$CFG->DIR_CACHE = 'C:\Gulver Web Production\SYSTEM\CACHE\';
$CFG->DIR_LOGS = 'C:\Gulver Web Production\SYSTEM\LOGS\';
//DB
$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'mydbname';
$CFG->dbuser = 'myDbSuer';
$CFG->dbpass = 'myDbPasswrd';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';
?>
ASKER
my phpinfo.php works fine, but my index.php does not
http://www.gulver.com.tr/phpinfo.php
http://www.gulver.com.tr/phpinfo.php
ASKER
I need to make these lines to define these directories that my application uses.
// define('DIR_APPLICATION', '/home2/topo5249/public_ht ml/kitap1/ catalog/') ;
// define('DIR_SYSTEM', '/home2/topo5249/public_ht ml/kitap1/ system/');
// define('DIR_DATABASE', '/home2/topo5249/public_ht ml/kitap1/ system/dat abase/');
// define('DIR_LANGUAGE', '/home2/topo5249/public_ht ml/kitap1/ catalog/la nguage/');
// define('DIR_TEMPLATE', '/home2/topo5249/public_ht ml/kitap1/ catalog/vi ew/theme/' );
// define('DIR_CONFIG', '/home2/topo5249/public_ht ml/kitap1/ system/con fig/');
// define('DIR_IMAGE', '/home2/topo5249/public_ht ml/kitap1/ image/');
// define('DIR_CACHE', '/home2/topo5249/public_ht ml/kitap1/ system/cac he/');
// define('DIR_DOWNLOAD', '/home2/topo5249/public_ht ml/kitap1/ download/' );
// define('DIR_LOGS', '/home2/topo5249/public_ht ml/kitap1/ system/log s/');
// define('DIR_APPLICATION', '/home2/topo5249/public_ht
// define('DIR_SYSTEM', '/home2/topo5249/public_ht
// define('DIR_DATABASE', '/home2/topo5249/public_ht
// define('DIR_LANGUAGE', '/home2/topo5249/public_ht
// define('DIR_TEMPLATE', '/home2/topo5249/public_ht
// define('DIR_CONFIG', '/home2/topo5249/public_ht
// define('DIR_IMAGE', '/home2/topo5249/public_ht
// define('DIR_CACHE', '/home2/topo5249/public_ht
// define('DIR_DOWNLOAD', '/home2/topo5249/public_ht
// define('DIR_LOGS', '/home2/topo5249/public_ht
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.dreamincode.net/forums/topic/39791-installing-and-configuration-iisphpmysql/