Jump to content

grubesteak

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

grubesteak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. What's odd is that I tried testing the Apache configuration, and it says the php4apache2.dll file can't be found, but the path in the httpd.conf file is right and everything. Ideas?
  2. OK, I did that and am sure it's pointing to the correct dictory and file. I check and the php4apache2.dll file is in the sapi directory in my php folder at the root of the C drive. [!--quoteo(post=386845:date=Jun 22 2006, 10:12 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Jun 22 2006, 10:12 AM) [snapback]386845[/snapback][/div][div class=\'quotemain\'][!--quotec--] Add the following after it: [code]LoadModule php4_module "C:/php/sapi/php4apache2.dll"[/quote] I did this also [quote]#PHPIniDir PHPIniDir "C:/WINDOWS/[/code] [b]Note:[/b] I am assuming you have PHP located in a folder called PHP in the root of the hard drive. Change C:/php to the correct path of you PHP folder.[/quote] Yep, I did this. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Now scroll down and find this line: [code]DirectoryIndex index.html index.html.var[/code] Now append index.php to the end of that line, like so: [code]DirectoryIndex index.html index.html.var index.php[/code][/quote] And this ... [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Now scroll a litttle further and find this line: [code]AddType application/x-gzip .gz .tgz[/code] And add the following after it: [code]AddType application/x-httpd-php .php[/code][/quote] And this, and I already had a phpinfo file on hand and I know it works. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Save your httpd.conf and restart Apache. Next open up notepad ands put the following in it [code]<?php phpinfo (); ?>[/code] Save it as phpinfo.php (making sure that the file type pull down menu has [b]all files[/b] selected) and save it to the folder where apache accesses your files, by defualt it is something like [i]C :/program files/apache group/apache2/htdocs[/i][/quote] And I still get the same result.
  3. wamp is great, but I'm in the position where I need to install PHP the "hard" way for testing purposes. So far, all I have is frustration. My work has PHP 4.3.2 running on Apache 2 for it's web server. I'm trying to mimic that on my desktop machine but it's no use. Apache is installed fine. I can display html files perfectly. But the php files, when ran, how the script as text instead of executing them. Any ideas on how to get the server to run the php scripts instead of displaying their contents? Much thanks in advance ... Eric
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.