Got PHP working, now all moodle shows is phpinfo page

Got PHP working, now all moodle shows is phpinfo page

by Robs Disbury -
Number of replies: 9
ok went back a few steps and re did php 5.0.3 and reinstalled mysql 4.1.9
now when i go to the homepage all i get is phpinfo page up?
Average of ratings: -
In reply to Robs Disbury

Re: Got PHP working, now all moodle shows is phpinfo page

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
first thing, may I politely suggest sticking to one thread about your installation problems - seeing as they are almost certainly related and it's almost impossible to get a trail of what had been suggested and what you have tried smile

The only way that this can happen is if the a file with the phpingo(); command is in one of the front page moodle files or something it includes. Have you modified any files while you have been trying to get it to work? What is the URL/Address you are seeing when this page comes up?
In reply to Robs Disbury

Re: Got PHP working, now all moodle shows is phpinfo page

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Offer:

If it helps and you can or are willing to install terminal server for remote administration I would be very happy to have a poke around your server to see if I can spot anything. I'm no Windows expert, but I've been around a bit smile
In reply to Howard Miller

Re: Got PHP working, now all moodle shows is phpinfo page

by Robs Disbury -
hi sorry, for all thew threads.
unfortunatly due to the tight firewall i can't get TS working.
I worked out i had doc_root in my php.ini thus was always going to my other index.php.
now I have got php working fully with mysql (well as far as i believe no errors now or crashing)
created a manual config.php
went to /admin/ and went through all of those pages.
On an up note i will write a guide on php / mysql for people and windows. so many factors or tweaks people do.
seems to have installed got a lot of success.
problem now is i go to the homepage and once again it redirects me to install.php.
i can go to /admin/ and it then goes to the login page. i log in and i get the admin control panel.
where do i go from here?
In reply to Robs Disbury

Re: Got PHP working, now all moodle shows is phpinfo page

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The code that does the redirect to install.php couldn't be much simpler - it simple does a file_exists() function on the config.php file. If there isn't one then it redirects. I would check the permissions on your config.php for a start. Again (I know I keep banging on about this) - keep one eye on the event logs in case something is going wrong that hasn't generated an obvious error.
In reply to Howard Miller

Re: Got PHP working, now all moodle shows is phpinfo page

by Robs Disbury -
ok logs are nice and clear.
permissions:
admins - full
IUSR_xxx - read & exec
system - full
In reply to Robs Disbury

