Link to home
Start Free TrialLog in
Avatar of HASANDIZ
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_html/kitap1/catalog/');
// define('DIR_SYSTEM', '/home2/topo5249/public_html/kitap1/system/');
// define('DIR_DATABASE', '/home2/topo5249/public_html/kitap1/system/database/');
// define('DIR_LANGUAGE', '/home2/topo5249/public_html/kitap1/catalog/language/');
// define('DIR_TEMPLATE', '/home2/topo5249/public_html/kitap1/catalog/view/theme/');
// define('DIR_CONFIG', '/home2/topo5249/public_html/kitap1/system/config/');
// define('DIR_IMAGE', '/home2/topo5249/public_html/kitap1/image/');
// define('DIR_CACHE', '/home2/topo5249/public_html/kitap1/system/cache/');
// define('DIR_DOWNLOAD', '/home2/topo5249/public_html/kitap1/download/');
// define('DIR_LOGS', '/home2/topo5249/public_html/kitap1/system/logs/');
// 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\language\';
$CFG->DIR_TEMPLATE  = 'C:\Gulver Web Production\catalog\view\theme\';
$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_';
?>
Avatar of Anuroopsundd
Anuroopsundd
Flag of India image

please go through below link to have PHP with MYsql on IIS. their can be many other things which may be breaking.. like environment variables.

http://www.dreamincode.net/forums/topic/39791-installing-and-configuration-iisphpmysql/
Avatar of HASANDIZ
HASANDIZ

ASKER

my phpinfo.php works fine, but my index.php does not
http://www.gulver.com.tr/phpinfo.php
I need to make these lines to define these directories that my application uses.

// define('DIR_APPLICATION', '/home2/topo5249/public_html/kitap1/catalog/');
// define('DIR_SYSTEM', '/home2/topo5249/public_html/kitap1/system/');
// define('DIR_DATABASE', '/home2/topo5249/public_html/kitap1/system/database/');
// define('DIR_LANGUAGE', '/home2/topo5249/public_html/kitap1/catalog/language/');
// define('DIR_TEMPLATE', '/home2/topo5249/public_html/kitap1/catalog/view/theme/');
// define('DIR_CONFIG', '/home2/topo5249/public_html/kitap1/system/config/');
// define('DIR_IMAGE', '/home2/topo5249/public_html/kitap1/image/');
// define('DIR_CACHE', '/home2/topo5249/public_html/kitap1/system/cache/');
// define('DIR_DOWNLOAD', '/home2/topo5249/public_html/kitap1/download/');
// define('DIR_LOGS', '/home2/topo5249/public_html/kitap1/system/logs/');
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial