473,396 Members | 1,914 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,396 software developers and data experts.

Installing PHP / Apache problems (again)

Hi,

I have had to reinstall windows and at present I am currently trying to
put back in place my apache2/php4 setup.

I have installed apache and I get the http://localhost 'apache is
installed' page. Nice one!

When I try to configure apache with PHP unzipped into a folder (c:/php)
and run it as a module, no matter what I try it just wont load the PHP
page in 'htdocs'. I havent yet set it to automatically load
'localhost/index.php' when you simply type in 'localhost', so when I do
this is presents me with a page with the file contents of localhost.
index.php is there but when I click it I then get a 404 error.

I had originally put a post up before which I think worked for me then,
but not now.

http://groups.google.co.uk/group/com...501e67acda8fa1

I have tried the following httpd.conf settings:

ScriptAlias /php4/ "C:/php/"
AddType application-xhttpd-php .php
Action application-xhttpd-php "/php/php.exe"

Im no expert on Apache so when something like this happens Im kinda
stuck. I searched on Google but it appears there are so many different
ways of installing php on apache.

Any ideas?

Burnsy

Aug 22 '05 #1
1 1628
On 22/08/2005 23:59, bi******@yahoo.co.uk wrote:

[snip]
ScriptAlias /php4/ "C:/php/"
AddType application-xhttpd-php .php
Action application-xhttpd-php "/php/php.exe"


Remove the '4' from the URL-path in the ScriptAlias directive, or add it
to the cgi-script argument of the Action directive ("/php4/php.exe").

Be aware that you might also need to allow access to the C:/php/
directory with a Directory directive. See the cgi-bin alias, for example
(search for: ScriptAlias /cgi-bin/).

[snip]

Hope that helps,
Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Aug 22 '05 #2

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

Similar topics

2
by: Rob Ristroph | last post by:
Has anyone built the PHP5 beta 4 as an apache module ? I am using apache 2. Is there some trick, or missing instructions, or known bug ? Perhaps you have to use some version of apache earlier...
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: Bill McFarland | last post by:
Hi folks. I'm installing PHP 5 with Apache 2 as a module (also with MySQL embedded in php as an extension along with gd and tiny) on a Win2003 server. When I start Apache2 as a service without...
4
by: frankgerlach | last post by:
I am experiencing problems when installing PHP5/MYSQL. I did ./configure --with-mysql=/usr/local/mysql --disable-libxml --with-zlib-dir=/home/frank/zlib-1.2.2 make make install The build...
1
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
2
by: y_oda2002 | last post by:
Hi everyone, I was wondering if anyone could help me. I am trying to install php so that i can learn the code. So far i havent had any problems installing apache. However when i try to get...
6
by: snapcount | last post by:
Hi, I downloaded PHP 5.1.4 and Apache 2.2.2 and tried to install on Windows XP. Apache works ok, but when I try to restart it with PHP enabled, I get this message: Syntax error on line 115...
18
by: rfhurley | last post by:
How do I run a .php program? (I'm starting with the "hello world" script)
2
by: Darko | last post by:
Hi, by definition, strftime() uses the previous setlocale() calls to determine which language to use in returning strings such as week days or month names, depending on the given format. Now,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...
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.