Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

loaded latest edition of Apache http server on XP, and ins..

 
Goto page 1, 2
   Database Help (Home) -> PHP RSS
Next:  cannot load mysql extension - desperate  
Author Message
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 1) Posted: Tue Feb 06, 2007 1:32 pm
Post subject: loaded latest edition of Apache http server on XP, and installed php on that server...
Archived from groups: comp>lang>php (more info?)

How do I run a .php program? (I'm starting with the "hello world"
script)

 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
Benjamin

External


Since: Nov 16, 2006
Posts: 24



(Msg. 2) Posted: Tue Feb 06, 2007 7:24 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 6, 3:32 pm, "rfhurley" wrote:
> How do I run a .php program? (I'm starting with the "hello world"
> script)
Well, put your .php file in the document root of the webserver (eg. c:
\Program Files\Apache Software Foundation\Apache2.2\htdocs) and type
http://localhost/youfilename.php into a web browser.

 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 3) Posted: Tue Feb 06, 2007 9:36 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 6, 7:24 pm, "Benjamin" wrote:
> On Feb 6, 3:32 pm, "rfhurley" wrote:> How do I run a .php program? (I'm starting with the "hello world"
> > script)
>
> Well, put your .php file in the document root of the webserver (eg. c:
> \Program Files\Apache Software Foundation\Apache2.2\htdocs) and typehttp://localhost/youfilename.phpinto a web browser.

Benjamin,
Thank you for responding. OK, I put the php doc in the correct folder,
where localhost is able to fid it, but it just reads out the code. Do
I have to configure the PHP in a certain way for the script to work?
btw, the script reads: "<?php phpinfo(); ?>" (quotation marks mine)
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
Siegfreed

External


Since: Dec 11, 2006
Posts: 5



(Msg. 4) Posted: Wed Feb 07, 2007 6:50 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

rfhurley wrote:
> How do I run a .php program? (I'm starting with the "hello world"
> script)
>

You need to specify the document root (the directory that Apache will
look for files when asked to serve them) in your "httpd" configuration
file, which in turn is located in the "Conf" directory. The section
that control the "DocumentRoot" look like this:-

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# Example:-

DocumentRoot "C:/my_chosen_php_directory"

Once you set up your "DocumentRoot", place the files you want to run in
there, and type:

http://localhost/your_file_name.php into a web browser; or
http://127.0.0.1/your_file_name.php into a web browser.
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
Justin

External


Since: Feb 08, 2007
Posts: 1



(Msg. 5) Posted: Wed Feb 07, 2007 8:29 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

rfhurley wrote:
> On Feb 6, 7:24 pm, "Benjamin" wrote:
>> On Feb 6, 3:32 pm, "rfhurley" wrote:> How do I run a .php program? (I'm starting with the "hello world"
>>> script)
>> Well, put your .php file in the document root of the webserver (eg. c:
>> \Program Files\Apache Software Foundation\Apache2.2\htdocs) and typehttp://localhost/youfilename.phpinto a web browser.
>
> Benjamin,
> Thank you for responding. OK, I put the php doc in the correct folder,
> where localhost is able to fid it, but it just reads out the code. Do
> I have to configure the PHP in a certain way for the script to work?
> btw, the script reads: "<?php phpinfo(); ?>" (quotation marks mine)
>


sounds like you haven't told apache what to do with .php files.

Re read the installation details for php and what you need to put in the
hpptd.conf file to get Apache processing php files.

Regards

Justin
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
Steve

External


Since: Nov 29, 2006
Posts: 5



(Msg. 6) Posted: Wed Feb 07, 2007 10:08 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 07 Feb 2007 20:29:51 +1300, Justin wrote:

> rfhurley wrote:
>> On Feb 6, 7:24 pm, "Benjamin" wrote:
>>> On Feb 6, 3:32 pm, "rfhurley" wrote:> How do I run a .php program? (I'm starting with the "hello world"
>>>> script)
>>> Well, put your .php file in the document root of the webserver (eg. c:
>>> \Program Files\Apache Software Foundation\Apache2.2\htdocs) and typehttp://localhost/youfilename.phpinto a web browser.
>>
>> Benjamin,
>> Thank you for responding. OK, I put the php doc in the correct folder,
>> where localhost is able to fid it, but it just reads out the code. Do
>> I have to configure the PHP in a certain way for the script to work?
>> btw, the script reads: "<?php phpinfo(); ?>" (quotation marks mine)
>>
>
>
> sounds like you haven't told apache what to do with .php files.
>
> Re read the installation details for php and what you need to put in the
> hpptd.conf file to get Apache processing php files.
>
> Regards
>
> Justin

