note 104657 added to configuration.changes

From: Date: Wed, 29 Jun 2011 07:23:32 +0000
Subject: note 104657 added to configuration.changes
Groups: php.notes 
Request: Send a blank email to php-notes+get-181029@lists.php.net to get a copy of this message
Open php.ini from c:/php in your text editor If you installed Apache in the default location, the path should be "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs". If you installed it elsewhere, find the htdocs folder and type its path: doc_root = "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" Just a little further down in the file, look for the line that begins with remove the semicolon from the start of the extension_ dir, and set it so that it points to the ext subfolder of your PHP folder: extension_dir = "C:\PHP\ext" These are optional extensions to PHP, disabled by default. We want to enable the MySQL extension so that PHP can communicate with MySQL. To do this, remove the semicolon from the start of the php_mysqli.dll line: extension=php_mysqli.dll note - php_mysqli, not php_mysql Keep scrolling even further down in the file, and look for a line that starts with ;session.save_path. Once again, remove the semicolon to enable this line, and set it to your Windows Temp folder: session.save_path = "C:\Windows\Temp" Browse to the conf subfolder in your Apache installation folder (by default, C:\Program Files\Apache Software Foundation\Apache2.2\conf), and select the httpd.conf file located there. In order to make this file visible for selection, you’ll need to select All Files (*.*) from the file type drop-down menu at the bottom of the Open window. Look for the existing line in this file that begins with DirectoryIndex, shown here: <IfModule dir_module> DirectoryIndex index.html </IfModule> This line tells Apache which filenames to use when it looks for the default page for a given directory. Add index.php to the end of this line: <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> All of the remaining options in this long and intimidating configuration file should have been set up correctly by the Apache install program. All you need to do is add the following lines to the very end of the file: LoadModule php5_module "C:/PHP/php5apache2_2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/PHP" Make sure the LoadModule and PHPIniDir lines point to your PHP installation directory, and note the use of forward slashes (/) instead of backslashes (\) in the paths. Save your changes and Restart Apache using the Apache Service Monitor system tray icon. If all is well, Apache will start up again without complaint. ---- Server IP: 69.147.83.197 Probable Submitter: 122.162.1.1 ---- Manual Page -- http://www.php.net/manual/en/configuration.changes.php Edit -- https://master.php.net/note/edit/104657 Del: integrated -- https://master.php.net/note/delete/104657/integrated Del: useless -- https://master.php.net/note/delete/104657/useless Del: bad code -- https://master.php.net/note/delete/104657/bad+code Del: spam -- https://master.php.net/note/delete/104657/spam Del: non-english -- https://master.php.net/note/delete/104657/non-english Del: in docs -- https://master.php.net/note/delete/104657/in+docs Del: other reasons-- https://master.php.net/note/delete/104657 Reject -- https://master.php.net/note/reject/104657 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181029) next »