You are here: English > The Docu > Installation & Upgrade > Config Files > conf.inc.php

conf.inc.php

> 1.2.x

The conf.inc.php is the most important file in phpWCMS. You can change all the main system settings in this file. Below are descriptions of each line found in the config file.
Row 26-31 -> Database Settings
26 $phpwcms["db_host"] = "localhost"; Type in the host of your database.
27 $phpwcms["db_user"] = ""; Type in the username of the database.
28 $phpwcms["db_pass"] = ""; Type in the password of the database.
29 $phpwcms["db_table"] = ""; Type in the password of the database.
30 $phpwcms["db_prepend"] = ""; If you decided to make a prefix for your database tables, it has to be written down here. Note: you need to add an "_" after your prefix eg. "mycms_"
31 $phpwcms["db_pers"] = 1; If the connection to the database should be always online (default: 1) or before every request opened and closed (default: 0) .
It is recommended to keep this to 1.
 
Row 34-35 -> Website Settings
34 $phpwcms["site"] = "http://www.phpwcms.de/"; Type in the domain name. It has to end with a "/" .
35 $phpwcms["admin_email"] = ""; Type in the Webmaster/Administrator email address.
 
Row 38-44 -> path settings (NB: It is advisable to keep these folders the same as the installation)
38 $phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT']; Normally no changes are needed
39 $phpwcms["root"] = ""; If you install phpWCMS in a subfolder, type in the name of the subfolder. Normally you could leave this empty.
40 $phpwcms["file_path"] = "phpwcms_filestorage"; Path to the filestorage folder. These are stored folders and files of the different users of phpWCMS.
41 $phpwcms["templates"] = "phpwcms_template"; Name of the template folder.
42 $phpwcms["content_path"] = "content"; Name of the content folders.
43 $phpwcms["cimage_path"] = "images"; Name of the images folder.
44 $phpwcms["ftp_path"] = "phpwcms_ftp"; Name of the ftp folder.
 
Row 47-53 -> Content Settings
47 $phpwcms["file_maxsize"] = 52428800; //Bytes (50 x 1024 x 1024) Setting of the maximum file size.
48 $phpwcms["content_width"] = 538; Setting of the "Content Part" width in pixels.
49 $phpwcms["img_list_width"] = 100; Maximum height of the thumbnails in pixels.
50 $phpwcms["img_list_height"] = 75; Maximum width of the thumbnails in pixels.
51 $phpwcms["img_prev_width"] = 538; Preview image maximum width in pixels.
52 $phpwcms["img_prev_height"] = 538; Maximum height of the thumbnails in pixels.
53 $phpwcms["max_time"] = 1800;