You need to add php support to apache as well... pretty simple to do, but
specific to OS. The manual is pretty helpful at this point.
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 7) Posted: Thu Feb 08, 2007 2:55 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 6, 11:50 pm, Siegfreed wrote:
> rfhurley wrote:
> > How do I run a .php program? (I'm starting with the "hello world"
> > script)
>
> You need to specify the document root (the directory that Apache will
> look for files when asked to serve them) in your "httpd" configuration
> file, which in turn is located in the "Conf" directory. The section
> that control the "DocumentRoot" look like this:-
>
> # DocumentRoot: The directory out of which you will serve your
> # documents. By default, all requests are taken from this directory, but
> # symbolic links and aliases may be used to point to other locations.
> # Example:-
>
> DocumentRoot "C:/my_chosen_php_directory"
>
> Once you set up your "DocumentRoot", place the files you want to run in
> there, and type:
>
> http://localhost/your_file_name.phpinto a web browser; orhttp://127.0.0.1/your_file_name.phpinto a web browser.

OK, I went to the "httpd.conf" file, and added this:

# For PHP 5 do something like this:
LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:\Program Files\PHP"

and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
my browser, but then an error message came up, shutting down apache. I
turned apache back on; the same thing happened again-- but this time,
when I tried to turn it back on, an error message came up, telling me
the operation couldn't be performed (wouldn't run apache). I restarted
my computer; Apache wouldn't start again (same error message).

I removed the added lines from the "httpd.conf" file, and restarted
everything. Everything ran fine; but when I re-added the "LoadModule
php5_module..." code, it wouldn't start apache. What's going on? And
what do I do now?
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 8) Posted: Thu Feb 08, 2007 7:53 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 8, 7:42 pm, Jerry Stuckle wrote:
> rfhurley wrote:
> > On Feb 6, 11:50 pm, Siegfreed wrote:
> >> rfhurley wrote:
> >>> How do I run a .php program? (I'm starting with the "hello world"
> >>> script)
> >> You need to specify the document root (the directory that Apache will
> >> look for files when asked to serve them) in your "httpd" configuration
> >> file, which in turn is located in the "Conf" directory. The section
> >> that control the "DocumentRoot" look like this:-
>
> >> # DocumentRoot: The directory out of which you will serve your
> >> # documents. By default, all requests are taken from this directory, but
> >> # symbolic links and aliases may be used to point to other locations.
> >> # Example:-
>
> >> DocumentRoot "C:/my_chosen_php_directory"
>
> >> Once you set up your "DocumentRoot", place the files you want to run in
> >> there, and type:
>
> >>http://localhost/your_file_name.phpintoa web browser; orhttp://127.0.0.1/your_file_name.phpintoa web browser.
>
> > OK, I went to the "httpd.conf" file, and added this:
>
> > # For PHP 5 do something like this:
> > LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
> > AddType application/x-httpd-php .php
>
> > # configure the path to php.ini
> > PHPIniDir "C:\Program Files\PHP"
>
> > and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
> > my browser, but then an error message came up, shutting down apache. I
> > turned apache back on; the same thing happened again-- but this time,
> > when I tried to turn it back on, an error message came up, telling me
> > the operation couldn't be performed (wouldn't run apache). I restarted
> > my computer; Apache wouldn't start again (same error message).
>
> > I removed the added lines from the "httpd.conf" file, and restarted
> > everything. Everything ran fine; but when I re-added the "LoadModule
> > php5_module..." code, it wouldn't start apache. What's going on? And
> > what do I do now?
>
> What error message do you get?
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck... RemoveThis @attglobal.net
> ==================

