473,702 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache2 + PHP4

I developed and maintained a site for someone using Apache 1.3 and PHP
4.0.3 and used to be able to reference a page without explicitly
specifying the .php extension. ie. http://www.url.com/adminpage would
open adminpage.php. However since I've upgraded to Apache 2.0.55 and PHP
4.4.1 this no longer works. Is this something that can be configured in
my httpd.conf or has this feature been removed from Apache 2? I'm
running the Windows versions btw.

Thanks.
Dec 2 '05 #1
3 1611
C.
> used to be able to reference a page without explicitly
specifying the .php extension


Go read up on content negotiation in Apache.

C.

Dec 2 '05 #2
not sure about windows platform, but you have to enable the php4 module in
apache2.
On Debian linux, you can find the php4.load in /etc/apache2/mods-available

There you also have the the helper scripts a2enmod

a2enmod php4

Perhaps that's the issue.

"masterx" <ma*****@anonym ous.org> wrote in message
news:43******** @duster.adelaid e.on.net...
I developed and maintained a site for someone using Apache 1.3 and PHP
4.0.3 and used to be able to reference a page without explicitly specifying
the .php extension. ie. http://www.url.com/adminpage would open
adminpage.ph p. However since I've upgraded to Apache 2.0.55 and PHP 4.4.1
this no longer works. Is this something that can be configured in my
httpd.conf or has this feature been removed from Apache 2? I'm running the
Windows versions btw.

Thanks.

Dec 3 '05 #3
Lisa Pearlson wrote:
not sure about windows platform, but you have to enable the php4 module in
apache2.
On Debian linux, you can find the php4.load in /etc/apache2/mods-available

There you also have the the helper scripts a2enmod

a2enmod php4

Perhaps that's the issue.

"masterx" <ma*****@anonym ous.org> wrote in message
news:43******** @duster.adelaid e.on.net...
I developed and maintained a site for someone using Apache 1.3 and PHP
4.0.3 and used to be able to reference a page without explicitly specifying
the .php extension. ie. http://www.url.com/adminpage would open
adminpage.php . However since I've upgraded to Apache 2.0.55 and PHP 4.4.1
this no longer works. Is this something that can be configured in my
httpd.conf or has this feature been removed from Apache 2? I'm running the
Windows versions btw.

Thanks.



Okay, I found the solution myself by scouring through my httpd.conf. I
simply needed to add the MultiViews option. Oddly I never had to
explicitly declare it previously with Apache 1.3.

Cheers.
Dec 5 '05 #4

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

Similar topics

0
2193
by: Aldo Polli | last post by:
Hi, I have this error when I start apache2 with php4 Syntax error on line 233 of /mypath/apache2/conf/httpd.conf: Cannot load /mypath/apache2/modules/libphp4.so into server: dynamic linker: /mypath/apache2/bin/httpd: relocation error: symbol not found: ap_pass_brigade; referenced from: /mypath/apache2/modules/libphp4.so I compile apache 2.0.46 with
1
2246
by: Chris Haynes | last post by:
Hello all, I am attempting to install Apache 2.0.47 and php4.3.3 on slackware8.1. I am pretty new to linux and this is something of a learning experience and so I was anticipating a few problems along the way. Now I have pretty much followed the instructions at lamps.efactory.de/e-lamps-2-0.shtml word for word, but when i try to access a simple php file (<?php phpinfo(); ?>) in lynx it just shows me the source code (i.e. <?php phpinfo();...
6
2574
by: Greg Bryant | last post by:
PHP Newbie question: I installed the above, and if I point directly to a ..php file (i.e. http://localhost/phpinfo.php, I get the php script executed properly. If I put a <?php ... ?> tag in html, nothing happens. No error in any Apache logs, no obvious errors in php, nothing displayed on the page. I installed as cgi, I saw an earlier post someone recommended SAPI - could that be a problem (I'm guessing it's some line in one of the...
1
2776
by: FL | last post by:
Hi, I'm tring to *test* php5 beta2 as module with Apache 2.0.48 and win2k (I know, I'm nuts :o) First, there is no php5apache2.dll in the beta2 package but a php4apache2.dll (php.net doc mention php5apache2.dll at http://www.php.net/manual/en/install.apache2.php) I usually copy php4apache2.dll and php4ts.dll in the Apache2/modules/
5
2795
by: Ad Astra | last post by:
I am completely new to PHP and am finding installation the most difficult part to understand and implement. Could someone please review the rather long missive below and assist me? I have provided it in as clear a fashion as possible. COMPONENTS * Windows XP (Home) * Apache2 server (successfully installed; located as
4
2802
by: Mxsmanic | last post by:
The require() I'm using in a PHP script has stopped working after I moved from PHP4 and Apache 1.3.x to PHP5 and Apache 2.x. Now I get messages like this: Warning: main(/includes/ReloadScript.html) : failed to open stream: No such file or directory in /usr/local/www/htdocs/main/AOLCompression.php on line 14 Fatal error: main() : Failed opening required '/includes/ReloadScript.html' (include_path='.:/usr/local/lib/php') in
3
1906
by: Martin Lucas-Smith | last post by:
I've noticed since moving from Apache1/mod_php4/linux to Apache2/mod_php5/linux that when an error is produced by PHP and put in the error_log, the date is no longer logged as well: Apache1/php4/linux example in Apache error_log: PHP Warning: opendir(/foo/bar/): failed to open dir: No such file or directory in /blah/something/listing.html on line 84
1
3697
by: news8080 | last post by:
I downloaded a GUI for nagios that uses PHP but when I point the browser at the PHP file, it shows me the source of .php file instead of executing it, if i use command line 'php filname.php' then I see exepected result but why can I not do that via web?? # /usr/local/bin/php -v PHP 4.4.0 (cli) (built: Jul 21 2005 11:55:49) Copyright (c) 1997-2004 The PHP Group
1
4805
by: Randell D. | last post by:
Folks, I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I did have Apache2/ PHP5 working... I confirmed this via phpinfo output... But now that I removed my original directory containing Apache/PHP, and recompiled from scratch, I get everything to startup and static html is displayd, but phpinfo produces...
0
8739
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8983
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7831
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5907
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4412
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3107
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
2
2402
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2036
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.