JaguarPC managed web hosting logo
JaguarPC HomeWeb Hosting ForumHosting client login
Hosting Sales - 1.800.558.5869
Order Web Hosting Now
WEB HOSTING BLOG

« Back to the Blog homepage

Archive for the ‘Control Panels’ Category

When accessing log folder for a HELM domain via FTP user receives “Access Denied”

Posted on September 17th, 2006 by Jag

Hey everyone,


Problem :


When a user attempts to access their log folder of a domain which uses MSFTP as the FTP server they receive an access denied error message.


CAUSE :


MSFTP uses Windows NT users for user permissions. It is the permissions provided to the NT user that allow or restrict access to the Windows file system. For a user to be able to access a folder NT FTP account needs the appropriate permissions. By default this account is domain.com


However a new security “enhancement” of Windows 2003 is to remove inheritance for log folders such as W3SVC folders. As this folder is created without inheritance the domain.com NT user is not given the correct permissions on this folder, thereby restricting access via FTP.


RESOLUTION :


The server administrator can add the relevant permissions to the W3SVC folder however IIS may revert the permissions to as they were previously whenever a new log file is created.


The other solution is to use a non NT reliant FTP server such as Gene6 or Serv-U (Both of which are supported by HELM).


Best Regards,

Shane Bewick

Enjoy

Filed under Control Panels | No Comments »

How to reset linux plesk admin password

Posted on September 17th, 2006 by Jag

cat /etc/psa/.psa.shadow (This holds psa admin password)

/etc/rc.d/init.d/psa stop (This stops Plesk and everything it runs.) #/usr/local/psa/mysql/bin/safe_mysqld—skip-grant-tables & or

/usr/bin/safe_mysqld—skip-grant-tables & (This starts up MySQL, bypassing the grant [password] tables.)

/usr/local/psa/mysql/bin/mysql mysql (You’re now in a mysql command line.)

use mysql;

FLUSH PRIVILEGES; (This flushes everything out – too long to explain.)

SET PASSWORD FOR admin=PASSWORD; (Type that exactly as above, where ‘your-password-here’ is.

exit (You exit the mysql command line and return to root.)

killall mysqld or

/etc/rc.d/init.d/mysqld restart (Shuts down the mysql daemon.)

/etc/rc.d/init.d/psa start (Starts Plesk back up, which restarts the mysql daemon which has your new password in it.)

Have fun!

Alex :)

Filed under Control Panels | No Comments »

Host a site on a dedicated IP with HELM

Posted on September 17th, 2006 by Jag

Hey everyone,


There are times when it is necessary to host a domain on a dedicated IP. This could becuase you want to install an SSL certificate or becuase of the sites requirements. Either way it is possible to set the site to be hosted on a dedicated IP from within the Helm interface.


Firstly you will need a spare IP address hosting nothing else. This IP will need to be already set-up on your server. You will now need to log in to Helm as the Admin. From the main menu select


System Settings > IP Address Manager


You will now be presented with a list of IP’s and servers already set-up in Helm. Click the Add New button to add a new IP address. You will now see the following :



In the External IP Address enter the IP address you will be using for the dedicated website. Leave the last box (after the to) blank. This is used for entering a sequence of IP addresses. Only enter an IP address in the Internal IP Address if you are hosting with a NAT system and all your external IP’s are translated to internal IP’s. Select the Server the website is hosted on that requires the dedicated IP from the drop down menu. Click Save.


Once added click in the IP Management link at the top of the screen below the header.You will now be presented with a list of IP’s already in Helm, this time containing the IP address you have just added. Click on the IP address you have just added in the list, you will now see something similiar to the following :



Check the box Static IP Address box and click Save


You have now made this IP address available for use as a dedicated IP. You can add many more IP’s leaving them unassigned in Helm for future use as dedicated IP’s of you want.


Now we have to change the website in question to a dedicated IP. In the Domains Search box in the left hand pane enter the domain name you want to host on a dedicated IP. Helm will search and then display this domain (the domain must already exist in Helm). You will now be able to see all the icons available for managing this domain. Click the Web Site Settings icon. You will now see something like this



The drop down menu Change To will conatin a list of IP addresses that you have set to Static IP Address in the IP Management section. Simply select the IP address you want to use and then hit Save. The domain is now using a Static IP.


NOTES


There are some important points to note with the way Helm has created the site on the static IP. Helm makes the relevant DNS entry changes. It also adds the dedicated IP to the sites Host Headers. However the old host headers with the shared IP will remain. This is becuase it can take some DNS servers many hours to update their records therefore requests will still be sent to the shared IP. Helm does it like this to prevent the domain from being unavailable while the static IP propogates.


Best Regards,

Shane Bewick

Enjoy

Filed under Control Panels | No Comments »

QMAIL Tips

Posted on September 17th, 2006 by Jag

Hi Friends,

