473,545 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8169
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\ex t\"

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
2074
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: httpd.h: No such file or directory /usr/local/src/webserver/php-4.3.0/sapi/apache/php_apache_http.h:23:25: http_config.h: No such file or...
3
4907
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 steps: #1 compiled and installed apache using --prefix=/home/imbeauje/apache. Tested that it works.
2
2164
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. apache_2.0.54-win32-x86-no_ssl.exe 16-Apr-2005 15:13 7.8M Installer Pack
7
1703
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 up an Apache Server v1.3.31. I've also installed MySQL V5.0.13 and PHP v 5.0.5. I've gone through the installations several times. I'm reasonably...
102
6695
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 never to send if-modified-since. But the strange thing is that Opera sends if-modified-since but when I reply with "HTTP/1.0 304 Not Modified" it is...
1
1981
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 : Python 2.4.3,
1
2460
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 working. i have tried different mirrors also. I tried different modules also. ===========================================================
0
1856
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 email id) : for All Users, on Port 80, as a Service
10
12546
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) and place all related files in that. Now i give the url as http://localhost:8080/test/sample.jsp http://localhost:8080/test1/home.jsp Both...
0
7465
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5969
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.