Forum Moderators: phranque
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
--------
Thanks in advance
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?
[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/>