Connecting Tech Pros Worldwide Help | Site Map

Problem installing PHP on Apache server

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:30 PM
bissatch@yahoo.co.uk
Guest
 
Posts: n/a
Default Problem installing PHP on Apache server

Hi,

I am trying to install Apache and PHP. I have installed apache fine
where I can type in http://localhost and it displays the default Apache
page.

When trying to install PHP I have run the installer file which seemed
to go OK. It is when configure the Apache httpd.conf file that I get
the problem. I have updated the ScriptAlias to read:


ScriptAlias /php/ "C:/Program Files/PHP/"


And added the following lines:


Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php


...as instructed by the tutorial I was reading.

To test PHP, I have created a phpinfo() page called index.php inside
the htdocs folder in Apache. When I try to access the file it give the
following 404 error:


Not Found

The requested URL /php/php.exe/index.php was not found on this server.



Any ideas?

Cheers


  #2  
Old July 17th, 2005, 01:30 PM
Dmitry Lukashin
Guest
 
Posts: n/a
Default Re: Problem installing PHP on Apache server

Yeah, install PHP as Apache module :-)

On 2005-06-08, bissatch@yahoo.co.uk <bissatch@yahoo.co.uk> wrote:[color=blue]
>
> ..as instructed by the tutorial I was reading.
>
> Not Found
>
> The requested URL /php/php.exe/index.php was not found on this server.
>
>
> Any ideas?
>[/color]

--
Шушпанчики питаются исключительно кошерными желудями.
WBR, Дмитрий Лукашин
  #3  
Old July 17th, 2005, 01:30 PM
bissatch@yahoo.co.uk
Guest
 
Posts: n/a
Default Re: Problem installing PHP on Apache server

> Yeah, install PHP as Apache module :-)

Well, where have I gone wrong in doing this? When installing PHP I
selected Apache as the server software.

  #4  
Old July 17th, 2005, 01:30 PM
Markus L.
Guest
 
Posts: n/a
Default Re: Problem installing PHP on Apache server

Am Wed, 08 Jun 2005 09:59:50 -0700 schrieb bissatch:
[color=blue]
> Hi,
>
> I am trying to install Apache and PHP. I have installed apache fine
> where I can type in http://localhost and it displays the default Apache
> page.
>
> When trying to install PHP I have run the installer file which seemed
> to go OK. It is when configure the Apache httpd.conf file that I get
> the problem. I have updated the ScriptAlias to read:
>
>
> ScriptAlias /php/ "C:/Program Files/PHP/"[/color]

You do not need this alias here.
[color=blue]
>
>
> And added the following lines:
>
>
> Action application/x-httpd-php "/php/php.exe"[/color]

Type here the real path to your php.exe i.e.:
Action application/x-httpd-php "C:/Program
Files/PHP/php.exe"
[color=blue]
> AddType application/x-httpd-php .php
>
>
> ..as instructed by the tutorial I was reading.
>
> To test PHP, I have created a phpinfo() page called index.php inside the
> htdocs folder in Apache. When I try to access the file it give the
> following 404 error:
>
>
> Not Found
>
> The requested URL /php/php.exe/index.php was not found on this server.
>
>
>
> Any ideas?
>
> Cheers[/color]

--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------

  #5  
Old July 17th, 2005, 01:30 PM
Dale
Guest
 
Posts: n/a
Default Re: Problem installing PHP on Apache server

Unzip the php into a folder called c:\php5

add these lines to your httpd.conf

LoadModule php5_module "c:/php5/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php5"

copy all the *.dll files form php5 into the directory where apache.exe
is located or into the system32 directory.

uncomment any of the ;extension=* in your php.ini like php_mysql

change the extension_dir = to extension_dir = "c:\php5\ext\"

restart apache.

  #6  
Old July 17th, 2005, 01:30 PM
Dale
Guest
 
Posts: n/a
Default Re: Problem installing PHP on Apache server

oh yea, remove the Action ... from httpd.conf

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.