473,804 Members | 2,271 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 1616
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
2197
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
2250
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
2578
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
2778
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
2801
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
2806
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
1912
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
3703
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
4821
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
9714
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...
0
9594
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10090
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7635
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
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
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
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.