Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo .comwrote:
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\Apac he2.2\htdocs) and type http://localhost/youfilename.php into a web browser.
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 6, 7:24 pm, "Benjamin" <musiccomposit. ..@gmail.comwro te:
On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo .comwrote: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\Apac he2.2\htdocs) and typehttp://localhost/youfilename.php into 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)
Re: loaded latest edition of Apache http server on XP, and installedphp on that server...
rfhurley wrote:
On Feb 6, 7:24 pm, "Benjamin" <musiccomposit. ..@gmail.comwro te:
>On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo .comwrote: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\Apac he2.2\htdocs) and typehttp://localhost/youfilename.php into 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.
Re: loaded latest edition of Apache http server on XP, and installedphp on that server...
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 "DocumentRo ot" 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_d irectory"
Once you set up your "DocumentRo ot", place the files you want to run in
there, and type:
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Wed, 07 Feb 2007 20:29:51 +1300, Justin wrote:
rfhurley wrote:
>On Feb 6, 7:24 pm, "Benjamin" <musiccomposit. ..@gmail.comwro te:
>>On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo .comwrote: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\Apac he2.2\htdocs) and typehttp://localhost/youfilename.php into 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.
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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_d irectory"
>
Once you set up your "DocumentRo ot", 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\php5a pache2_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?
Re: loaded latest edition of Apache http server on XP, and installedphp on that server...
rfhurley wrote:
On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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_d irectory"
>>
>Once you set up your "DocumentRo ot", 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\php5a pache2_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@attgl obal.net
=============== ===
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 8, 7:42 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
rfhurley wrote:
On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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_d irectory"
>
Once you set up your "DocumentRo ot", place the files you want to run in
there, and type:
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\php5a pache2_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...@attgl obal.net
=============== ===
Not much to report. At this point Apache won't even start if I change
"httpd.conf " to add the "LoadModule_php 5" 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.
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 8, 7:53 pm, "rfhurley" <rfhur...@yahoo .comwrote:
On Feb 8, 7:42 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>
>
>
rfhurley wrote:
On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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_d irectory"
>
>Once you set up your "DocumentRo ot", place the files you want to run in
>there, and type:
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\php5a pache2_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\php5a pache2_2_4.dll"
to
LoadModule php5_module "C:\Program Files\PHP\php5a pache2_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:
#
# 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.n et. I don't
know what the ServerName attribute would be named on my machine. Would
this have any effect on anything?
Re: loaded latest edition of Apache http server on XP, and installedphp on that server...
rfhurley wrote:
On Feb 8, 7:42 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>rfhurley wrote:
>>On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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:-
>>>DocumentRo ot "C:/my_chosen_php_d irectory"
>>>Once you set up your "DocumentRo ot", 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\php5a pache2_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...@attg lobal.net
>============== ====
>
Not much to report. At this point Apache won't even start if I change
"httpd.conf " to add the "LoadModule_php 5" 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@attgl obal.net
=============== ===
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 8, 8:43 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
rfhurley wrote:
On Feb 8, 7:42 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
rfhurley wrote:
>On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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:-
>>DocumentRoo t "C:/my_chosen_php_d irectory"
>>Once you set up your "DocumentRo ot", 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\php5a pache2_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...@attgl obal.net
=============== ===
>
Not much to report. At this point Apache won't even start if I change
"httpd.conf " to add the "LoadModule_php 5" 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...@attgl obal.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...)
Re: loaded latest edition of Apache http server on XP, and installedphp on that server...
rfhurley wrote:
On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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:-
>>
>>DocumentRoo t "C:/my_chosen_php_d irectory"
>>
>>Once you set up your "DocumentRo ot", 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\php5a pache2_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:
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 8, 9:46 pm, Siegfreed <s...@freed.org wrote:
rfhurley wrote:
On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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_d irectory"
>
>Once you set up your "DocumentRo ot", place the files you want to run in
>there, and type:
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\php5a pache2_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.d ll".
>
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?
Re: loaded latest edition of Apache http server on XP, and installed php on that server...
On Feb 8, 9:46 pm, Siegfreed <s...@freed.org wrote:
rfhurley wrote:
On Feb 6, 11:50 pm, Siegfreed <s...@freed.org 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 "DocumentRo ot" 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_d irectory"
>
>Once you set up your "DocumentRo ot", place the files you want to run in
>there, and type:
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\php5a pache2_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.d ll".
>
Please note:- Unlike you, I use forward slashes.
>
It works like a clock.
btw... I tried forward slashes too. the results were identical
Comment