Not much to report. At this point Apache won't even start if I change
"httpd.conf" to add the "LoadModule_php5" code. Before, I had to plow
through a couple of levels of error message to even get to an
indecipherable explanation.
I try again, though, and see if I can get something.
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 9) Posted: Thu Feb 08, 2007 8:44 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 8, 7:53 pm, "rfhurley" wrote:
> On Feb 8, 7:42 pm, Jerry Stuckle wrote:
>
>
>
> > rfhurley wrote:
> > > On Feb 6, 11:50 pm, Siegfreed wrote:
> > >> rfhurley wrote:
> > >>> How do I run a .php program? (I'm starting with the "hello world"
> > >>> script)
> > >> You need to specify the document root (the directory that Apache will
> > >> look for files when asked to serve them) in your "httpd" configuration
> > >> file, which in turn is located in the "Conf" directory. The section
> > >> that control the "DocumentRoot" look like this:-
>
> > >> # DocumentRoot: The directory out of which you will serve your
> > >> # documents. By default, all requests are taken from this directory, but
> > >> # symbolic links and aliases may be used to point to other locations.
> > >> # Example:-
>
> > >> DocumentRoot "C:/my_chosen_php_directory"
>
> > >> Once you set up your "DocumentRoot", place the files you want to run in
> > >> there, and type:
>
> > >>http://localhost/your_file_name.phpintoaweb browser; orhttp://127.0.0.1/your_file_name.phpintoaweb browser.
>
> > > OK, I went to the "httpd.conf" file, and added this:
>
> > > # For PHP 5 do something like this:
> > > LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
> > > AddType application/x-httpd-php .php
>
> > > # configure the path to php.ini
> > > PHPIniDir "C:\Program Files\PHP"
>
> > > and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > my browser, but then an error message came up, shutting down apache. I
> > > turned apache back on; the same thing happened again-- but this time,
> > > when I tried to turn it back on, an error message came up, telling me
> > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > my computer; Apache wouldn't start again (same error message).
>
> > > I removed the added lines from the "httpd.conf" file, and restarted
> > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > what do I do now?
>
> > What error message do you get?
>
> >

Jerry,
I changed the line that read
LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
to
LoadModule php5_module "C:\Program Files\PHP\php5apache2_2.dll"
(the line I used when I was still able to start apache)

and I was able to load apache again, but when I ran the "<?php
phpinfo(); ?>" script, the error messages came up again & shut apache
down. I was able to transcribe the highlights of dialog boxes #s 2 & 3
(dialog box 1 was that standard Windows box), which read:

Error signature

szAppName: httpd.exe szAppVer: 2.2.4.0 szMadName: unknown
szModVer: 0.0.0.0 offset: 01ed2dc0

To view technical info...click here:

which brings up another dialog box, which reads:


Error Report Contents

The following files will be included in this error report:

C:\DOCUME~1\ROBERT~1\LOCALS~1\Temp\WERa0cf.dir00\httpd.exe.mdmp
C:\DOCUME~1\ROBERT~1\LOCALS~1\Temp\WERa0cf.dir00\appcompat.txt


One other thing:

There's a section of httpd.conf which reads:

#
# ServerName gives the name and port that the server uses to identify
itself.
# This can often be determined automatically, but we recommend you
specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP
address here.
#
ServerName www.glassangel.com.com:80

