Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old September 23rd, 2002, 03:22 PM
dbr1066 dbr1066 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: BC, Canada
Posts: 2 dbr1066 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem implementing Apache/PHP connection

Hi,

I'm just getting into MySQL and PHP, and I just got around to trying out Ben Rowe's suggestions in his excellent article in the Sept 19 issue of Devnewz on installing Apache/PHP/MySql on my Windows PC desktop as a test and development arena. All went well until I tried to set up the test index.php page.

Ben suggests adding the text
"LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php" to the end of the Apache httpd.conf file.

I did that, but when I go to reboot Apache I get the following error message:

"Syntax error...
LoadModule takes two arguments, a module name and the name of a shared object file to load it from."

OK, I'm in waaay over my head here. Obviously something in the text I added to the httpd.conf file isn't correct or I implemented it oddly. Does this error message suggest anything to anyone more experienced? I'd sure appreciate any suggestions.

David

Reply With Quote
  #2  
Old September 23rd, 2002, 04:05 PM
dbr1066 dbr1066 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: BC, Canada
Posts: 2 dbr1066 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Got it!

OK, I've got it working now. I didn't clue in to the obvious - I needed to completely close down Apache and start it up again to get it to work. So far so good :-)

Reply With Quote
  #3  
Old September 23rd, 2002, 07:27 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
yes, when you change anything in the php.ini file or the conf.httpd file you will need to restart apache in order to apply the changes.

Also please dont post multiple threads on the same subject, they just get deleted

Reply With Quote
  #4  
Old November 17th, 2002, 01:54 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Hello all I followed the instillation provided on this website and everything went will till I addedthis line to the httpd.



LoadModule php4_module C:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php


I restarted my entire computer like others had to and now help.

I keep getting this error

Cannot load C:/php/sapi/php4apache.dll into server: <126> the specific module could not be found.

What did I do wrong? How can I fix this? I am running Windows XP.

Thanks.
Attila
__________________
Thanks,
Attila
http://www.glorynaspiration.com
http://www.abitofthings.com

Reply With Quote
  #5  
Old November 17th, 2002, 08:04 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Attila,

What version of Apache are you running?

Also, did you install your PHP to "C:\PHP"? If not, you need to replace the directory in that statement with the location of your PHP installation.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #6  
Old November 17th, 2002, 08:59 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
The Apache Version is 1.3.27 It is the one I think I needed. If I need a newer one let me know.

And yes I did install my PHP to C:\PHP

Although their is no install you just copy and past it into that folder right?

Thanks
Attila

Reply With Quote
  #7  
Old November 17th, 2002, 10:08 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Ok I went and looked at teh Apache website again...Boy confusing no order there what so ever so I downloaded this file.

apache_2.0.43-win32-x86-no_ssl

I then uninstalled 1.3.27 rebooted cleared the left over apache folders re-installed apache_2.0.43-win32-x86-no_ssl

Server is running....Do the adjsutments for the PHP to this file httpd and all the changes work till I do this line of code.

LoadModule php4_module C:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

Then the service will not start.

Take that line out service runs great but with no PHP support.

Here are a few more questions in the file httpd

This line DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs" I change to this c:/public_html/

That above line apears twice I have tried all different combinations and all works good as long as the above 3 lines are out. (LoadModule lines)

This line
DirectoryIndex index.html index.php default.html

is actually like this.
DirectoryIndex index.html index.php default.html.var

do I need to do the .var at the end.


I do know that the tutorial was written for Apache version 1.3.

Can anyone help...Once again I am using windows XP.

Thanks,
Attila

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Problem implementing Apache/PHP connection


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway