Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 2006-07-04, 01:33 AM
Junior Member
 
Join Date: Jul 2006
Posts: 4
mjkramer21 is on a distinguished road
Default help setting up Apache/php

i've got a fresh installation of apache and php and i'm having some difficulties setting them up. i'm trying to include the php module for the apache config file but apache isn't being able to locate it in the specified path that i offer.

i've traced my path and the module name a few times and everything looks ok.

i'm using apache 2.2 and php 5 on an XP system.

thanks
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2006-07-04, 03:52 AM
Junior Member
 
Join Date: Jul 2006
Posts: 4
mjkramer21 is on a distinguished road
Default

i found the answer.

just incase someone else comes across this problem in the future (it appears to be a frequently documented problem.) i'll post the solution here.

to call the module from the apache config file, insert this, and it must be at the top of the document:

# PHP 5 Support
LoadModule php5_module "c:/php5/php5apache2_2.dll"
LoadFile C:/php5/php5ts.dll
<Files "*.php">
AddHandler application/x-httpd-php .php
</Files>
PHPIniDir "C:/php5"

then scroll down to where there's a property called DirectoryIndex = in a ifModule[]

and insert this:

DirectoryIndex = "index.php".

Lot's of people have been having this problem with php5 and apache 2.2.
Reply With Quote
  #3 (permalink)  
Old 2008-02-19, 07:42 AM
Junior Member
 
Join Date: Feb 2008
Posts: 1
Nippon is on a distinguished road
Talking Too late? xD

Quote:
Originally Posted by mjkramer21 View Post
i found the answer.

just incase someone else comes across this problem in the future (it appears to be a frequently documented problem.) i'll post the solution here.

to call the module from the apache config file, insert this, and it must be at the top of the document:

# PHP 5 Support
LoadModule php5_module "c:/php5/php5apache2_2.dll"
LoadFile C:/php5/php5ts.dll
<Files "*.php">
AddHandler application/x-httpd-php .php
</Files>
PHPIniDir "C:/php5"

then scroll down to where there's a property called DirectoryIndex = in a ifModule[]

and insert this:

DirectoryIndex = "index.php".

Lot's of people have been having this problem with php5 and apache 2.2.
Maybe this is too late, but big THANKS to you, dude! ;D
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:50 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.