glassangel is my domain, which is hosted on laughingsquid.net. I don't
know what the ServerName attribute would be named on my machine. Would
this have any effect on anything?
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 10) Posted: Thu Feb 08, 2007 9:24 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 8, 8:43 pm, Jerry Stuckle wrote:
> rfhurley wrote:
> > On Feb 8, 7:42 pm, Jerry Stuckle wrote:
> >> rfhurley wrote:
> >>> On Feb 6, 11:50 pm, Siegfreed wrote:
> >>>> rfhurley wrote:
> >>>>> How do I run a .php program? (I'm starting with the "hello world"
> >>>>> script)
> >>>> You need to specify the document root (the directory that Apache will
> >>>> look for files when asked to serve them) in your "httpd" configuration
> >>>> file, which in turn is located in the "Conf" directory. The section
> >>>> that control the "DocumentRoot" look like this:-
> >>>> # DocumentRoot: The directory out of which you will serve your
> >>>> # documents. By default, all requests are taken from this directory, but
> >>>> # symbolic links and aliases may be used to point to other locations.
> >>>> # Example:-
> >>>> DocumentRoot "C:/my_chosen_php_directory"
> >>>> Once you set up your "DocumentRoot", place the files you want to run in
> >>>> there, and type:
> >>>>http://localhost/your_file_name.phpintoaweb browser; orhttp://127.0.0.1/your_file_name.phpintoaweb browser.
> >>> OK, I went to the "httpd.conf" file, and added this:
> >>> # For PHP 5 do something like this:
> >>> LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
> >>> AddType application/x-httpd-php .php
> >>> # configure the path to php.ini
> >>> PHPIniDir "C:\Program Files\PHP"
> >>> and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
> >>> my browser, but then an error message came up, shutting down apache. I
> >>> turned apache back on; the same thing happened again-- but this time,
> >>> when I tried to turn it back on, an error message came up, telling me
> >>> the operation couldn't be performed (wouldn't run apache). I restarted
> >>> my computer; Apache wouldn't start again (same error message).
> >>> I removed the added lines from the "httpd.conf" file, and restarted
> >>> everything. Everything ran fine; but when I re-added the "LoadModule
> >>> php5_module..." code, it wouldn't start apache. What's going on? And
> >>> what do I do now?
> >> What error message do you get?
>
> >> --
> >> ==================
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck... RemoveThis @attglobal.net
> >> ==================
>
> > Not much to report. At this point Apache won't even start if I change
> > "httpd.conf" to add the "LoadModule_php5" code. Before, I had to plow
> > through a couple of levels of error message to even get to an
> > indecipherable explanation.
> > I try again, though, and see if I can get something.
>
> You said you got an error message before. Do you remember what it was?
>
> What do you get if you do a syntax check the Apache configuration file?
> Use the -t parameter to the startup command.
>
> And what's in your Apache error log?
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck... RemoveThis @attglobal.net
> ==================

I sent an email to your email address to enquire whether I could send
you some files to look at. Also, how do you use the -t parameter on
Windows? (it looks like a UNIX flag, which I'm not really fluent with
either...)

R
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 11) Posted: Thu Feb 08, 2007 10:13 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 8, 9:46 pm, Siegfreed wrote:
> rfhurley wrote:
> > On Feb 6, 11:50 pm, Siegfreed wrote:
>
> >>rfhurley wrote:
>
> >>>How do I run a .php program? (I'm starting with the "hello world"
> >>>script)
>
> >>You need to specify the document root (the directory that Apache will
> >>look for files when asked to serve them) in your "httpd" configuration
> >>file, which in turn is located in the "Conf" directory. The section
> >>that control the "DocumentRoot" look like this:-
>
> >># DocumentRoot: The directory out of which you will serve your
> >># documents. By default, all requests are taken from this directory, but
> >># symbolic links and aliases may be used to point to other locations.
> >># Example:-
>
> >>DocumentRoot "C:/my_chosen_php_directory"
>
> >>Once you set up your "DocumentRoot", place the files you want to run in
> >>there, and type:
>
> >>http://localhost/your_file_name.phpintoa web browser; orhttp://127.0.0.1/your_file_name.phpintoa web browser.
>
> > OK, I went to the "httpd.conf" file, and added this:
>
> > # For PHP 5 do something like this:
> > LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
> > AddType application/x-httpd-php .php
>
> > # configure the path to php.ini
> > PHPIniDir "C:\Program Files\PHP"
>
> > and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
> > my browser, but then an error message came up, shutting down apache. I
> > turned apache back on; the same thing happened again-- but this time,
> > when I tried to turn it back on, an error message came up, telling me
> > the operation couldn't be performed (wouldn't run apache). I restarted
> > my computer; Apache wouldn't start again (same error message).
>
> > I removed the added lines from the "httpd.conf" file, and restarted
> > everything. Everything ran fine; but when I re-added the "LoadModule
> > php5_module..." code, it wouldn't start apache. What's going on? And
> > what do I do now?
>
> Problably the module you are using is not compatible with Apache.
>
> In my machine I have php version 6 and apache version 2.2 - consequently
> I use:
>
> "LoadModule php5_module c:/programs/php/php6apache2_2.dll".
>
> Please note:- Unlike you, I use forward slashes.
>
> It works like a clock.

Do you run Windows XP? I noticed you wrote "c:programs/..." rather
than "c:/Program Files/..." should I try this?
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
rfhurley

External


Since: Aug 02, 2006
Posts: 16



