Asked by duncanb7
at 2024-07-31 12:54:13
Point:500 Replies:9 POST_ID:828522USER_ID:11059
Topic:
PHP Scripting Language;Linux;Apache Web Server
I got one share-ed server website, or example, www.mywebsite.com and hosting provider
say to me I need to run less php script or not too big php script on the server , otherwise, it
will cause server over loading. That is why I google any php on Window XP and I found the
similar topic at http://www.mac-connect.com/genericAMP2.php
Now I am able to download php program into my C:php and run simple program, php.exe, it
works fine for php.exe test.php and php.exe return.php at C:php from cmd shell of Window XP
Now I try to see if test.php and return.php can be running in IE browser or not because I am successfully
installed Apache-2 software on my Window XP.
But when link to http://127.0.0.1/test.php in IE7 and it is not successfully, just popup window dialog and ask
whether to save test.php file or not ? I feel l my apache is not connected well,
But when I try http://127/0.0.1, it reply me as told by the link mentioned at http://www.mac-connect.com/genericAMP2.php
So now I get confused with Apache setup on my WIndow XP ,
Question
1- What should I try at Network Domain?
now I typed, "localhost", what is localhost meaning ?
2- What I should input at server name ?
now I typed, "pc05", how to related the server name in my cpanel at my hosting
3- What I should put at Adm Email address ?
I just arbiaraily to type abc@yahoo.com, Is it needing a real email address ?
4- Why I still not get test.php running at IE 7 even I already follow all instruction
as the link http://www.mac-connect.com/genericAMP3.php
Right click on the PHP zip archive (retrieved in step 1 of this guide) and click "Extract All..." and then "Next".
Change C:Downloadsphp-4.3.3-Win32 to C: and click "Next", followed by "Finish".
There should now exist a folder C:php-4.3.3-Win32 .
Rename the this folder from C:php-4.3.3-Win32 to C:php.
Open the httpd.conf (C:Program FilesApache GroupApacheconfhttpd.conf) file and find the line:
<IfModule mod_alias.c>
Immediately under this line insert the following lines:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"
Save the file as httpd.conf.
To test that PHP and Apache now work together, create a plain text file and insert the following:
<?php phpinfo(); ?>
Save this file as test.php in the C:Program FilesApache GroupApachehtdocs folder.
Restart the Apache server (Start > Programs > Apache HTTP Server > Control Apache Server > Restart) so Apache will use the altered configuration file.
If you go to http://127.0.0.1/test.php in a web browser you should see a page like this:
5- If I am not using WIndow IIS as server , WIndow XP can also do the same as server
if I provide my PC window ISP address to my users, other users can connect to
my window XP computer ?
6- I get hosting company server address like www.mywebsite.com, can it be linked into
my Window XP computer, if so, How ? Why I still need my hosting company
7- Can my window XP computer as server so I don't need my hosting service in the future ?
Please advise above question list
Duncan
say to me I need to run less php script or not too big php script on the server , otherwise, it
will cause server over loading. That is why I google any php on Window XP and I found the
similar topic at http://www.mac-connect.com/genericAMP2.php
Now I am able to download php program into my C:php and run simple program, php.exe, it
works fine for php.exe test.php and php.exe return.php at C:php from cmd shell of Window XP
Now I try to see if test.php and return.php can be running in IE browser or not because I am successfully
installed Apache-2 software on my Window XP.
But when link to http://127.0.0.1/test.php in IE7 and it is not successfully, just popup window dialog and ask
whether to save test.php file or not ? I feel l my apache is not connected well,
But when I try http://127/0.0.1, it reply me as told by the link mentioned at http://www.mac-connect.com/genericAMP2.php
So now I get confused with Apache setup on my WIndow XP ,
Question
1- What should I try at Network Domain?
now I typed, "localhost", what is localhost meaning ?
2- What I should input at server name ?
now I typed, "pc05", how to related the server name in my cpanel at my hosting
3- What I should put at Adm Email address ?
I just arbiaraily to type abc@yahoo.com, Is it needing a real email address ?
4- Why I still not get test.php running at IE 7 even I already follow all instruction
as the link http://www.mac-connect.com/genericAMP3.php
Right click on the PHP zip archive (retrieved in step 1 of this guide) and click "Extract All..." and then "Next".
Change C:Downloadsphp-4.3.3-Win32 to C: and click "Next", followed by "Finish".
There should now exist a folder C:php-4.3.3-Win32 .
Rename the this folder from C:php-4.3.3-Win32 to C:php.
Open the httpd.conf (C:Program FilesApache GroupApacheconfhttpd.conf) file and find the line:
<IfModule mod_alias.c>
Immediately under this line insert the following lines:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"
Save the file as httpd.conf.
To test that PHP and Apache now work together, create a plain text file and insert the following:
<?php phpinfo(); ?>
Save this file as test.php in the C:Program FilesApache GroupApachehtdocs folder.
Restart the Apache server (Start > Programs > Apache HTTP Server > Control Apache Server > Restart) so Apache will use the altered configuration file.
If you go to http://127.0.0.1/test.php in a web browser you should see a page like this:
5- If I am not using WIndow IIS as server , WIndow XP can also do the same as server
if I provide my PC window ISP address to my users, other users can connect to
my window XP computer ?
6- I get hosting company server address like www.mywebsite.com, can it be linked into
my Window XP computer, if so, How ? Why I still need my hosting company
7- Can my window XP computer as server so I don't need my hosting service in the future ?
Please advise above question list
Duncan