qmail is an alternative to sendmail. Plesk servers use qmail, and it may be installed on other Linux systems as well. Here are some tips and other general information on how to use and maintain qmail.

  • The author of qmail, D. J. Bernstein, has a web page at http://cr.yp.to . Links are provided here to software Bernstein has written, including qmail, djbdns (an alternative to BIND), daemontools (programs for supervising persistent processes such as network daemons), and ucspi-tcp (an alternative to inetd and xinetd).


  • The most-accepted method of installing and running qmail is defined by “Life with qmail”, or LWQ. Visit http://www.lifewithqmail.org for more details. Plesk generally has its own way of installing qmail, but LWQ will still be an excellent reference even for troubleshooting qmail on Plesk servers.


  • Other qmail tips and tools are available at http://www.qmail.org/top.html . Also provided here are links to searchable archives of the qmail mailing list.


  • To see how many messages are currently in the queue, use /var/qmail/bin/qmail-qstat (/usr/local/psa/qmail/bin/qmail-qstat on Plesk 2.5 servers).


  • For more detailed information about the messages currently in the queue, use /var/qmail/bin/qmail-qread (/usr/local/psa/qmail/bin/qmail-qread on Plesk 2.5 servers). This command is similar to the sendmail mailq command.


  • qmail’s configuration files are kept in /var/qmail/control (or /usr/local/psa/qmail/control). Together these files are equivalent to the sendmail.cf file (but much easier to read IMNSHO). LWQ provides an explanation of what each of these files is for, and so does “man qmail-control”. You may need to add the qmail man directory to the MANPATH environment variable for this man page to be found; if so, the directory is usually /var/qmail/man.


  • The qmail queue directory is typically /var/qmail/queue (or /usr/local/psa/qmail/queue). Do NOT manipulate the files in this directory UNLESS you know exactly what you are doing, and UNLESS qmail is not running! Otherwise, you WILL break the queue! There are several programs listed at qmail.org designed to allow safe manipulation of the queue. In particular, Charles Cazabon, the author of memtester, has also written a qmail queue repair program, available at http://www.qcc.ca/~charlesc/software/queue_repair/ .


  • Cazabon’s queuerepair program is particularly handy for wiping out qmail queues of servers being abused by spammers (usually courtesy of Plesk’s “open relay” option). The general steps are: stop qmail, move or delete the queue directory, run queuerepair with the appropriate options, then restart qmail. On Plesk 5 and 6 servers, the queue directory is /var/qmail/queue and qmailrepair should be run like so: “qmailrepair.py -c -s 23 -b”. For other servers, the queue directory will most likely be /var/qmail/queue (/usr/local/psa/qmail/queue for Plesk 2.5 servers), and qmailrepair will be run as either “qmailrepair.py -c -s XX -b /path/to/queue” or “qmail_repair.py -c -s XX -n /path/to/queue”. XX is the number of subdirectories within the queue’s info and mess directories; the “-b” option is used if there are subdirectories within the queue’s todo directory, and the “-n” option is used otherwise; “/path/to/queue” is optional if the queue directory is /var/qmail/queue.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You could run qmail-clean but that takes a long while.

Here is a quick and easy way to clear all email from the queue.
This will not remove anything it should not remove. It just clears
all email from the queue safely. This is just for qmail.
( Not for use with any other email programs )

1) login to your server via ssh
2) su – 3) wget http://wepraisehim.org/qmailclear.sh
5) sh qmailclear.sh
6) done.
<supportLineBreakNewLine]—>

Regards,
Alex :)

Filed under Control Panels | 2 Comments »

Internal Server Error

Posted on September 17th, 2006 by Jag

Just a quick note about “Internal Server Error” problems after upgrading Apache on these Plesk machines.


You may start getting the “500 Internal Server Error” errors after doing so, and that is because the upgraded Apache has overwritten the Plesk version of “suexec”, a handy little program that allows the webserver to run CGI-BIN programs.


However, you are in luck! Plesk keeps a copy of their modified version of “suexec” around on the box.


How-To restore suexec:

1. log in as the ‘root’ user on yer box.

2. cd /usr/sbin

3. mv suexec suexec.old (or whatever you want to call it)

4. cp psa-suexec suexec


Technical Jazz:

The problem is that Apache’s stock version of suexec doesn’t allow (for safety reasons) cgi-bin programs to be execute from any but underneath the MAIN Apache document root. Which, in the case of these Plesk servers is /var/www… since all the virtually hosted addresses live under /home/httpd/vhosts…, the stock Apache suexec doesn’t allow that. Modifying suexec is something of a hobby in the unix web administration world, so this isn’t entirely odd.


BTW, you can also check the /var/log/suexec.log to see what is being suexec’ed, and what errors are happening. The error you’ll see in this case is “command not in docroot”.

Enjoy :)

Alex

Filed under Control Panels | No Comments »

HOWTO: Configure MySQL to work with HELM

Posted on September 17th, 2006 by Jag

Hey everyone,


The most common problem encountered when configuring MySQL with Helm is that you think all has gone well and then the database creation fails. 99% of the time this is because the root user is set-up to allow local access only “root@localhost” whereas it should allow global connections, therefore be set-up as”root@%”


What follows is a step by step guide to getting MySQL installed and the relevant settings in place to work with Helm.


First of all download and install MySQL for windows from here. Once downloaded you will need to unzip the file and launch set-up. Typical install is fine for what we need. Next you need to install the MyODBC drivers. HELM supports 2.5 and 3.51 version of the MyODBC drivers. However for MySQL 4.1 you must use 3.51 drivers. In addition there have been some rogue 3.51 drivers in circulation. We suggest downloading and installing the drivers located here


When both of the above have been installed we now need to configure MySQL.


First of all we need an options file. This is a file that gives MySQL information about how it is to run. The option file allows great control over MySQL however you need the following as a bear minimum to get MySQL working.


Launch NotePad enter the following:


