I have been attempting to upgrade a SuSE 9 linux box from php 4.3.4 to php 5.1.6. I have something working, since I'm able to run my old programs under the new setup, but I'm fairly certain I've done something wrong somewhere; using the phpinfo() command shows that I'm still running 4.3.4 for some reason.

This is a record of the differences between the two versions of php which I am dealing with. One has been drawn from a fresh run, with the 'new' php system installed, of the phpinfo() command. The other is drawn from an older copy of the same command, from a page which I saved to disk as an html page because I wanted to see if I could shift the color of the page. I was able to; I'm not sure why I didn't simply delete it, but I'm now very glad and grateful that I didn't.

Initial fields-
Identical fields:

01. System
02. Build Date
03. Configure Command
04. Server API
05. Virtual Directory Support
06. Configuration File (php.ini) Path
07. PHP API
08. PHP Extension
09. Zend Extension
10. Debug Build
11. Thread Safety
12. Registered PHP Streams

Configuration--

PHP Core-
Identical fields:

01. allow_call_time_pass_reference
02. allow_url_fopen
03. always_populate_raw_post_data
04. arg_separator.input
05. arg_separator.output
06. asp_tags
07. auto_append_file
08. auto_prepend_file
09. browscap
10. default_charset
11. default_mimetype
12. define_syslog_variables
13. disable_classes
14. disable_functions
15. display_errors
16. display_startup_errors
17. doc_root
18. docref_ext
19. docref_root
20. enable_dl
21. error_append_string
22. error_log
23. error_prepend_string
24. error_reporting
25. expose_php
26. extension_dir
27. file_uploads
28. gpc_order
29. highlight.bg
30. highlight.comment
31. highlight.default
32. highlight.html
33. highlight.keyword
34. highlight.string
35. html_errors
36. ignore_repeated_errors
37. ignore_repeated_source
38. ignore_user_abort
39. implicit_flush
40. include_path
41. log_errors
42. log_errors_max_len
43. magic_quotes_gpc
44. magic_quotes_runtime
45. magic_quotes_sybase
46. max_execution_time
47. max_input_time
48. memory_limit
49. open_basedir
50. output_buffering
51. output_handler
52. post_max_size
53. precision

54. register_globals
55. report_memleaks
56. safe_mode
57. safe_mode_exec_dir
58. safe_mode_gid
59. safe_mode_include_dir
60. sendmail_from
61. sendmail_path
62. serialize_precision
63. short_open_tag
64. SMTP
65. smtp_port
66. sql.safe_mode
67. track_errors
68. unserialize_callback_func
69. upload_max_filesize
70. upload_tmp_dir
71. user_dir
72. variables_order
73. xmlrpc_error_number
74. xmlrpc_errors
75. y2k_compliance

Differences:
1. register_argc_argv field-
Old copy: On
New copy: Off

apache2handler-
Identical fields:

01. Apache Version
02. Apache API Version
03. Server Administrator
04. Hostname:Port
05. User/Group
06. Max Requests
07. Timeouts
08. Virtual Server
09. Server Root
10. Loaded Modules
11. engine
12. last_modified
13. xbithack


Apache Environment-
Identical fields:

01. HTTP_HOST
02. HTTP_ACCEPT_ENCODING
03. HTTP_CONNECTION
04. PATH
05. SERVER_SIGNATURE
06. SERVER_SOFTWARE
07. SERVER_NAME
08. SERVER_ADDR
09. SERVER_PORT
10. REMOTE_ADDR
11. DOCUMENT_ROOT
12. SERVER_ADMIN
13. GATEWAY_INTERFACE
14. SERVER_PROTOCOL
15. REQUEST_METHOD
16. QUERY_STRING


Difference log:
1. HTTP_USER_AGENT field-
Old copy: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
New copy: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7

2.HTTP_ACCEPT field-
Old copy: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
New copy: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8,image/png,*.*;q=0.5

3. HTTP_ACCEPT_LANGUAGE field-
Old copy: en-us
New copy: en-us,en;q=0.5

4. SCRIPT_FILENAME field-
Old copy: [path]/test.php
New copy: [path]/config.php

5. REMOTE_PORT-
Old copy: 1319
New copy: 1709