Re: Got PHP working, now all moodle shows is phpinfo page

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
mmm... what user is IIS running your Moodle site under - is it definitely IUSR_xxx? Things seem to be getting nasty now... In your php.ini, are any open_basedir restrictions in effect? I am clutching at straws but the user comments for the file_exists() command mention some issues (http://www.php.net/file_exists)

Perhaps even, post a copy of your phpinfo() output here and we'll see if anything jumps out. I think your earlier question was fair - does anybody have Moodle running in this configuration.

One for Martin: could we have a document (or Wiki page) that shows known working configurations and any tips pertaining?

You could have downloaded and installed a copy of SuSE 9.2 while you have been struggling with this smile
In reply to Howard Miller

Re: Got PHP working, now all moodle shows is phpinfo page

by Robs Disbury -
thanks for all the help.
I have most the guide in my head now and troubleshooting, just need to write it
copied the ./config.php from index.php into a new file test.php which contains:
<?php
$filename = './config.php';
if (file_exists($filename)) {
   echo "The file $filename exists";
} else {
   echo "The file $filename does not exist";
}
?>
and it comes up file does not exist, when i know it does
though change to f:\inetpub\moodle\config.php and it does
here is phpinfo

PHP Version 5.0.3


System Windows NT BETA 5.2 build 3790
Build Date Dec 15 2004 08:06:41
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API ISAPI
Virtual Directory Support enabled
Configuration File (php.ini) Path F:\inetpub\PHP5\php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies


PHP Credits

Configuration

PHP Core

DirectiveLocal ValueMaster Value
allow_call_time_pass_referenceOffOff
allow_url_fopenOnOn
always_populate_raw_post_dataOffOff
arg_separator.input&&
arg_separator.output&&
asp_tagsOffOff
auto_append_fileno valueno value
auto_globals_jitOnOn
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetno valueno value
default_mimetypetext/htmltext/html
define_syslog_variablesOffOff
disable_classesno valueno value
disable_functionsno valueno value
display_errorsOffOff
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOnOn
error_append_stringno valueno value
error_logno valueno value
error_prepend_stringno valueno value
error_reporting20472047
expose_phpOnOn
extension_dirF:\inetpub\PHP5\extF:\inetpub\PHP5\ext
file_uploadsOnOn
highlight.bg#FFFFFF#FFFFFF
highlight.comment#FF8000#FF8000
highlight.default#0000BB#0000BB
highlight.html#000000#000000
highlight.keyword#007700#007700
highlight.string#DD0000#DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.;C:\php5\pear.;C:\php5\pear
log_errorsOnOn
log_errors_max_len10241024
magic_quotes_gpcOnOn
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
mail.force_extra_parametersno valueno value
max_execution_time3030
max_input_time6060
open_basedirno valueno value
output_buffering40964096
output_handlerno valueno value
post_max_size8M8M
precision1414
register_argc_argvOffOff
register_globalsOffOff
register_long_arraysOffOff
report_memleaksOnOn
report_zend_debugOnOn
safe_modeOffOff
safe_mode_exec_dirno valueno value
safe_mode_gidOffOff
safe_mode_include_dirno valueno value
sendmail_fromno valueno value
sendmail_pathno valueno value
serialize_precision100100
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
track_errorsOffOff
unserialize_callback_funcno valueno value
upload_max_filesize2M2M
upload_tmp_dirno valueno value
user_dirno valueno value
variables_orderGPCSGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn
zend.ze1_compatibility_modeOffOff

bcmath

BCMath support enabled

calendar

Calendar support enabled

com_dotnet

COM supportenabled
DCOM supportdisabled
.Net supportenabled

DirectiveLocal ValueMaster Value
com.allow_dcom00
com.autoregister_casesensitive11
com.autoregister_typelib00
com.autoregister_verbose00
com.code_pageno valueno value
com.typelib_fileno valueno value

ctype

ctype functions enabled

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.11
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

ftp

FTP support enabled

iconv

iconv support enabled
iconv implementation "libiconv"
iconv library version 1.9

DirectiveLocal ValueMaster Value
iconv.input_encodingISO-8859-1ISO-8859-1
iconv.internal_encodingISO-8859-1ISO-8859-1
iconv.output_encodingISO-8859-1ISO-8859-1

ISAPI

Server VariableValue
CONTENT_LENGTH 0
PATH_TRANSLATED F:\inetpub\webroot\index.php
REMOTE_ADDR 172.16.20.2
REMOTE_HOST 172.16.20.2
REQUEST_METHOD GET
SERVER_NAME beta
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
APPL_MD_PATH /LM/W3SVC/80003694/Root
APPL_PHYSICAL_PATH F:\inetpub\webroot\
INSTANCE_ID 80003694
INSTANCE_META_PATH /LM/W3SVC/80003694
URL /index.php
ALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-gb HTTP_HOST:beta HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
HTTPS off
SCRIPT_NAME /index.php
SERVER_PORT_SECURE 0

libxml

libXML support active
libXML Version 2.6.11
libXML streams enabled

mysql

MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.9

DirectiveLocal ValueMaster Value
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno valueno value
mysql.default_passwordno valueno value
mysql.default_portno valueno value
mysql.default_socketno valueno value
mysql.default_userno valueno value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff

odbc

ODBC Supportenabled
Active Persistent Links 0
Active Links 0
ODBC library Win32

DirectiveLocal ValueMaster Value
odbc.allow_persistentOnOn
odbc.check_persistentOnOn
odbc.default_dbno valueno value
odbc.default_pwno valueno value
odbc.default_userno valueno value
odbc.defaultbinmodereturn as isreturn as is
odbc.defaultlrlreturn up to 4096 bytesreturn up to 4096 bytes
odbc.max_linksUnlimitedUnlimited
odbc.max_persistentUnlimitedUnlimited

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

session

Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary wddx

DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.bug_compat_42OffOff
session.bug_compat_warnOffOff
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno valueno value
session.cookie_lifetime00
session.cookie_path//
session.cookie_secureOffOff
session.entropy_fileno valueno value
session.entropy_length00
session.gc_divisor10001000
session.gc_maxlifetime14401440
session.gc_probability11
session.hash_bits_per_character55
session.hash_function00
session.namePHPSESSIDPHPSESSID
session.referer_checkno valueno value
session.save_handlerfilesfiles
session.save_pathC:\WINDOWS\TempC:\WINDOWS\Temp
session.serialize_handlerphpphp
session.use_cookiesOnOn
session.use_only_cookiesOffOff
session.use_trans_sid00

SimpleXML

Simplexml supportenabled
Revision $Revision: 1.139.2.4 $
Schema support enabled

SPL

SPL supportenabled
Interfaces RecursiveIterator, SeekableIterator
Classes ArrayObject, ArrayIterator, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator

SQLite

SQLite supportenabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.146.2.3 2004/09/26 01:41:40 wez Exp $
SQLite Library 2.8.14
SQLite Encoding iso8859

DirectiveLocal ValueMaster Value
sqlite.assoc_case00

standard

Regex Library Bundled library enabled
Dynamic Library Support enabled
Internal Sendmail Support for Windows enabled

DirectiveLocal ValueMaster Value
assert.active11
assert.bail00
assert.callbackno valueno value
assert.quiet_eval00
assert.warning11
auto_detect_line_endings00
date.default_latitude31.766731.7667
date.default_longitude35.233335.2333
date.sunrise_zenith90.8390.83
date.sunset_zenith90.8390.83
default_socket_timeout6060
safe_mode_allowed_env_varsPHP_PHP_
safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH
url_rewriter.tagsa=href,area=href,frame=src,input=src,form=fakeentrya=href,area=href,frame=src,input=src,form=fakeentry
user_agentno valueno value

tokenizer

Tokenizer Support enabled

wddx

WDDX Supportenabled
WDDX Session Serializer enabled

xml

XML Support active
XML Namespace Support active
libxml2 Version 2.6.11

zlib

ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4

DirectiveLocal ValueMaster Value
zlib.output_compressionOffOff
zlib.output_compression_level-1-1
zlib.output_handlerno valueno value

Additional Modules

Module Name

Environment

VariableValue
ALLUSERSPROFILE C:\Documents and Settings\All Users
ClusterLog C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME BETA
ComSpec C:\WINDOWS\system32\cmd.exe
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;F:\inetpub\PHP5
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 7 Stepping 3, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0703
ProgramFiles C:\Program Files
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
USERPROFILE C:\Documents and Settings\sophos
windir C:\WINDOWS

PHP Variables

VariableValue
_SERVER["ALL_HTTP"]HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-gb HTTP_HOST:beta HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
_SERVER["HTTPS"]off
_SERVER["SCRIPT_NAME"]/index.php
_SERVER["HTTP_COOKIE"]no value
_SERVER["AUTH_PASSWORD"]no value
_SERVER["AUTH_TYPE"]no value
_SERVER["AUTH_USER"]no value
_SERVER["CONTENT_LENGTH"]0
_SERVER["CONTENT_TYPE"]no value
_SERVER["PATH_TRANSLATED"]F:\inetpub\webroot
_SERVER["QUERY_STRING"]no value
_SERVER["REMOTE_ADDR"]172.16.20.2
_SERVER["REMOTE_HOST"]172.16.20.2
_SERVER["REMOTE_USER"]no value
_SERVER["REQUEST_METHOD"]GET
_SERVER["SERVER_NAME"]beta
_SERVER["SERVER_PORT"]80
_SERVER["SERVER_PROTOCOL"]HTTP/1.1
_SERVER["SERVER_SOFTWARE"]Microsoft-IIS/6.0
_SERVER["APPL_MD_PATH"]/LM/W3SVC/80003694/Root
_SERVER["APPL_PHYSICAL_PATH"]F:\inetpub\webroot\
_SERVER["INSTANCE_ID"]80003694
_SERVER["INSTANCE_META_PATH"]/LM/W3SVC/80003694
_SERVER["LOGON_USER"]no value
_SERVER["REQUEST_URI"]/index.php
_SERVER["URL"]/index.php
_SERVER["SCRIPT_FILENAME"]F:\inetpub\webroot\index.php
_SERVER["ORIG_PATH_INFO"]/index.php
_SERVER["PATH_INFO"]no value
_SERVER["ORIG_PATH_TRANSLATED"]F:\inetpub\webroot\index.php
_SERVER["DOCUMENT_ROOT"]F:\inetpub\webroot
_SERVER["PHP_SELF"]/index.php
_SERVER["HTTP_CONNECTION"]Keep-Alive
_SERVER["HTTP_ACCEPT"]image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
_SERVER["HTTP_ACCEPT_ENCODING"]gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"]en-gb
_SERVER["HTTP_HOST"]beta
_SERVER["HTTP_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
_ENV["ALLUSERSPROFILE"]C:\Documents and Settings\All Users
_ENV["ClusterLog"]C:\WINDOWS\Cluster\cluster.log
_ENV["CommonProgramFiles"]C:\Program Files\Common Files
_ENV["COMPUTERNAME"]BETA
_ENV["ComSpec"]C:\WINDOWS\system32\cmd.exe
_ENV["NUMBER_OF_PROCESSORS"]1
_ENV["OS"]Windows_NT
_ENV["Path"]C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;F:\inetpub\PHP5
_ENV["PATHEXT"].COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PROCESSOR_ARCHITECTURE"]x86
_ENV["PROCESSOR_IDENTIFIER"]x86 Family 6 Model 7 Stepping 3, GenuineIntel
_ENV["PROCESSOR_LEVEL"]6
_ENV["PROCESSOR_REVISION"]0703
_ENV["ProgramFiles"]C:\Program Files
_ENV["SystemDrive"]C:
_ENV["SystemRoot"]C:\WINDOWS
_ENV["TEMP"]C:\WINDOWS\TEMP
_ENV["TMP"]C:\WINDOWS\TEMP
_ENV["USERPROFILE"]C:\Documents and Settings\sophos
_ENV["windir"]C:\WINDOWS

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.


In reply to Robs Disbury

Re: Got PHP working, now all moodle shows is phpinfo page

by Robs Disbury -
ok commented out the redirect and so far all seems to work ok. not a great thing but works.
Makes me think php fileexist not working right.
In reply to Robs Disbury

Re: Got PHP working, now all moodle shows is phpinfo page

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Mmmm.... nothing jumps out I'm afraid.