[mysqld]

  1. set basedir to your installation path

    basedir=C:/mysql
  2. set datadir to the location of your data directory

    datadir=C:/mysql/data


    Note the slashes are opposite to normal and this is intentional. The basedir is the directory you installed MySQL and the datadir is where you want the actual databases to be stored, this could be on a different drive or location if you wish.


    Save this file as my.ini in the C:WINDOWS directory. That is all we need to do for now but more information on the option file can be found here.


    Now on the server you need to launch your command line utility. This is normally done via Start > Run then type cmd and hit enter.


    I will assume that MySQL has been installed using the default path. If not you will have to amend the commands as appropriate.


    At the command prompt type


    cd C:mysqlbin


    This will change the current directory to the MySQL directory (assuming you have installed MySQL in the default location)


    First we need to ensure that MySQL is not running in the desktop session which can sometimes happen. At the command prompt type


    C:mysqlbinmysqladmin -u root shutdown


    If you receive an error about being unable to connect then this is fine as it means MySQL was not running.


    Now we need to install MySQL as a Windows Service so it can run while logged out of the server. To do this we need to type the following at the command prompt.


    C:mysqlbinmysqld—install mysql—defaults-file=C:windowsmy.ini


    This creates a Windows Service which when running will use the details provided in the my.ini file we created. More details on installing MySQL as a service can be found here.


    Next we need to start the MySQL service. At the command prompt type


    net start mysql


    MySQL is now running on the server. However we need to make a number of changes to the users that are setup by default, as in its present state both anonymous users and root users have no passwords allowing anyone to gain access.


    First we need to connect to the MySQL database, this is done again via the command prompt. At the command prompt type


    mysql -u root


    *Add -p at the end if you have already specified a root user password press enter and then type your password.


    You will now be connected to the MySQL server. Lets start by adding a new root user which allows connections from any host (required for Helm to function). At the command prompt type the following replacing password with the password you want to set for the root account.


    GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;


    To learn more about adding users in MySQL via the command prompt go here


    Now we need to make our server a little safer by removing all the anonymous accounts and root users with no password. Still at the command prompt type the following.


    NOTE: The first line is using two single quotes next to each other not a double quote. Press enter at the end of each line.


    DELETE FROM mysql.user WHERE User = ‘’;

    DELETE FROM mysql.user WHERE User=’root’ AND Host’%’;

    FLUSH PRIVILEGES;


    Next simply Type Exit and you will be logged out. MySQL is now configured with just one user root@% and the password you have set.


    Now we need to tell HELM about MySQL. Log in to HELM and go to System Settings > Servers > Servername then click Add New


    You will now be at the Add Service screen. Here you can select the Service Type and provide a Friendly Name for the service.



    Next we need to provide the MySQL connection information in the screen below




    For the Admin Username and Admin Password you must supply the root password as set earlier in this article. The Server IP Address is the IP address that MySQL is to run on. The Server Port should be left as default unless you have changed the MySQL port settings. For the ODBC Driver Version select 3.51 (unless you are running an old version of MySQL with the 2.5 drivers). The Maximum Databases is used when you want to balance MySQL across multiple servers. This allows you to tell HELM if you only want this server to host a maximum number of databases.


    Clicking Next will create the actual service.


    That’s all


    Best Regards,

    Shane Bewick

Filed under Control Panels | No Comments »

Unable to add new domain in plesk

Posted on September 17th, 2006 by Jag

While adding new domain in plesk control panel, getting following error.

Failed domain creation: Unable to update domain data: Unable to create dumps directory: domainmng failed: Run-Time error: Execute websrvmng—add-domain ‘’—domain-name=test.com’’ failed: COM Error 80070003( The system cannot find the path specified.) at reloadn1

Solution ::

The file websrvmng.exe exists in the c:program filesswsoftpleskadminbin directory and has correct permissions for Administrators and users.

Please backup all the data and then run the following from C:program filesswsoftpleskadminbin:

websrvmng—reconfigure-all

It reconfigures IIS according to the settings stored in the Plesk configuration database.

Regards,

Alex :)

Filed under Control Panels | No Comments »

Installing PHP 4.4.1 - Windows 2003

Posted on September 17th, 2006 by Jag

Hey everyone,


Here are steps on how to install PHP 4.4.1 – again, this is only if client has Helm or doesn’t have a control panel.


Login to VPS and browse to http://www.php.net/downloads.php. Make sure to download PHP 4.4.1 zip package [8,082Kb] – 31 Oct 2005 and NOT the installer.


Then browse to http://www.caraveo.com/fastcgi/ and dowload ISAPI/NSAPI binaries (11/03/2002).


Extract php4.4.1 archive into C:PHP and then “php4ts.dll” (not cut/paste, just copy) to C:WindowsSystem32


Unzip the FastCGI binary and copy isapi_fcgi.dll into C:PHP


Then we need to add PATH for PHP, right-click My Computer, choose Properties – Advanced tab – Environment Variables – and double-click the Path variable in the list of System variables.


At the end of the string add this:


;C:PHP


IF THERE IS ANYTHING ELSE AFTER C:PHP DO NOT PUT THE ; IN FRONT OF C:PHP – IT CAN NOT LOOK AS ;;C:PHP


This is to configure PHP to work as ISAPI: (to have it as cgi, scroll down)


Open IIS, expand local computer and click on ‘Web Service Extensions’. Click on ‘Add a new Web service extension…’ and for the name type in: PHP ISAPI Extensions, click ‘Add…’ button and select isapi_fcgi.dll in C:PHP. Check ‘Set extension status to Allowed’ and click OK.


Now add .php extension: right-click on ‘Web Sites’ in IIS, then choose Properties and click on Home Directory tab. Click ‘Configuration’, Mappings, click ‘Add’. Browse to isapi_fcgi.dll in C:PHP, click OK, and enter “.php” (without quotes) in the ‘Extension field’. Select ‘Limit to’ button and enter: GET,POST,HEAD


Ok ok ok ok. Right-click on Websites again and choose Properties and then Home directory. Change the “Execute permissions” dropdown to “Scripts only”. Also make sure that the ‘Read’ is checked in permissions you’ll see above. Click OK and select all sites and click ok.


Open the registry (regedit) and do the following:


Locate and expand “HKEY_LOCAL_MACHINE”, right-click on “Software” and select “New”, “Key” and type “FASTCGI”.


Right-click on your new “FASTCGI” key and select “New, “Key” and type “.php”.