Login time out. After 1800 seconds (30 minutes) of no activity you will be automatically logged out. Administration section only.

 
Row 56-71 -> miscellaneous
56 $phpwcms["compress_page"] = 3; Here you can switch page compression on/off.
Value:0 = off /1-9 = on / 9 is highest compression.
57 $phpwcms["imagick"] = 0; //if 0 = GD, 1 = ImageMagick convert, 2 = ImageMagick 4.2.9 Here you determine which graphic library you want to use. (GD is an ingredient of PHP) Some providers offer ImageMagick. 
Possibilities are: Value 0 = GD1 / 1 = ImageMagick convert / 2 = Image Magick 4.2.9.
68 $phpwcms["imagick_path"] = ""; //Path to ImageMagick If you use ImageMagick you need to type in the path. Usually: /usr/bin or /usr/bin/convert.
59 $phpwcms["use_gd2"] = 1; //if 0 = GD1, 1 = GD2 GD has 2 versions. Use phpinfo to determine this. GD2 is the latest. 
Values: 0 = GD1 / 1 = GD2
60 $phpwcms["rewrite_url"] = 0; Here you can switch on REWRITE. You need to rename the _.htaccess to .htaccess in the rootfolder in your phpwcms installation.
61 $phpwcms["wysiwyg_editor"] = 1; Which WYSIWYG Editor should be used;
Values: 0 = no editor / 1 = HTMLarea / 2 = FCKeditor / 3 = Brwoser based / 4 = Spaw
62 $phpwcms["phpmyadmin"] = 1; Value: 0 = Off / 1 = ON.
Note: You need to upload phpmyadmin for this to work. Directory /include/inc_ext/phpMyAdmin
63 $phpwcms["default_lang"] = "en"; Selecting the default language for the administration (backend). You can only use the languages which are available for phpwcms. Klick here for a list of the language settings.
64 $phpwcms["charset"] = "iso-8859-1"; Select which character set you want to use. The standard is iso-8859-1. An overview of all character sets can be viewed here.
65 $phpwcms["allow_remote_URL"] = 0; If you want to use the Tag {PHP:...} to allow remote URL's switch this on.
Default is 0 = OFF. / 1 = URL allowed.
66 $phpwcms["gt_mod"] = 0; Here you can activate Graphical Text (GT Mod). Default = 0 OFF / 1 = ON.
67 $phpwcms["jpg_quality"] = 75; Setting the JPG quality in %.
Value: 25-100 / Default = 75.
68 $phpwcms["sharpen_level"] = 1; If you use ImageMagick you have the option to sharpen your pictures. 
Value: 0 = OFF / 1 = smooth, 5 = extra sharp.
69 $phpwcms["allow_ext_init"] = 0; This function allows you to load your own PHP scripts before phpWCMS is loaded.
Your files are stored in the following directory:
/phpwcms_template/inc_script/frontend_init
Default: 0 = Forbidden / 1 = Allowed.
70 $phpwcms["allow_ext_render"] = 0; If you use existing functions from the INIT folder for rendering the page, these files can be rendered from the directory
/phpwcms_template/inc_script/frontend_render
Default: 0 = Forbidden / 1 = Allowed.
71 $phpwcms["cache_timeout"] = 14400; Maximal time until the cache will be renewed.
74 $phpwcms["imgext_disabled"] = "" If you want to control which extensions should be viewed in the image preview list, you can setup here for which extensions no preview images will be created.

Example:
"pdf,ps"

In this case for pdf and ps files no preview image will be created.
75 $phpwcms["multimedia_ext"] = "aif,aiff,mov,movie,mp3,mpeg,
mpeg4,mpeg2,wav,swf,swc,ram,ra,
wma,wmv,avi,au,midi,moov,rm,rpm,
mid,midi";
Here you can decide which extensions are available in the content part multimedia
76 $phpwcms["recipient_count"] = 0;

Here can define how many newsletters will be send in one pass so that the script exec. time will not exceed.

Possible settings:
0= all newsletters will be send at the same time

If you set the value e.g. to 100, the newsletter will be send in blocks of 100 receivers until the whole list is processed.

77 $phpwcms["inline_download"] = 1;

Here you can decide if an download will be opened in an new browser window or the same browser window.

1 = Download will be opened in the same browser window
0 = Download will be opened in an new browser window.

 
Row 80-82 -> SSL Settings
80 $phpwcms["site_ssl_mode"] = "0"; Not available.
81 $phpwcms["site_ssl_url"] = ""; Not available.
82 $phpwcms["site_ssl_port"] = "443"; Not available.
 
Row 85-92 // SMTP Settings (For sending emails)
85 $phpwcms['SMTP_FROM_EMAIL'] = 'info@localhost'; Type in the email address which should be shown when an email is sent by the contact form.
86 $phpwcms['SMTP_FROM_NAME'] = 'My Name'; Type in the name which should be shown when an email is sent by the contact form.
87 $phpwcms['SMTP_HOST'] = 'localhost'; Type in the SMTP Host to send mails from.
88 $phpwcms['SMTP_PORT'] = 25; Type in the port for sendiing mails by the SMTP. The standard is port 25.
89 $phpwcms['SMTP_MAILER'] = 'mail'; Selecting how emails are sent.
Default = mail (phpmailer) / SMTP / sendmail.
90 $phpwcms['SMTP_AUTH'] = 0; If you have to log onto the mailserver you have to change this 0 to 1
91 $phpwcms['SMTP_USER'] = 'user'; Type in here the username for SMTP use.
92 $phpwcms['SMTP_PASS'] = 'pass'; Type in the SMTP password.
 
Row 97
97 //$_SERVER[’DOCUMENT_ROOT’] = ’/home/www’; This is only needed if you are having problems on IIS or MacOS X. Consult the forum for help.


Article created: Monday, 13. December 2004
Last Changes: Tuesday, 4. January 2011