6. REQUEST_URI
Old copy: [path]/test.php
New copy: [path]/config.php


New fields-
1. HTTP_ACCEPT_CHARSET
2. HTTP_KEEP_ALIVE

HTTP Headers Information-
Except for HTTP Request field, information is consistent with previous section's fields of the same name. HTTP Request fields seem reasonable as well. X-Powered-By, Transfer-Encoding, and Content-Type are identical between the two pages. New copy has two additional fields: Accept-Charset and Keep-Alive.

bcmath-
all fields identical

bz2-
all fields identical

calender-
all fields identical

ctype-
all fields identical

curl-
all fields identical

dba-
In the old copy, dba contains two fields, DBA support and Supported handlers. Neither of these fields is present in the new copy, nor is the dba section itself present.

domxml-
all fields identical

exif-
all fields identical

ftp-
all fields identical

gd-
all fields identical

gettext-
all fields identical

gmp-
all fields identical

imap-
all fields identical

ldap-
all fields identical

mbstring-
all fields identical

mcal-
all fields identical

mcrypt-
all fields identical

mhash-
all fields identical

mime_magic-
all fields identical

mysql-
all fields identical

odbc-
all fields identical

openssl-
all fields identical

overload-
all fields identical

pcre-
all fields identical

pgsql-
all fields identical

posix-
all fields identical

qtdom-
all fields identical

session-
all fields identical

shmop-
all fields identical

snmp-
all fields identical

sockets-
all fields identical

standard-
all fields identical

tokenizer-
all fields identical

wddx-
all fields identical

xml-
all fields identical

xslt-
all fields identical

yp-
all fields identical

zlib-
all fields identical

Additional Modules-

Old copy contains module 'readline' which new copy does not.

Environment-
Identical fields:
01. MODULE_VERSION_STACK
02. LESSKEY
03. NNTPSERVER
04. INFODIR
05. MANPATH
06. HOSTNAME
07. GNOME2_PATH
08. XKEYSYMDB
09. HOST
10. TERM
11. SHELL
12. PROFILEREAD
13. HISTSIZE
14. CVSROOT
15. GNOME_PATH
16. QTDIR
17. get_module_list_done
18. JRE_HOME
19. USER
20. LS_COLORS
21. XNLSPATH
22. HOSTTYPE
23. PAGER
24. COLUMNS
25. get_includes_done
26. MINICOM
27. MODULE_VERSION
28. GNOMEDIR
29. MAIL
30. PATH
31. CPU
32. JAVA_BINDIR
33. INPUTRC
34. PWD
35. JAVA_HOME
36. MODULEPATH
37. LOADMODULES
38. LINES
39. TEXINPUTS
40. HOME
41. LESS_ADVANCED_PREPROCESSOR
42. OSTYPE
43. LS_OPTIONS
44. XCURSOR_THEME
45. no_proxy
46. WINDOWMANAGER
47. GTK_PATH
48. LESS
49. MACHTYPE
50. LOGNAME
51. CVS_RSH
52. LC_TYPE
53. MODULESHOME
54. PKG_CONFIG_PATH
55. LESSOPEN
56. ACLOCAL_PATH
57. INFOPATH
58. LESSCLOSE
59. G_BROKEN_FILENAMES
60. JAVA_ROOT
61. COLORTERM
62. _
63. PREVLEVEL
64. RUNLEVEL
65. DAEMON

Differences:

1. SSH_CLIENT-
Old copy: ::ffff:10.10.10.31 25853 22
New copy: ::ffff:10.10.10.35 1563 22

2. SSH_TTY-
Old copy: /dev/pts/0
New copy: /dev/pts/6

3. SHLVL-
Old copy: 2
New copy: 3

4. SSH_CONNECTION-
Old copy: ::ffff:10.10.10.31 25853 ::ffff:10.10.10.15 22
New copy: ::ffff:10.10.10.35 1563 ::ffff:10.10.10.15 22

Recommended Answers

All 3 Replies

did you update your apache config to load the php5 module and restart your server?

I thought so, but at this point I'm not sure I updated the right files. What file exactly should I be updating? It'd be nice to know what I'm looking for.

httpd.conf and the path to the file depends on your distro.

locate httpd.conf
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.