Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting Started... Environment & PHP Problem


daver

Recommended Posts

Hi All,

 

I am just getting started on my first php/osCommerce project. Production environment will be Linux/Apache 1.3.29/PHP 4.3.3/MySQL 4.0.15 Std.

 

My dev enviroment is currently, WinXP/Apache 1.3.23/PHP 4.1.1/MySQL 3.23.47-nt.

 

First question is will it be worth taking the time to upgrade my current dev environment to production (besides OS)? (Hopefully this won't have any affect on other projects besides the time)

 

Next question, maybe this will affect the answer to the first question. I have already installed osCommerce into my current dev environment and php.exe crashes on every osCommerce page I visit. First the page loads the top navigation and the produces the crash notification. After clicking 'close' button, the rest of the page attempts to load and gets a fair way before it ends at some random point that is not the proper end. Inevitably it ends in the middle of a tag. This abrupt end is regardless of which page. I have yet to see a page load successfully.

 

My Apache error log is empty, and I have PHP errors (display) on but nothing is reported. I have run other PHP stuff successfully on the machine, so I'm not sure which function it is crapping out at. So at this point I need to decide if I should rebuild my dev environment or troubleshooting the PHP problem. I am looking for advice on either (easy upgrade steps) or where to start looking for the PHP problem. phpinfo is attached below. Would my php.ini help as well?

 

Thanks in advance for any advice,

Dave

 

Here is my current phpinfo:

PHP Version 4.1.1

 

System Windows NT 5.1 build 2600

Build Date Dec 30 2001

Server API CGI

Virtual Directory Support enabled

Configuration File (php.ini) Path C:\WINDOWS\php.ini

ZEND_DEBUG disabled

Thread Safety enabled

 

This program makes use of the Zend Scripting Language Engine:

Zend Engine v1.1.1, Copyright © 1998-2001 Zend Technologies

 

 

 

--------------------------------------------------------------------------------

 

PHP 4.0 Credits

 

--------------------------------------------------------------------------------

 

Configuration

PHP Core

Directive Local Value Master Value

allow_call_time_pass_reference

On On

allow_url_fopen

1 1

always_populate_raw_post_data

0 0

arg_separator.input

& &

arg_separator.output

& &

asp_tags

Off Off

auto_append_file

no value no value

auto_prepend_file

no value no value

browscap

no value no value

default_charset

no value no value

default_mimetype

text/html text/html

define_syslog_variables

Off Off

disable_functions

no value no value

display_errors

On On

display_startup_errors

Off Off

doc_root

no value no value

enable_dl

On On

error_append_string

no value no value

error_log

no value no value

error_prepend_string

no value no value

error_reporting

2039 2039

expose_php

On On

extension_dir

c:\apache\php\extensions c:\apache\php\extensions

file_uploads

1 1

gpc_order

GPC GPC

highlight.bg

#FFFFFF #FFFFFF

highlight.comment

#FF9900 #FF9900

highlight.default

#0000CC #0000CC

highlight.html

#000000 #000000

highlight.keyword

#006600 #006600

highlight.string

#CC0000 #CC0000

html_errors

On On

ignore_user_abort

Off Off

implicit_flush

Off Off

include_path

.;c:\apache\htdocs\common .;c:\apache\htdocs\common

log_errors

Off Off

magic_quotes_gpc

On On

magic_quotes_runtime

Off Off

magic_quotes_sybase

Off Off

max_execution_time

30 30

open_basedir

no value no value

output_buffering

no value no value

output_handler

no value no value

post_max_size

8M 8M

precision

14 14

register_argc_argv

On On

register_globals

On On

safe_mode

Off Off

safe_mode_exec_dir

no value no value

safe_mode_gid

Off Off

safe_mode_include_dir

no value no value

sendmail_from

[email protected] [email protected]

sendmail_path

no value no value

short_open_tag

On On

SMTP

localhost localhost

sql.safe_mode

Off Off

track_errors

Off Off

upload_max_filesize

32M 32M

upload_tmp_dir

no value no value

user_dir

no value no value

variables_order

EGPCS EGPCS

xmlrpc_error_number

0 0

xmlrpc_errors

Off Off

y2k_compliance

Off Off

 

 

standard

Regex Library Bundled library enabled

Dynamic Library Support enabled

Internal Sendmail Support for Windows enabled

 

Directive Local Value Master Value

assert.active

1 1

assert.bail

0 0

assert.callback

no value no value

assert.quiet_eval

0 0

assert.warning

1 1

safe_mode_allowed_env_vars

PHP_ PHP_

safe_mode_protected_env_vars

LD_LIBRARY_PATH LD_LIBRARY_PATH

session.use_trans_sid

1 1

url_rewriter.tags

a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry

 

 

bcmath

BCMath support enabled

 

 

calendar

Calendar support enabled

 

 

com

Directive Local Value Master Value

com.allow_dcom

Off Off

com.autoregister_casesensitive

On On

com.autoregister_typelib

Off Off

com.autoregister_verbose

Off Off

com.typelib_file

no value no value

 

 

variant

VARIANT support enabled

 

 

ftp

FTP support enabled

 

 

mysql

MySQL Support enabled

Active Persistent Links 0

Active Links 0

Client API version 3.23.39

 

Directive Local Value Master Value

mysql.allow_persistent

On On

mysql.default_host

no value no value

mysql.default_password

no value no value

mysql.default_port

no value no value

mysql.default_socket

no value no value

mysql.default_user

no value no value

mysql.max_links

Unlimited Unlimited

mysql.max_persistent

Unlimited Unlimited

 

 

odbc

ODBC Support enabled

Active Persistent Links 0

Active Links 0

ODBC library Win32

 

Directive Local Value Master Value

odbc.allow_persistent

On On

odbc.check_persistent

On On

odbc.default_db

no value no value

odbc.default_pw

no value no value

odbc.default_user

no value no value

odbc.defaultbinmode

return as is return as is

odbc.defaultlrl

return up to 4096 bytes return up to 4096 bytes

odbc.max_links

Unlimited Unlimited

odbc.max_persistent

Unlimited Unlimited

 

 

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled

PCRE Library Version 3.4 22-Aug-2000

 

 

session

Session Support enabled

 

Directive Local Value Master Value

session.auto_start

Off Off

session.cache_expire

180 180

session.cache_limiter

nocache nocache

session.cookie_domain

no value no value

session.cookie_lifetime

0 0

session.cookie_path

/ /

session.cookie_secure

Off Off

session.entropy_file

no value no value

session.entropy_length

0 0

session.gc_maxlifetime

1440 1440

session.gc_probability

1 1

session.name

PHPSESSID PHPSESSID

session.referer_check

no value no value

session.save_handler

files files

session.save_path

c:/apache/tmp c:/apache/tmp

session.serialize_handler

php php

session.use_cookies

On On

 

 

xml

XML Support active

XML Namespace Support active

EXPAT Version 1.95.2

 

 

wddx

WDDX Support enabled

 

 

Additional Modules

 

 

Environment

Variable Value

COMSPEC C:\WINDOWS\system32\cmd.exe

DOCUMENT_ROOT c:/apache/htdocs

HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*

HTTP_ACCEPT_ENCODING gzip, deflate

HTTP_ACCEPT_LANGUAGE en-au

HTTP_CONNECTION Keep-Alive

HTTP_HOST localhost

HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.1.4322)

PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\apache\mysql\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1\CA\eTrust\ANTIVI~1

REDIRECT_STATUS 200

REDIRECT_URL /phpinfo.php

REMOTE_ADDR 127.0.0.1

REMOTE_PORT 4351

SCRIPT_FILENAME c:/apache/php/php.exe

SERVER_ADDR 127.0.0.1

SERVER_ADMIN admin@localhost

SERVER_NAME 127.0.0.1

SERVER_PORT 80

SERVER_SIGNATURE <ADDRESS>Apache/1.3.23 Server at 127.0.0.1 Port 80</ADDRESS>

 

SERVER_SOFTWARE Apache/1.3.23 (Win32)

SystemRoot C:\WINDOWS

WINDIR C:\WINDOWS

GATEWAY_INTERFACE CGI/1.1

SERVER_PROTOCOL HTTP/1.1

REQUEST_METHOD GET

QUERY_STRING 

REQUEST_URI /phpinfo.php

SCRIPT_NAME /php/php.exe

PATH_INFO /phpinfo.php

PATH_TRANSLATED c:\apache\htdocs\phpinfo.php

 

 

PHP Variables

Variable Value

PHP_SELF /phpinfo.php

_SERVER["COMSPEC"] C:\\WINDOWS\\system32\\cmd.exe 

_SERVER["DOCUMENT_ROOT"] c:/apache/htdocs 

_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */* 

_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate 

_SERVER["HTTP_ACCEPT_LANGUAGE"] en-au 

_SERVER["HTTP_CONNECTION"] Keep-Alive 

_SERVER["HTTP_HOST"] localhost 

_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.1.4322) 

_SERVER["PATH"] C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;c:\\apache\\mysql\\bin;C:\\PROGRA~1\\CA\\Common\\SCANEN~1;C:\\PROGRA~1\\CA\\eTrust\\ANTIVI~1 

_SERVER["REDIRECT_STATUS"] 200 

_SERVER["REDIRECT_URL"] /phpinfo.php 

_SERVER["REMOTE_ADDR"] 127.0.0.1 

_SERVER["REMOTE_PORT"] 4351 

_SERVER["SCRIPT_FILENAME"] c:/apache/php/php.exe 

_SERVER["SERVER_ADDR"] 127.0.0.1 

_SERVER["SERVER_ADMIN"] admin@localhost 

_SERVER["SERVER_NAME"] 127.0.0.1 

_SERVER["SERVER_PORT"] 80 

_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.23 Server at 127.0.0.1 Port 80</ADDRESS>

 

_SERVER["SERVER_SOFTWARE"] Apache/1.3.23 (Win32) 

_SERVER["SystemRoot"] C:\\WINDOWS 

_SERVER["WINDIR"] C:\\WINDOWS 

_SERVER["GATEWAY_INTERFACE"] CGI/1.1 

_SERVER["SERVER_PROTOCOL"] HTTP/1.1 

_SERVER["REQUEST_METHOD"] GET 

_SERVER["QUERY_STRING"] 

_SERVER["REQUEST_URI"] /phpinfo.php 

_SERVER["SCRIPT_NAME"] /php/php.exe 

_SERVER["PATH_INFO"] /phpinfo.php 

_SERVER["PATH_TRANSLATED"] c:\\apache\\htdocs\\phpinfo.php 

_SERVER["PHP_SELF"] /phpinfo.php 

_SERVER["argv"] Array

(

)

 

 

_SERVER["argc"] 0 

_ENV["COMSPEC"] C:\\WINDOWS\\system32\\cmd.exe 

_ENV["DOCUMENT_ROOT"] c:/apache/htdocs 

_ENV["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */* 

_ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate 

_ENV["HTTP_ACCEPT_LANGUAGE"] en-au 

_ENV["HTTP_CONNECTION"] Keep-Alive 

_ENV["HTTP_HOST"] localhost 

_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.1.4322) 

_ENV["PATH"] C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;c:\\apache\\mysql\\bin;C:\\PROGRA~1\\CA\\Common\\SCANEN~1;C:\\PROGRA~1\\CA\\eTrust\\ANTIVI~1 

_ENV["REDIRECT_STATUS"] 200 

_ENV["REDIRECT_URL"] /phpinfo.php 

_ENV["REMOTE_ADDR"] 127.0.0.1 

_ENV["REMOTE_PORT"] 4351 

_ENV["SCRIPT_FILENAME"] c:/apache/php/php.exe 

_ENV["SERVER_ADDR"] 127.0.0.1 

_ENV["SERVER_ADMIN"] admin@localhost 

_ENV["SERVER_NAME"] 127.0.0.1 

_ENV["SERVER_PORT"] 80 

_ENV["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.23 Server at 127.0.0.1 Port 80</ADDRESS>

 

_ENV["SERVER_SOFTWARE"] Apache/1.3.23 (Win32) 

_ENV["SystemRoot"] C:\\WINDOWS 

_ENV["WINDIR"] C:\\WINDOWS 

_ENV["GATEWAY_INTERFACE"] CGI/1.1 

_ENV["SERVER_PROTOCOL"] HTTP/1.1 

_ENV["REQUEST_METHOD"] GET 

_ENV["QUERY_STRING"] 

_ENV["REQUEST_URI"] /phpinfo.php 

_ENV["SCRIPT_NAME"] /php/php.exe 

_ENV["PATH_INFO"] /phpinfo.php 

_ENV["PATH_TRANSLATED"] c:\\apache\\htdocs\\phpinfo.php 

Link to comment
Share on other sites

My own personal opinion is that it's usually good to have the test box and production systems with the same versions. Usually due to the fact that small nuances in different versions can bite you in ways that are very hard to track down. With that said, it shouldn't take too long to upgrade your software unless you have a slow system with a slow download and compile time.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...