(Msg. 12) Posted: Thu Feb 08, 2007 10:19 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 8, 9:46 pm, Siegfreed wrote:
> rfhurley wrote:
> > On Feb 6, 11:50 pm, Siegfreed wrote:
>
> >>rfhurley wrote:
>
> >>>How do I run a .php program? (I'm starting with the "hello world"
> >>>script)
>
> >>You need to specify the document root (the directory that Apache will
> >>look for files when asked to serve them) in your "httpd" configuration
> >>file, which in turn is located in the "Conf" directory. The section
> >>that control the "DocumentRoot" look like this:-
>
> >># DocumentRoot: The directory out of which you will serve your
> >># documents. By default, all requests are taken from this directory, but
> >># symbolic links and aliases may be used to point to other locations.
> >># Example:-
>
> >>DocumentRoot "C:/my_chosen_php_directory"
>
> >>Once you set up your "DocumentRoot", place the files you want to run in
> >>there, and type:
>
> >>http://localhost/your_file_name.phpintoa web browser; orhttp://127.0.0.1/your_file_name.phpintoa web browser.
>
> > OK, I went to the "httpd.conf" file, and added this:
>
> > # For PHP 5 do something like this:
> > LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
> > AddType application/x-httpd-php .php
>
> > # configure the path to php.ini
> > PHPIniDir "C:\Program Files\PHP"
>
> > and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
> > my browser, but then an error message came up, shutting down apache. I
> > turned apache back on; the same thing happened again-- but this time,
> > when I tried to turn it back on, an error message came up, telling me
> > the operation couldn't be performed (wouldn't run apache). I restarted
> > my computer; Apache wouldn't start again (same error message).
>
> > I removed the added lines from the "httpd.conf" file, and restarted
> > everything. Everything ran fine; but when I re-added the "LoadModule
> > php5_module..." code, it wouldn't start apache. What's going on? And
> > what do I do now?
>
> Problably the module you are using is not compatible with Apache.
>
> In my machine I have php version 6 and apache version 2.2 - consequently
> I use:
>
> "LoadModule php5_module c:/programs/php/php6apache2_2.dll".
>
> Please note:- Unlike you, I use forward slashes.
>
> It works like a clock.

btw... I tried forward slashes too. the results were identical
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 3780



(Msg. 13) Posted: Thu Feb 08, 2007 10:42 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

rfhurley wrote:
> On Feb 6, 11:50 pm, Siegfreed wrote:
>> rfhurley wrote:
>>> How do I run a .php program? (I'm starting with the "hello world"
>>> script)
>> You need to specify the document root (the directory that Apache will
>> look for files when asked to serve them) in your "httpd" configuration
>> file, which in turn is located in the "Conf" directory. The section
>> that control the "DocumentRoot" look like this:-
>>
>> # DocumentRoot: The directory out of which you will serve your
>> # documents. By default, all requests are taken from this directory, but
>> # symbolic links and aliases may be used to point to other locations.
>> # Example:-
>>
>> DocumentRoot "C:/my_chosen_php_directory"
>>
>> Once you set up your "DocumentRoot", place the files you want to run in
>> there, and type:
>>
>> http://localhost/your_file_name.phpinto a web browser; orhttp://127.0.0.1/your_file_name.phpinto a web browser.
>
> OK, I went to the "httpd.conf" file, and added this:
>
> # For PHP 5 do something like this:
> LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
> AddType application/x-httpd-php .php
>
> # configure the path to php.ini
> PHPIniDir "C:\Program Files\PHP"
>
> and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
> my browser, but then an error message came up, shutting down apache. I
> turned apache back on; the same thing happened again-- but this time,
> when I tried to turn it back on, an error message came up, telling me
> the operation couldn't be performed (wouldn't run apache). I restarted
> my computer; Apache wouldn't start again (same error message).
>
> I removed the added lines from the "httpd.conf" file, and restarted
> everything. Everything ran fine; but when I re-added the "LoadModule
> php5_module..." code, it wouldn't start apache. What's going on? And
> what do I do now?
>

What error message do you get?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex.TakeThisOut@attglobal.net
==================
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 3780



