Forum Moderators: phranque

Message Too Old, No Replies

Which Apache for WinXP Home?

to support PHP

         

lavazza

5:34 pm on Oct 31, 2007 (gmt 0)

10+ Year Member



Hi there,

I want to start using php includes (e.g. <?php include ("includes/mynav.php");?> ) in my html, which I have tried on my domain host, and it works... BUT without IIS or similar, I can't see how it looks on my XP HOME local machine

So... yesterday, I tried apache-1.3.22 with php-5.2.4 (because they have, what I assume are, the easier msi installers) and kept getting an error saying "Invalid command 'PHPIniDir', perhaps mis-spelled or defined by a module not included in the server configuration"

Googling this error message made me quickly realise/assume that maybe there is a better server/php combination (for my local machine) and as I already have the beginnings of a headache... I figured I'd ask for HELP here

Qs
--------

  • Is Apache my best option?

  • If so, which version of Apache?

  • And which version of php?

  • And is there a step-by-step tutorial-for-dummies covering installation of both?

Thanks in advance

jbinbpt

6:46 pm on Oct 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try Server2go [server2go-web.de]

Install it on a flash drive.

lavazza

8:05 am on Nov 1, 2007 (gmt 0)

10+ Year Member



Thanks!

I have unzipped server2go_a2_psm.zip to my F-drive USB stick

Firing up Server2Go.exe loads [127.0.0.1:4001...] into IE7 with:

Congratulations
Reading this means you are running Server2Go successfully. Your installed version supports the following software:
  • Apache/2.0.58 (Win32)
  • PHP/5.2.3
  • SQLite 2
  • MySQL 5.0.41-community-nt

However... my own 'test' html page is not displaying the content from <?php include("test001.php");?> (which definitely does display as intended on my ISP-hosted domain

I haven't seen any mention of any config files that need to be modified...

I wonder what I am doing wrong?

malcolmcroucher

6:29 pm on Nov 1, 2007 (gmt 0)

10+ Year Member



I could be totally wrong here but you need to get apache configured for server side includes if you wanna put includes on apache ...

but i have no idea how to do that as i am trying to do it now.

Am i correct in this?

lavazza

8:42 pm on Nov 1, 2007 (gmt 0)

10+ Year Member



I have a hunch you might be right, but my google-fu must be lacking cos I haven't found any info re which files need editing

HELP!

jdMorgan

8:54 pm on Nov 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about this to start: [httpd.apache.org...]

Jim

lavazza

9:36 pm on Nov 1, 2007 (gmt 0)

10+ Year Member



Thanks! It's a start, Jim, but not as we know it ;)

[httpd.apache.org...] says:To permit SSI on your server, you must have mod_include installed and enabled. Additionally, you must have the following directive either in your httpd.conf file, or in a .htaccess file:

Options +Includes
<snip/>

the 'supplied' httpd.conf has:
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
(not +Includes, but I think that might be ok...)

In F:/server2go_a2/server/Apache/conf/httpd.conf, there are 19 instances of %CDPMS

e.g.
PidFile "%CDPMS:RTDIR%httpd.pid"

PHPIniDir "%CDPMS:RTDIR%"

ServerRoot "%CDPMS:SRVDIR%Apache"

#Listen 12.34.56.78:80
Listen %CDPMS:HOST%:%CDPMS:PORT%
etc...

I wonder if the paths need editing?

<confused/>

malcolmcroucher

1:52 pm on Nov 3, 2007 (gmt 0)

10+ Year Member



Hi ,

I got ssi working on Apache for windows XP for home .

It took me ages but now its working .

If you need any help just shout.

lavazza

3:22 am on Nov 4, 2007 (gmt 0)

10+ Year Member



If you need any help just shout

<shouting>YES, PLEASE!</shouting>

Any tips, pointers will be MOST welcome