Right-click on “.php”, select “New”, “String Value” and type “AppPath”. Double-click on this new value and type “c:PHPphp.exe”.


Right-click on “.php”, select “New”, “String Value” and type “BindPath”. Double-click on this new value and type “php-fcgi”.


Rename C:PHPphp.ini-recommended to php.ini and move to C:Windows


Then open php.ini and locate extension_dir. Make it like this:


extension_dir = “C:PHPextensions”


Save and restart IIS.



This is to configure PHP to work as CGI:


Open IIS, expand local computer and click on ‘Web Service Extensions’. Click on ‘Add a new Web service extension…’ and for the name type in: PHP CGI Extensions, click ‘Add…’ button and select php.exe in C:PHP. Check ‘Set extension status to Allowed’ and click OK.


Now add .php extension: right-click on ‘Web Sites’ in IIS, then choose Properties and click on Home Directory tab. Click ‘Configuration’, Mappings, click ‘Add’. Browse to php.exe in C:PHP, click OK, and enter “.php” (without quotes) in the ‘Extension field’. Select ‘Limit to’ button and enter: GET,POST,HEAD


Ok ok ok ok. Right-click on Websites again and choose Properties and then Home directory. Change the “Execute permissions” dropdown to “Scripts only”. Also make sure that the ‘Read’ is checked in permissions you’ll see above. Click OK and select all sites and click ok.


Open the registry (regedit) and do the following:


Locate and expand “HKEY_LOCAL_MACHINE”, right-click on “Software” and select “New”, “Key” and type “FASTCGI”.


Right-click on your new “FASTCGI” key and select “New, “Key” and type “.php”.


Right-click on “.php”, select “New”, “String Value” and type “AppPath”. Double-click on this new value and type “c:PHPphp.exe”.


Right-click on “.php”, select “New”, “String Value” and type “BindPath”. Double-click on this new value and type “php-fcgi”.


Rename C:PHPphp.ini-recommended to php.ini and move to C:Windows


Then open php.ini and locate extension_dir. Make it like this:


extension_dir = “C:PHPextensions”


MAKE SURE THAT YOU DISABLE FORCE REDIRECT, OTHERWISE CGI WON’T WORK. To do so, find cgi.force_redirect and make it look like this:


cgi.force_redirect = 0


Save and restart IIS.


Create under c:Inetpubwwwroot and load it in IE like http://localhost/test.php for example. It should work.
————


Best regards,

Shane Bewick

Enjoy

Filed under Control Panels, Windows Hosting | No Comments »

How to install PHP 5.0 on Helm

Posted on September 17th, 2006 by Jag

Hello,

Please refer the following steps to install PHP 5.0 if customer has HELM or doesn’t have control panel at all.

Download zip package (NOT the installer): http://www.php.net/get/php-5.0.5-Wi…p/from/a/mirror

Download PECL modules for PHP 5.05: http://www.php.net/get/pecl-5.0.5-W…p/from/a/mirror (more extensions)

Unzip php-5.0.5-Win32.zip and place it in C:PHP (it’s very important that you place it here due to php.ini).

Unzip pecl-5.0.5-Win32.zip and put it in C:PHPext

Go to C:PHP and create a new text file. Then save the attached file and rename it to php.ini.

Then we need to add PATH for PHP, right-click My Computer, choose Properties – Advanced tab – Environment Variables – and double-click the Path variable in the list of System variables.

At the end of the string add this:

;C:PHP

Click ok ok ok ok and reboot the server..

Then create a txt file on Desktop and paste this into it:

Windows Registry Editor Version 5.00

[HKEYLOCALMACHINESOFTWAREPHP]
“IniFilePath”=”C:PHP”

then rename the file to inifilepath.reg, double-click it and click yes. Now it’s added in Registry.

That part is configured, now you only need to set it in IIS:

Open it, expand local computer and click on ‘Web Service Extensions’. Click on ‘Add a new Web service extension…’ and for the name type in: PHP ISAPI Extensions, click ‘Add…’ button and select php5isapi.dll in C:PHP. Check ‘Set extension status to Allowed’ and click OK.

Now add .php extension: right-click on ‘Web Sites’ in IIS, then choose Properties and click on Home Directory tab. Click ‘Configuration’, Mappings, click ‘Add’. Browse to php5isapi.dll in C:PHP, click OK, and enter “.php” (without quotes) in the ‘Extension field’. Select ‘Limit to’ button and enter: GET,POST,HEAD

Ok ok ok ok. Right-click on Websites again and choose Properties and then Home directory. Change the “Execute permissions” dropdown to “Scripts only”. Also make sure that the ‘Read’ is checked in permissions you’ll see above. Click OK and select all sites and click ok.

Restart IIS and test if everything is working properly. Under some site, create a txt file and add:

Rename it to test.php and load it from your browser. If it’s showing PHP info, then it’s good.

Regards,

Alex :)

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

[PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP’s behavior. In order for PHP to
; read it, it must be named ‘php.ini’. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;

; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;

; Directives are specified using the following syntax:
; directive = value
; Directive names are case sensitive – foo=bar is different from FOO=bar.
;

; The value can be a string, a number, a PHP constant (e.g. EALL or MPI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. EALL & ~ENOTICE), or a quoted string (“foo”).
;

; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;

; foo = ; sets foo to an empty string
; foo = none ; sets foo to an empty string
; foo = “none” ; sets foo to the string ‘none’
;

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants after the line that loads the extension.
;

;
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This is the recommended, PHP 5-style version of the php.ini-dist file. It
; sets some non standard settings, that make PHP more efficient, more secure,
; and encourage cleaner coding.
;

; The price is that with these settings, PHP may be incompatible with some
; applications, and sometimes, more difficult to develop with. Using this
; file is warmly recommended for production sites. As all of the changes from
; the standard settings are thoroughly documented, you can go over each one,
; and decide whether you want to use it or not.
;

; For general information about the php.ini file, please consult the php.ini-dist
; file, included in your PHP distribution.
;

; This file is different from the php.ini-dist file in the fact that it features
; different values for several directives, in order to improve performance, while
; possibly breaking compatibility with the standard out-of-the-box behavior of
; PHP. Please make sure you read what’s different, and modify your scripts
; accordingly, if you decide to use this file instead.
;

; – registerglobals = Off [Security, Performance]
; Global variables are no longer registered for input data (POST, GET, cookies,
; environment and other server variables). Instead of using $foo, you must use
; you can use $
REQUEST[“foo”] (includes any variable that arrives through the
; request, namely, POST, GET and cookie variables), or use one of the specific
; $GET[“foo”], $POST[“foo”], $COOKIE[“foo”] or $FILES[“foo”], depending
; on where the input originates. Also, you can look at the
; importrequestvariables() function.
; Note that registerglobals is going to be depracated (i.e., turned off by
; default) in the next version of PHP, because it often leads to security bugs.
; Read http://php.net/manual/en/security.registerglobals.php for further
; information.
; – register
longarrays = Off [Performance]
; Disables registration of the older (and deprecated) long predefined array
; variables ($HTTP
*VARS). Instead, use the superglobals that were
; introduced in PHP 4.1.0
; – display
errors = Off [Security]
; With this directive set to off, errors that occur during the execution of
; scripts will no longer be displayed as a part of the script output, and thus,
; will no longer be exposed to remote users. With some errors, the error message
; content may expose information about your script, web server, or database
; server that may be exploitable for hacking. Production sites should have this
; directive set to off.
; – logerrors = On [Security]
; This directive complements the above one. Any errors that occur during the
; execution of your script will be logged (typically, to your server’s error log,
; but can be configured in several ways). Along with setting display
errors to off,
; this setup gives you the ability to fully understand what may have gone wrong,
; without exposing any sensitive information to remote users.
; – outputbuffering = 4096 [Performance]
; Set a 4KB output buffer. Enabling output buffering typically results in less
; writes, and sometimes less packets sent on the wire, which can often lead to
; better performance. The gain this directive actually yields greatly depends
; on which Web server you’re working with, and what kind of scripts you’re using.
; – register
argcargv = Off [Performance]
; Disables registration of the somewhat redundant $argv and $argc global
; variables.
; – magic
quotesgpc = Off [Performance]
; Input data is no longer escaped with slashes so that it can be sent into
; SQL databases without further manipulation. Instead, you should use the
; function addslashes() on each input element you wish to send to a database.
; – variables
order = “GPCS” [Performance]
; The environment variables are not hashed into the $ENV. To access
; environment variables, you can use getenv() instead.
; – error
reporting = EALL [Code Cleanliness, Security(?)]
; By default, PHP surpresses errors of type E
NOTICE. These error messages
; are emitted for non-critical errors, but that could be a symptom of a bigger
; problem. Most notably, this will cause error messages about the use
; of uninitialized variables to be displayed.
; – allowcalltimepassreference = Off [Code cleanliness]
; It’s not possible to decide to force a variable to be passed by reference
; when calling a function. The PHP 4 style to do this is by making the
; function require the relevant argument by reference.

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
engine = On

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1compatibilitymode = Off

; Allow the tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
shortopentag = On

; Allow ASP-style tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = On

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP’s output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size – you can use a maximum number of bytes instead of ‘On’, as
; a value for this directive (e.g., outputbuffering=4096).
output
buffering = 4096

; You can redirect all of the output of your scripts to a function. For
; example, if you set outputhandler to “mboutputhandler”, character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
; directive. Instead, explicitly set the output handler using ob
start().
; Using this ini directive may cause problems unless you know what script
; is doing.
; Note: You cannot use both “mboutputhandler” with “obiconvhandler”
; and you cannot use both “obgzhandler” and “zlib.outputcompression”.
; Note: outputhandler must be empty if this is set ‘On’ !
; Instead you must use zlib.output
handler.
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are ‘off’, ‘on’, or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
; outputs chunks that are few hundreds bytes each as a result of
; compression. If you prefer a larger chunk size for better
; performance, enable outputbuffering in addition.
; Note: You need to use zlib.output
handler instead of the standard
; outputhandler, or otherwise the output will be corrupted.
zlib.output
compression = Off

; You cannot specify additional output handlers if zlib.outputcompression
; is activated here. This setting does the same as output
handler but in
; a different order.
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block. This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block. Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class’
; name as parameter), if the unserializer finds an undefined class
; which should be instanciated.
; A warning appears if the specified function is not defined, or if the
; function doesn’t include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserializecallbackfunc=

; When floats & doubles are serialized store serializeprecision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize
precision = 100

; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You’re encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allowcalltimepassreference = Off

;
; Safe Mode
;

safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safemodegid.
safemodegid = Off

; When safemode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include
path or full path must
; be used when including)
safemodeinclude_dir =

; When safemode is on, only executables located in the safemodeexecdir
; will be allowed to be executed via the exec family of functions.
safemodeexec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes. In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here. By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHPFOO=BAR).
;

; Note: If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe
modeallowedenvvars = PHP

; This directive contains a comma-delimited list of environment variables that
; the end user won’t be able to change using putenv(). These variables will be
; protected even if safemodeallowedenvvars is set to allow to change them.
safemodeprotectedenvvars = LDLIBRARYPATH

; openbasedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; NOT affected by whether Safe Mode is turned On or Off.
;open
basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; NOT affected by whether Safe Mode is turned On or Off.
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; NOT affected by whether Safe Mode is turned On or Off.
disable_classes =