(Msg. 14) Posted: Thu Feb 08, 2007 11:43 pm
Post subject: Re: loaded latest edition of Apache http server on XP, and installed [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

rfhurley wrote:
> On Feb 8, 7:42 pm, Jerry Stuckle wrote:
>> rfhurley wrote:
>>> On Feb 6, 11:50 pm, Siegfreed wrote:
>>>> rfhurley wrote:
>>>>> How do I run a .php program? (I'm starting with the "hello world"
>>>>> script)
>>>> You need to specify the document root (the directory that Apache will
>>>> look for files when asked to serve them) in your "httpd" configuration
>>>> file, which in turn is located in the "Conf" directory. The section
>>>> that control the "DocumentRoot" look like this:-
>>>> # DocumentRoot: The directory out of which you will serve your
>>>> # documents. By default, all requests are taken from this directory, but
>>>> # symbolic links and aliases may be used to point to other locations.
>>>> # Example:-
>>>> DocumentRoot "C:/my_chosen_php_directory"
>>>> Once you set up your "DocumentRoot", place the files you want to run in
>>>> there, and type:
>>>> http://localhost/your_file_name.phpintoa web browser; orhttp://127.0.0.1/your_file_name.phpintoa web browser.
>>> OK, I went to the "httpd.conf" file, and added this:
>>> # For PHP 5 do something like this:
>>> LoadModule php5_module "C:\Program Files\PHP\php5apache2_2_4.dll"
>>> AddType application/x-httpd-php .php
>>> # configure the path to php.ini
>>> PHPIniDir "C:\Program Files\PHP"
>>> and then ran the "<?php phpinfo(); ?>" script. It ran (correctly) in
>>> my browser, but then an error message came up, shutting down apache. I
>>> turned apache back on; the same thing happened again-- but this time,
>>> when I tried to turn it back on, an error message came up, telling me
>>> the operation couldn't be performed (wouldn't run apache). I restarted
>>> my computer; Apache wouldn't start again (same error message).
>>> I removed the added lines from the "httpd.conf" file, and restarted
>>> everything. Everything ran fine; but when I re-added the "LoadModule
>>> php5_module..." code, it wouldn't start apache. What's going on? And
>>> what do I do now?
>> What error message do you get?
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck....RemoveThis@attglobal.net
>> ==================
>
> Not much to report. At this point Apache won't even start if I change
> "httpd.conf" to add the "LoadModule_php5" code. Before, I had to plow
> through a couple of levels of error message to even get to an
> indecipherable explanation.
> I try again, though, and see if I can get something.
>

You said you got an error message before. Do you remember what it was?

What do you get if you do a syntax check the Apache configuration file?
Use the -t parameter to the startup command.

And what's in your Apache error log?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex.RemoveThis@attglobal.net
==================
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
otrWalter

External


Since: Sep 17, 2006
Posts: 4



(Msg. 15) Posted: Fri Feb 09, 2007 12:03 am
Post subject: Re: loaded latest edition of Apache http server on XP, and installed php on that server... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

go to...

http://web.torres.ws/walters_way

I have a complete set of docs on how to install and configure:

* Apache (with virtual hosts)
* mySQL
* Perl (with MODperl)
* PHP (with PEAR)
* Python
* SSH2
* CVS (with SSH keys)
* GPG

It might help you in the long run

Walter
 >> Stay informed about: loaded latest edition of Apache http server on XP, and ins.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mod_php or fastcgi for heavy loaded server? - concurrent request to httpd might as high as 300 and each httpd need 12M of memory (currently using mod_php) so total memory needed might over 3GB so under this case, should i use fastcgi? thanks.

Questions about HTTP headers sent with PHP in HTTP authent.. - Here is an example from the PHP Manual <?php if ((!isset($_SERVER['PHP_AUTH_USER'])) || (1==1)) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'Text to send if user hits Cancel b...

mhash functions for my windows apache development server -

PHP, Apache, SQL Server 2005 Express - on Vista - Hello, Has anyone had any success running SQL Server Express on Vista with Apache via PHP? My PHP works fine, Apache works fine, and SQL Server Express works fine in Management Studio, but I cannot connect via this call: $myServer = "servername&quo...

Run Win32 executable in client from apache/php based serve.. - I have a intranet website on one of our windows machines that runs apache 2.0/php5/mysql. In the website, if the user clicks a button I want to run a win32 command line program on the client windows machine. This command line utility returns a string t...
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]