473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

Jul 17 '05 #1
5 8159
Yeah, install PHP as Apache module :-)

On 2005-06-08, bi******@yahoo.co.uk <bi******@yahoo.co.uk> wrote:

..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?


--
ûÕÛÐÁÎÞÉËÉ ÐÉÔÁÀÔÓÑ ÉÓËÌÀÞÉÔÅÌØÎÏ ËÏÛÅÒÎÙÍÉ ÖÅÌÕÄÑÍÉ.
WBR, äÍÉÔÒÉÊ ìÕËÁÛÉÎ
Jul 17 '05 #2
> 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.

Jul 17 '05 #3
Am Wed, 08 Jun 2005 09:59:50 -0700 schrieb bissatch:
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/"
You do not need this alias here.


And added the following lines:
Action application/x-httpd-php "/php/php.exe"
Type here the real path to your php.exe i.e.:
Action application/x-httpd-php "C:/Program
Files/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


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

Jul 17 '05 #4
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.

Jul 17 '05 #5
oh yea, remove the Action ... from httpd.conf

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gwerk | last post by:
I've tried installing php 4.3.0 and .4 and keep getting the same problem. When I 'make' the install I end up with an error: /usr/local/src/webserver/php-4.3.0/sapi/apache/php_apache_http.h:22:19:...
3
by: Jean-Christian Imbeault | last post by:
I have a user account on a RH Linux machine but no root access. I succesfully installed apache 1.3 under my /home/ account but can't get PHP to install properly. I have done the following...
2
by: Stephen Harris | last post by:
I downloaded: Windows Binaries PHP 5.0.4 zip package - 31 Mar 2005 md5: fff10991a8e6f3b36ee567eb236ae3f4 This is the current BETA release of version 5.0 of the MySQL database server....
7
by: Malcolm Wright | last post by:
Although I've been programming for over 30 years I am new to web development. As an introduction I've been using a book "PHP and MYSQL Web Development" by Luke Welling and Laura Thomson. I've set...
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
1
by: boney | last post by:
hello All, I am totally unknown to python language.. i need to install mod_python to embed python interpreter with the Apache server, in order to use Trac with Apache Web Server i am using...
1
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
0
by: shivapadma | last post by:
apache server 2.2.9 is installed in my system as follows 1.while installing in the middle some settings were asked like Network Domain: localhost Server Name: localhost Admin Email: (i gave my...
10
by: swethak | last post by:
Hi, i am first installing the tomcat 5.5 in my hosting server system and created the one folder(like test) in webapps and place all the jsp files.And also created the another folder(like test2)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.