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 Display Modes
  #1 (permalink)  
Old 2007-02-24, 12:01 AM
Junior Member
 
Join Date: Feb 2007
Posts: 2
bbxrider is on a distinguished road
Default apache 2.2.4 and php5 not working here

ok, new to apache and php, this is for winxp pro
when i address my test.php in ie i get the file contents not the php info stuff
<?php
phpinfo();
?>
here's what i've done
1. install apache 2.2.4, it works! at least from localhost
2. downloaded/unpacked php5 zip file to c:\php
3. added 'c:\php' to path variable, first one too! and when not working, also copied php5ts.dll to windows system32 directory
4. added to http.conf

LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "C:/php"

5. copied php.ini-dist to php.ini
6. made mods to php.ini
doc_root = "c:\apache software foundation\apache2.2\htdocs"
extension_dir = "c:\php\extensions"
7. restarted apache from program files|control apache server|restart

dang, it all looked so easy and so well documented
any suggestions would be greatly appreciated
thanks, bbxrider
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2007-03-05, 03:41 AM
Junior Member
 
Join Date: May 2005
Posts: 5
hattibelle
Default Question

Is your test.php file stored in the htdocs directory of apache
Reply With Quote
  #3 (permalink)  
Old 2007-03-05, 11:13 AM
Junior Member
 
Join Date: Feb 2007
Posts: 2
bbxrider is on a distinguished road
Default it was a dumb thing after all

thanks for the reply,
i did get it working, when i first unzipped the php download, it didn't create any subdirectories, so i had this bad directory structure. after it unzipped correctly, it worked
Reply With Quote
Must read Review for Serious PHP Developers


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

Sponsored Links
Reply

Thread Tools
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 -5. The time now is 10:15 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, 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.