Deutsche Version English Version
Replacement Tags
Content Parts
Links
Imprint
 


Latest Final Version:

phpwcms 1.3.0
RELEASED: 07.03.2007

more...



phpmyfaq - the faq system
phpmyfaq - the faq system
ADS

 
 

English > Installation & Upgrade > Config Files > conf.inc.php > RC 1.1


conf.inc.php

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-45 -> 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-46 -> path settings (NB: It is advisable to keep these folders the same as the installation)
38 $phpwcms["root"] = ""; If you install phpWCMS in a subfolder, type in the name of the subfolder.
39 $phpwcms["file_path"] = "phpwcms_filestorage"; Path to the filestorage folder. These are stored folders and files of the different users of phpWCMS.
40 $phpwcms["file_tmp"] = "phpwcms_tmp"; Name of the tmp folder.
41 $phpwcms["templates"] = "phpwcms_template"; Name of the template folder.
42 $phpwcms["dir_thlist"] = "thumb_list"; Name of the thumbnails folder.
43 $phpwcms["dir_preview"] = "thumb_preview"; Name of the preview folder.
44 $phpwcms["content_path"] = "content"; Name of the content folders.
45 $phpwcms["cimage_path"] = "images"; Name of the ftp folder.
46 $phpwcms["ftp_path"] = "phpwcms_ftp"; Name of the ftp folder.
 
Row 49-55 -> Content Settings
49 $phpwcms["file_maxsize"] = 52428800; //Bytes (50 x 1024 x 1024) Setting the maximum file size.
50 $phpwcms["content_width"] = 538; Setting the "Content Part" width in pixels.
51 $phpwcms["img_list_width"] = 100; Maximum height of the Thumbnails in pixels.
52 $phpwcms["img_list_height"] = 75; Maximum width of the Thumbnails in pixels.
53 $phpwcms["img_prev_width"] = 538; Preview image maximum width in pixels.
54 $phpwcms["img_prev_height"] = 538; Maximum height of the Thumbnails in pixels.
55 $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 58-72 -> miscellaneous
58 $phpwcms["compress_page"] = 3; Here you can switch Page Compression on/off.
Value:0 = off /1-9 = on / 9 is highest compression.
59 $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.
60 $phpwcms["imagick_path"] = ""; //Path to ImageMagick If you use ImageMagick you need to type in the path. Usually: /usr/bin or /usr/bin/convert.
61 $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
62 $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.
63 $phpwcms["wysiwyg_editor"] = 1; Which WYSIWYG Editor should be used;
Values: 0 = no editor / 1 = HTMLarea / 2 = FCKeditor / 3 = Brwoser based / 4 = Spaw
64 $phpwcms["phpmyadmin"] = 1; Value: 0 = Off / 1 = ON.
Note: You need to upload phpmyadmin for this to work. Directory /include/inc_ext/phpMyAdmin
65 $phpwcms["default_lang"] = "en"; Selecting the default language for the administration (backend). You can only use the languages which are available for phpWCMS. For a list of the language settings.
66 $phpwcms["charset"] = "iso-8859-1"; Selecting which character set to use. The standard is iso-8859-1. An overview of all character sets can be viewed here.
67 $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.
68 $phpwcms["gt_mod"] = 0; Here you can activate Graphical Text (GT Mod). Default = 0 OFF / 1 = ON.
69 $phpwcms["jpg_quality"] = 75; Setting the JPG quality in %.
Value: 25-100 / Default = 75.
70 $phpwcms["sharpen_level"] = 1; If you use ImageMagick you have the option to sharpen your pictures. 
Value: 0 = OFF / 1 = smooth, 5 = extra sharp.
71 $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.
72 $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.
 
Row 75-77 -> SSL Settings
75 $phpwcms["site_ssl_mode"] = "0"; Not available.
76 $phpwcms["site_ssl_url"] = ""; Not available.
77 $phpwcms["site_ssl_port"] = "443"; Not available.
 
Row 80-87 // SMTP Settings (For sending emails)
80 $phpwcms['SMTP_FROM_EMAIL'] = 'info@localhost'; Type in the email address which should be shown when an email is sent by the contact form.
81 $phpwcms['SMTP_FROM_NAME'] = 'My Name'; Type in the name which should be shown when an email is sent by the contact form.
82 $phpwcms['SMTP_HOST'] = 'localhost'; Type in the SMTP Host to send mails from.
83 $phpwcms['SMTP_PORT'] = 25; Type in the port for sendiing mails by the SMTP. The standard is port 25.
84 $phpwcms['SMTP_MAILER'] = 'mail'; Selecting how emails are sent.
Default = mail (phpmailer) / SMTP / sendmail.
85 $phpwcms['SMTP_AUTH'] = 0; If you have to log onto the mailserver you have to change this 0 to 1
86 $phpwcms['SMTP_USER'] = 'user'; Type in here the username for SMTP use.
87 $phpwcms['SMTP_PASS'] = 'pass'; Type in the SMTP password.
 
Row 92
92 //$_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: 2005/07/18 Last Changes: 2005/05/29
 
In case you find any mistakes or have enhancments, please use this form .

Have you found this website a helpful resource in understanding the Phpwcms content management system? If so, would you consider making a donation? Please click here: PayPal. We welcome any donation amount. Your contribution helps make this website an even better resource and helps underwrite the associated server expenses of accomodating a growing number of visitors.
This page use the version: