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

Home Posts Topics Members FAQ

.htaccess troubles...

I'm having a problem using the .htaccess file to point my local installation
of php5 (located at www.mydomain.com/horde/cgi-bin/php5.cgi). As per the
instructions I was following I added the following to the .htaccess file
(located at www.mydomain.com/horde)...

<start quote>
#PHP 5.0.5 FINAL without security wrap
Action application/x-httpd-phpx /cgi-bin/php5.cgi
AddType application/x-httpd-phpx php php3 phtml php4 php5
<end quote>

....but when I run the sysinfo.php test script
(www.mydomain.com/horde/sysinfo.php) I get the following error...

<start quote>
Not Found
The requested URL /cgi-bin/php5.cgi/horde/sysinfo.php was not found on this
server.
<end quote>

Why is it sticking /cgi-bin/php5.cgi into the URL?

Thanks,
John
Nov 24 '05 #1
1 1629
John,

Simple... It wants to reference everything off of /cgi-bin/php5.cgi

Pretty much you are telling it to have that action within the .htaccess
file. You can not specify an "Action" within a .htaccess file.

The correct way would be to add:
Apache 1.3 (.htacess file)
AllowOverride Options
Options +ExecCGI
AddType application/x-httpd-phpx php php3 (...)
AddHandler application/x-httpd-phpx /cgi-bin/php5.cgi

I believe that is correct, however it might be otherwise..

Mike

I'm having a problem using the .htaccess file to point my local installation
of php5 (located at www.mydomain.com/horde/cgi-bin/php5.cgi). As per the
instructions I was following I added the following to the .htaccess file
(located at www.mydomain.com/horde)...

<start quote>
#PHP 5.0.5 FINAL without security wrap
Action application/x-httpd-phpx /cgi-bin/php5.cgi
AddType application/x-httpd-phpx php php3 phtml php4 php5
<end quote>

...but when I run the sysinfo.php test script
(www.mydomain.com/horde/sysinfo.php) I get the following error...

<start quote>
Not Found
The requested URL /cgi-bin/php5.cgi/horde/sysinfo.php was not found on this
server.
<end quote>

Why is it sticking /cgi-bin/php5.cgi into the URL?

Thanks,
John

Nov 25 '05 #2

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

Similar topics

1
7689
by: yawnmoth | last post by:
i'm trying to write a php script that will password protect some random directory by creating a .htaccess file, and a password file to accompany the .htaccess file, and it isn't working... specifically, i can't enter the newly created directory with a username of test, and a password of test, which is what i am trying to do. also, i'm...
4
2976
by: Ivo | last post by:
Greetings newsgroup, I am moving some php scripts to a new host. While getting to know the server, I ran into a strange problem. If I add a .htaccess file, or more specifically: a .htaccess with content, to a folder, requesting (html and php) files from that folder results in internal server error messages. If I upload an empty .htaccess...
7
7488
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere including the php.net manual. In the manual it said to include something like the following:
0
1994
by: Jack Hambabo | last post by:
Hi, I'm searching for a php script that can find out whether the current user (I know _SERVER will give me the name for non-cgi php) has the right to view a specific file. My dream is that I just need a short php script that just asks the webserver what the rights are. That seems a reasonable wish to me. If this is however not...
0
7496
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
7685
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. ...
0
6014
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
5354
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
5071
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...
0
3485
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...
0
3467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
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
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.