; Colors for Syntax Highlighting mode. Anything that’s acceptable in
; would work.
;highlight.string = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg = #FFFFFF
;highlight.default = #0000BB
;highlight.html = #000000

;
; Misc
;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

maxexecutiontime = 30 ; Maximum execution time of each script, in seconds
maxinputtime = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; errorreporting is a bit-field. Or each number up to get desired error
; reporting level
; E
ALL - All errors and warnings (doesn’t include ESTRICT)
; E
ERROR - fatal run-time errors
; EWARNING - run-time warnings (non-fatal errors)
; E
PARSE - compile-time parse errors
; ENOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it’s possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it’s automatically initialized to an
; empty string)
; E
STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatibility of your code
; ECOREERROR - fatal errors that occur during PHP’s initial startup
; ECOREWARNING - warnings (non-fatal errors) that occur during PHP’s
; initial startup
; ECOMPILEERROR - fatal compile-time errors
; ECOMPILEWARNING - compile-time warnings (non-fatal errors)
; EUSERERROR - user-generated error message
; EUSERWARNING - user-generated warning message
; EUSERNOTICE - user-generated notice message
;

; Examples:
;

; – Show all errors, except for notices and coding standards warnings
;

;errorreporting = EALL & ~ENOTICE & ~ESTRICT
;

; – Show all errors, except for notices
;

;errorreporting = EALL & ~ENOTICE
;

; – Show only errors
;

;errorreporting = ECOMPILEERROR|EERROR|ECOREERROR
;

; – Show all errors
;

errorreporting = E_ALL

; Print out errors (as a part of the output). For production web sites,
; you’re strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping displayerrors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display
errors = Off

; Even when displayerrors is on, errors that occur during PHP’s startup
; sequence are not displayed. It’s strongly recommended to keep
; display
startuperrors off, except for when debugging.
display
startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or errorlog (below))
; As stated above, you’re strongly advised to use error logging in place of
; error displaying on production web sites.
log
errors = On

; Set maximum length of logerrors. In errorlog information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
logerrorsmax_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignorerepeatedsource is set true.
ignorerepeatederrors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; sourcelines.
ignorerepeatedsource = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes EWARNING in the allowed list
report
memleaks = On

; Store the last error/warning message in $phperrormsg (boolean).
track
errors = Off

; Disable the inclusion of HTML tags in error messages.
; Note: Never use this feature for production boxes.
;html_errors = Off

; If htmlerrors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref
root to the base URL of your local copy including the
; leading ‘/’. You must also specify the file extension being used including
; the dot.
; Note: Never use this feature for production boxes.
;docrefroot = “/phpmanual/”
;docref
ext = .html

; String to output before an error message.
;errorprependstring = “”

; String to output after an error message.
;errorappendstring = “”

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;

; Note – track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; Default is “&”.
;arg_separator.output = “&”

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is “&”.
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = “;&”

; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = “GPCS”

; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don’t want to clutter your scripts’ global scope
; with user data. This makes most sense when coupled with trackvars – in which
; case you can access all of the GPC variables through the $HTTP
*VARS[],
; variables.
;

; You should do your best to write your scripts so that they do not require
; register
globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off

; Whether or not to register the old-style input arrays, HTTPGETVARS
; and friends. If you’re not using them, it’s recommended to turn them off,
; for performance reasons.
registerlongarrays = Off

; This directive tells PHP whether to declare the argv&argc variables (that
; would contain the GET information). If you don’t use these variables, you
; should turn it off for increased performance.
registerargcargv = Off

; When enabled, the SERVER and ENV variables are created when they’re first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives registerglobals, registerlongarrays,
; and register
argcargv must be disabled for this directive to have any affect.
auto
globals_jit = On

; Maximum size of POST data that PHP will accept.
postmaxsize = 8M

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magicquotesgpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magicquotesruntime = Off

; Use Sybase-style magic quotes (escape ’ with ‘’ instead of ‘).
magicquotessybase = Off

; Automatically add files before or after any PHP document.
autoprependfile =
autoappendfile =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header. To disable sending of the charset, simply
; set it to be empty.
;

; PHP’s built-in default is text/html
defaultmimetype = “text/html”
;default
charset = “iso-8859-1”

; Always populate the $HTTPRAWPOSTDATA variable.
;always
populaterawpost_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: “/path1:/path2”
;includepath = “.:/php/includes”
;

; Windows: “path1;path2”
;include
path = “.;c:phpincludes”

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCEREDIRECT, you SHOULD set docroot
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.forceredirect configuration below
doc
root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = “C:PHPext”

; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

; cgi.forceredirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; You CAN safely turn this off for IIS, in fact, you MUST.
cgi.force
redirect = 0

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request.
; cgi.nph = 1

; if cgi.forceredirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution. Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect
status_env = ;

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client. This allows IIS to define the
; security context that the request runs under. mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS. Default is zero.
; fastcgi.impersonate = 1;

; Disable logging through FastCGI connection
; fastcgi.log = 0

; cgi.rfc2616headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it’s set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616
headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;uploadtmpdir =

; Maximum allowed size for uploaded files.
uploadmaxfilesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allowurlfopen = On

; Define the anonymous ftp password (your email address)
;from=”john@doe.com”

; Define the User-Agent string
; user_agent=”PHP”

; Default timeout for socket based streams (seconds)
defaultsockettimeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; autodetectline_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;

; extension=modulename.extension
;

; For example, on Windows:
;

; extension=msql.dll
;

; ... or under UNIX:
;

; extension=msql.so
;

; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.

;Windows Extensions
;Note that ODBC support is built in, so no dll is needed for it.
;

