Closed Thread Icon

Topic awaiting preservation: Using includes with PHPDev on XP Pages that link to <a href="https://ozoneasylum.com/backlink?for=12449" title="Pages that link to Topic awaiting preservation: Using includes with PHPDev on XP" rel="nofollow" >Topic awaiting preservation: Using includes with PHPDev on XP\

 
Author Thread
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-26-2002 16:30

I am running PHPDev on my XP to test PHP and Perl scripts. I need to configure the Apache to have "include" files. So that I can use

" <!--#include virtual="news.cgi" -->" in my page to include a news.cgi Perl script.

I have done this before but since I had to reformat my hard drive I lost the config file. I am at a loss looking through the httpd.conf in Apache and searching on sites has not led me to any resolution. Any suggestions?


Thanks in advance.

Later,
C:\


~Binary is best~

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-26-2002 16:46

I think I found it here

Later,
C:\


~Binary is best~

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-26-2002 18:14

OK, it still isn't working. Can someone tell me where all I need to change on the .htaccess file?

Thanks in advance.

Later,
C:\


~Binary is best~

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-26-2002 18:21

lookie here

Easiest is to do it in your httpd.conf or commonhttpd.conf as opposed to .htaccess



.:[ Never resist a perfect moment ]:.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-26-2002 18:26

Thanks bit! I just got through reading that.

I am going to try this again.

Later,
C:\


~Binary is best~

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-26-2002 18:54

OK, this is really starting to get on my nerves!

Here is what I changed:

in the .http.conf
Options Indexes Includes FollowSymLinks MultiViews ExecCGI
I added the "Includes" part
and
AddType text/html .shtml
AddHandler server-parsed .shtml
I uncommented these lines

In the .htaccess
DirectoryIndex index.shtml index.htm index.html
I added the "index.shtml"


So what am I missing. The script works on the server, so I know it's not the script itself. I have the path in the CGI script set right I know. So. . . any ideas?

Thanks in advance.

Later,
C:\


~Binary is best~

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-26-2002 19:43

OK, I added this:

<Directory "C:/phpdev/www/cgi-bin">
AllowOverride None
Options Includes
Order allow,deny
Allow from all
</Directory>

And. . . it still doesn't work.

Later,
C:\


~Binary is best~

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-26-2002 20:11

Not entirely sure.
I'll tell you what when I get home (which should be soon) I'll email you my config files I'm running the same setup.

one thing AllowOverride is what allows .htaccess files to work. So in your httpd.conf you want
AllowOverride All

to enable .htaccess files.



.:[ Never resist a perfect moment ]:.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-26-2002 21:44

That sounds great. I appreciate it.

Later,
C:\


~Binary is best~

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-27-2002 15:40

Did they not let you go home last night Bit

Later,
C:\


~Binary is best~

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-27-2002 17:07

no dammit SSI isn't working on mine either.

I gotta get it working



.:[ Never resist a perfect moment ]:.

Piper
Paranoid (IV) Inmate

From: California
Insane since: Jun 2000

posted posted 09-27-2002 18:57

Hey CPrompt,

Did you get it working yet? I forgot to include the part about DirectoryIndex index.shtml index.htm index.html in the email I sent you. Check the httpd.conf I sent along with it to find out where it goes.

Regards,
Charlie

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-27-2002 19:33

Yep, I got it Piper. I sent you back an email. I am getting ready as we speak to get it going.
If I have any problems I will email you or just post here.

Bit, if you want I can send you the stuff that Piper sent to me. (That is, if I can get it working too )

Thanks!

Later,
C:\


~Binary is best~

« BackwardsOnwards »

Show Forum Drop Down Menu