logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Newbie with 2 config problems
Author
ccourington



Joined: 04 Jan 2010
Posts: 1

PostPosted: Mon 04 Jan '10 13:44    Post subject: Newbie with 2 config problems Reply with quote

Hello all: I seem to have successfully installed (or so I thought), Apache 2.2.14, php5, and MySQL 5.1 on Windows 7. However, when I went back to configure Apache to process php code, I got the following error: httpd.exe could not fully determine server's qualified domain name.

Further, when I went back to try to restart apache from the start menu, I discovered that the only option I had was to start Apache from console.

Now, when I went to change the config file for apache, I had no problems doing so: I entered the LoadModule line suited to php5apache2.2.dll, as well as the AddType application line for .php. I saved this, went to restart, and then discovered the errors I described above.

Forgive me if this seems like an obvious fix for many of you. It will be obvious to me at some point, but I am just starting. Thank you for any suggestions you may have.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7328
Location: Germany, Next to Hamburg

PostPosted: Tue 05 Jan '10 10:49    Post subject: Reply with quote

For the server name see the docs http://httpd.apache.org/docs/2.2/en/mod/core.html#servername

How did you install apache? From the msi package from apache.org? Installed as a service?

The correct name from that dll is php5apache2_2.dll not php5apache2.2.dll

example
Code:

LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php5"
Back to top
bovcan



Joined: 15 Dec 2009
Posts: 19
Location: Slovenia

PostPosted: Tue 05 Jan '10 11:41    Post subject: Reply with quote

For what serve this line?
AddHandler application/x-httpd-php .php

Becouse, when I install php on apache, there wasn't that line. Was just this:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "L:/SERVER/PHP/"
LoadModule php5_module "L:/SERVER/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7328
Location: Germany, Next to Hamburg

PostPosted: Tue 05 Jan '10 11:44    Post subject: Reply with quote

Instead of AddType application I use AddHandler. Cause AddType sometimes does not work under some circumstances.
Back to top


Reply to topic   Topic: Newbie with 2 config problems View previous topic :: View next topic
Post new topic   Forum Index -> Apache