extension=phpmbstring.dll
extension=php
bz2.dll
extension=phpcpdf.dll
extension=php
curl.dll
extension=phpdba.dll
extension=php
dbase.dll
extension=phpdbx.dll
;extension=php
exif.dll
extension=phpfdf.dll
extension=php
filepro.dll
extension=phpgd2.dll
extension=php
gettext.dll
;extension=phpifx.dll
extension=php
iisfunc.dll
extension=phpimap.dll
extension=php
interbase.dll
extension=phpjava.dll
extension=php
ldap.dll
;extension=phpmcrypt.dll
extension=php
mhash.dll
extension=phpmimemagic.dll
extension=phpming.dll
extension=php
mssql.dll
extension=phpmsql.dll
extension=php
mysql.dll
extension=phpmysqli.dll
;extension=php
oci8.dll
extension=phpopenssl.dll
;extension=php
oracle.dll
extension=phppdf.dll
extension=php
pgsql.dll
extension=phpshmop.dll
extension=php
snmp.dll
extension=phpsockets.dll
;extension=php
sybasect.dll
extension=php
tidy.dll
extension=phpffi.dll
extension=php
xmlrpc.dll
extension=phpxsl.dll
;extension=php
yaz.dll
extension=php_zip.dll

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOGPID,
; $LOG
CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling definesyslogvariables().
definesyslogvariables = Off

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.forceextraparameters =

[SQL]
sql.safe_mode = Off

[ODBC]
;odbc.defaultdb = Not yet implemented
;odbc.default
user = Not yet implemented
;odbc.default_pw = Not yet implemented

; Allow or prevent persistent links.
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
odbc.check_persistent = On

; Maximum number of persistent links. -1 means no limit.
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
odbc.max_links = -1

; Handling of LONG fields. Returns number of bytes to variables. 0 means
; passthru.
odbc.defaultlrl = 4096

; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbcbinmode and odbclongreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
odbc.defaultbinmode = 1

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
mysql.max_links = -1

; Default port number for mysqlconnect(). If unset, mysqlconnect() will use
; the $MYSQLTCPPORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQLPORT (in that order). Win32 will only look
; at MYSQL
PORT.
mysql.default_port =

; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysqlconnect() (doesn’t apply in safe mode).
mysql.default
host =

; Default user for mysqlconnect() (doesn’t apply in safe mode).
mysql.default
user =

; Default password for mysqlconnect() (doesn’t apply in safe mode).
; Note that this is generally a bad idea to store passwords in this file.
; Any user with PHP access can run ‘echo get
cfgvar(“mysql.defaultpassword”)
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =

; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

; Trace mode. When tracemode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace
mode = Off

[MySQLI]

; Maximum number of links. -1 means no limit.
mysqli.max_links = -1

; Default port number for mysqliconnect(). If unset, mysqliconnect() will use
; the $MYSQLTCPPORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQLPORT (in that order). Win32 will only look
; at MYSQL
PORT.
mysqli.default_port = 3306

; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =

; Default host for mysqlconnect() (doesn’t apply in safe mode).
mysqli.default
host =

; Default user for mysqlconnect() (doesn’t apply in safe mode).
mysqli.default
user =

; Default password for mysqliconnect() (doesn’t apply in safe mode).
; Note that this is generally a bad idea to store passwords in this file.
; Any user with PHP access can run ‘echo get
cfgvar(“mysqli.defaultpw”)
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[mSQL]
; Allow or prevent persistent links.
msql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
msql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
msql.max_links = -1

[PostgresSQL]
; Allow or prevent persistent links.
pgsql.allow_persistent = On

; Detect broken persistent links always with pgpconnect().
; Auto reset feature requires a little overheads.
pgsql.auto
reset_persistent = Off

; Maximum number of persistent links. -1 means no limit.
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignorenotice=0, module cannot log notice message.
pgsql.log
notice = 0

[Sybase]
; Allow or prevent persistent links.
sybase.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
sybase.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
sybase.max_links = -1

;sybase.interface_file = “/usr/sybase/interfaces”

; Minimum error severity to display.
sybase.minerrorseverity = 10

; Minimum message severity to display.
sybase.minmessageseverity = 10

; Compatability mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings. This
; compatability mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = Off

[Sybase-CT]
; Allow or prevent persistent links.
sybct.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
sybct.max_links = -1

; Minimum server message severity to display.
sybct.minserverseverity = 10

; Minimum client message severity to display.
sybct.minclientseverity = 10

[dbx]
; returned column names can be converted for compatibility reasons
; possible values for dbx.colnamescase are
; “unchanged” (default, if not set)
; “lowercase”
; “uppercase”
; the recommended default is either upper- or lowercase, but
; unchanged is currently set for backwards compatibility
dbx.colnames
case = “lowercase”

[bcmath]
; Number of decimal digits for all bcmath functions.
bcmath.scale = 0

[browscap]
browscap = C:PHPextrasbrowscap.ini

[Informix]
; Default host for ifxconnect() (doesn’t apply in safe mode).
ifx.default
host =

; Default user for ifxconnect() (doesn’t apply in safe mode).
ifx.default
user =

; Default password for ifxconnect() (doesn’t apply in safe mode).
ifx.default
password =

; Allow or prevent persistent links.
ifx.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
ifx.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
ifx.max_links = -1

; If on, select statements return the contents of a text blob instead of its id.
ifx.textasvarchar = 0

; If on, select statements return the contents of a byte blob instead of its id.
ifx.byteasvarchar = 0

; Trailing blanks are stripped from fixed-length char columns. May help the
; life of Informix SE users.
ifx.charasvarchar = 0

; If on, the contents of text and byte blobs are dumped to a file instead of
; keeping them in memory.
ifx.blobinfile = 0

