rahul_jjj Posted November 14, 2008 Share Posted November 14, 2008 I have php5.x and apache5.x downloaded. I just wanted to know how to configure php5.x with apache and the playaround with php.ini file.. Can anyone advise Quote Link to comment https://forums.phpfreaks.com/topic/132691-php5-configuration-with-apache-55/ Share on other sites More sharing options...
wildteen88 Posted November 14, 2008 Share Posted November 14, 2008 I have ... pache5.x downloaded/ You mean Apache2.0.x or Apache 2.2.x? There is no Apache5! To install Apache and PHP on Windows follow these steps: First download the .msi installer for Apache2.2.x from apache.org and download the zippied binaries package for PHP5.x from php.net (do not download the PHP installer). Once downloaded. First install Apache by running the .msi installer. During the installation process Apache will ask for your Network Domain and Server Name. Enter localhost for both. You can use any address for the Admin Email address. Run through the remaining steps. Note: I prefer to install Apache to C:/Server/Apache - this is archived by clicking the Custom install button after the above step. Once Apache is installed. Extract the contents of the downloaded php zip package to C:/Server/PHP. The next step is to find Apaches configuration file (httpd.conf). This located in Apaches conf/ folder (eg C:/server/Apache/conf). Scroll to the bottom of the file and add the following lines LoadModule "C:/Server/PHP/php5apache2_2.dll" PHPIniDir "C:/Server/PHP" AddType application/x-httpd-php .php Now save the httpd.conf and restart Apache via the Apache Monitor in the taskbar. Apache and PHP are now installed and ready to use. Usuage Save all files for your site (eg html, php, images, css, js etc) within Apaches htdocs/ folder (C:/Server/Apache/htdocs - remove any existing files from there though). To access your site go go to http://localhost/ Whenever you make any changes to the httpd.conf/php.ini make sure you always restart Apache. Other things you should do is to: - rename the php.ini-recommended file in C:/Server/PHP to just php.ini - Add C:/Server/PHP to the PATH Environment Variable. - configure PHP to your needs via the php.ini Thats it. Quote Link to comment https://forums.phpfreaks.com/topic/132691-php5-configuration-with-apache-55/#findComment-690357 Share on other sites More sharing options...
rahul_jjj Posted November 16, 2008 Author Share Posted November 16, 2008 Yes I am using apache2.2.. sorry to confuse as I am parallely working with apache-tomcat 5.x for a java application.. I tried the above steps but I dont see any php5apache2_2.dll under php-5.2.6 and so when the server is started it gives me an error. Advise Quote Link to comment https://forums.phpfreaks.com/topic/132691-php5-configuration-with-apache-55/#findComment-691171 Share on other sites More sharing options...
wildteen88 Posted November 16, 2008 Share Posted November 16, 2008 You sure? Make sure you downloaded the correct PHP package from php.net it should of been this one. Quote Link to comment https://forums.phpfreaks.com/topic/132691-php5-configuration-with-apache-55/#findComment-691179 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.