; NULL’s are returned as empty strings, unless this is set to 1. In that case,
; NULL’s are returned as string ‘NULL’.
ifx.nullformat = 0

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to savehandler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP’s session functions.
;

; As of PHP 4.0.1, you can define the path as:
;

; session.savepath = “N;/path”
;

; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;

; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
;

; The file storage module creates files using mode 600 by default.
; You can change that by using
;

; session.savepath = “N;MODE;/path”
;

; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process’s umask.
session.save
path = “C:PHPSessions”

; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.useonlycookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the ‘garbage collection’ process is started
; on every session initialization.
; The probability is calculated by using gcprobability/gcdivisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gcprobability = 1
session.gc
divisor = 1000

; After this number of seconds, stored data will be seen as ‘garbage’ and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
; (see session.savepath above), then garbage collection does not
; happen automatically. You will need to do your own garbage
; collection through a shell script, cron entry, or some other method.
; For example, the following script would is the equivalent of
; setting session.gc
maxlifetime to 1440 (1440 seconds = 24 minutes):
; cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit registerglobals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug
compat_42 is enabled.

session.bugcompat42 = 0
session.bugcompatwarn = 1

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTPREFERER has to contain this substring for the session to be
; considered as valid.
session.referer
check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; – User may send URL contains active session ID
; to other person via. email/irc/etc.
; – URL that contains active session ID may be stored
; in publically accessible computer.
; – User may access your site with the same session ID
; always using URL stored in browser’s history or bookmarks.
session.usetranssid = 0

; Select a hash function
; 0: MD5 (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;

; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, “-”, “,”
session.hashbitsper_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden field with the info which is otherwise appended
; to URLs. If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a “=”, even if no value follows.
url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=fakeentr y”

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.minerrorseverity = 10

; Minimum message severity to display.
mssql.minmessageseverity = 10

; Compatability mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 – 2147483647. Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 – 2147483647. Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch. 0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. Default = 25
;mssql.max_procs = 25

[Assertion]
; Assert(expr); active by default.
;assert.active = On

; Issue a PHP warning for each failed assertion.
;assert.warning = On

; Don’t bail out by default.
;assert.bail = Off

; User-function to be called if an assertion fails.
;assert.callback = 0

; Eval the expression with current errorreporting(). Set to true if you want
; error
reporting(0) around the eval().
;assert.quiet_eval = 0

[Ingres II]
; Allow or prevent persistent links.
ingres.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
ingres.max_persistent = -1

; Maximum number of links, including persistents. -1 means no limit.
ingres.max_links = -1

; Default database (format: [nodeid::]dbname[/srvclass]).
ingres.default_database =

; Default user.
ingres.default_user =

; Default password.
ingres.default_password =

[Verisign Payflow Pro]
; Default Payflow Pro server.
pfpro.defaulthost = “test-payflow.verisign.com”

; Default port to connect to.
pfpro.defaultport = 443

; Default timeout in seconds.
pfpro.defaulttimeout = 30

; Default proxy IP address (if required).
;pfpro.proxyaddress =

; Default proxy port.
;pfpro.proxyport =

; Default proxy logon.
;pfpro.proxylogon =

; Default proxy password.
;pfpro.proxypassword =

[com]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelibfile =
; allow Distributed-COM calls
;com.allow
dcom = true
; autoregister constants of a components typlib on comload()
;com.autoregister
typelib = true
; register constants casesensitive
;com.autoregistercasesensitive = false
; show warnings on duplicate constat registrations
;com.autoregister
verbose = true

[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mboutputhandler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation accoding to
; mbstring.internalencoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not
use automatic encoding translation for
; portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitutecharacter used when character cannot be converted
; one from another
;mbstring.substitute
character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mbsendmail(), mbereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func
overload = 0

[FrontBase]
;fbsql.allowpersistent = On
;fbsql.autocommit = On
;fbsql.default
database =
;fbsql.defaultdatabasepassword =
;fbsql.defaulthost =
;fbsql.default
password =
;fbsql.defaultuser = “SYSTEM
;fbsql.generatewarnings = Off
;fbsql.max
connections = 128
;fbsql.maxlinks = 128
;fbsql.max
persistent = -1
;fbsql.max_results = 128
;fbsql.batchSize = 1000

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internalencoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode
unicode = ISO-8859-15
;exif.decodeunicodemotorola = UCS-2BE
;exif.decodeunicodeintel = UCS-2LE
;exif.encodejis =
;exif.decode
jismotorola = JIS
;exif.decode
jis_intel = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
soap.wsdlcacheenabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdlcachedir=”/tmp”
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdlcachettl=86400

; Local Variables:
; tab-width: 4
; End:

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

Filed under Control Panels | No Comments »

Thumbs up When accessing log folder for a HELM domain via FTP user receives “Access Denied”

Posted on September 17th, 2006 by Jag

Hey everyone,

Problem :

When a user attempts to access their log folder of a domain which uses MSFTP as the FTP server they receive an access denied error message.

CAUSE :

MSFTP uses Windows NT users for user permissions. It is the permissions provided to the NT user that allow or restrict access to the Windows file system. For a user to be able to access a folder NT FTP account needs the appropriate permissions. By default this account is domain.com

However a new security “enhancement” of Windows 2003 is to remove inheritance for log folders such as W3SVC folders. As this folder is created without inheritance the domain.com NT user is not given the correct permissions on this folder, thereby restricting access via FTP.

RESOLUTION :

The server administrator can add the relevant permissions to the W3SVC folder however IIS may revert the permissions to as they were previously whenever a new log file is created.

The other solution is to use a non NT reliant FTP server such as Gene6 or Serv-U (Both of which are supported by HELM).

Best Regards,
Shane Bewick
Enjoy

Filed under Control Panels | No Comments »