On my Suse 10 box, I uninstalled Php4, and apache. Installed apache2, Php5.1.4 and Mysql. The problem I am facing now are
- mywebsite.com points to index.html from apache2 (It works)
- mywebstie.com/index.php points to "PHP MySQL support not enabled We were unable to use the MySQL database because the MySQL extension for PHP is not installed. Check your PHP.ini to see how you can enable it."
- php-config --extension-dir outputs /usr/local/lib/php/extensions/non-debug-non-zts-20050922
- apache error_log contains
"Tue Jun 06 13:50:16 2006] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Jun 06 13:50:16 2006] [notice] Apache/2.2.2 (Unix) PHP/5.1.4 configured -- resuming normal operations
[Tue Jun 06 13:50:59 2006] [notice] SIGHUP received. Attempting to restart
PHP Warning: PHP Startup: U\x89\xe5VS\xe8\xbb\xfc\xff\xff\x81\xc3\x16@: Unable to initialize module\nModule compiled with module API=20020429, debug=0, thread-safety=0\nPHP compiled with module API=20050922, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0"
- php.ini doc_root = /usr/local/apache2/htdocs
- php.ini extension_dir = /usr/local/lib/php/extensions
- extension mysql.so is uncommented
- httpd.conf has index.php in DirectoryIndex
- httpd.conf has AddType application/x-httpd-php .php .phtml
- I have run thru the mysql instructions on INSTALL_mysql.txt on the drupal install
- Copied all drupal files to htdocs
- Modified settings.php

Please help
Siddharth

Comments

mikl’s picture

Well, I'm not sure about SuSE, but the linux I use (Ubuntu) have separate packages this (php5-mysql and php5-mysqli).
Have you checked if there's such a package, and if so, if you have it installed?

siddharth_jagtiani’s picture

I did a locate php5-mysql, did not find any file with that name :-(, yes the package exists. Is there a way to trace what apacactl restart calls ? Where does it pick up its php.ini file ? What so files does it try to load ?

If you notice above php-config --extension-dir returns a extra prefixed directory

Siddharth

narres’s picture

Try a look into a:

phpinfo();

Usually it is lokated here: http://www.novell.com/products/linuxpackages/suselinux/php5-mysql.html

Thomas Narres
Keep the sunny side up

siddharth_jagtiani’s picture

PHP Version 5.1.4

System Linux mgmtserv 2.6.13-15.10-smp #1 SMP Fri May 12 16:21:47 UTC 2006 i686
Build Date Jun 7 2006 12:34:19
Configure Command './configure' '--prefix=/usr/local/lib/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql-dir=/usr/include/mysql' '--with-zlib-dir=/usr/local/lib' '--with-mysql-sock=/var/lib/mysql/mysql.sock'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php/lib
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

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

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

PHP Credits

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

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
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_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_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 no value no value
expose_php On On
extension_dir /usr/local/lib/php/lib/php/extensions/no-debug-non-zts-20050922 /usr/local/lib/php/lib/php/extensions/no-debug-non-zts-20050922
file_uploads On On
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_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/lib/php/lib/php .:/usr/local/lib/php/lib/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time -1 -1
open_basedir no value no value
output_buffering 0 0
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
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 On On
zend.ze1_compatibility_mode Off Off

apache2handler
Apache Version Apache/2.2.2 (Unix) PHP/5.1.4
Apache API Version 20051115
Server Administrator siddharth_jagtiani@symantec.com
Hostname:Port mgmtserv.vxindia.veritas.com:0
User/Group daemon(2)/2
Max Requests Per Child: 10000 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server No
Server Root /usr/local/apache2
Loaded Modules core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_env mod_setenvif prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_cgi mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_so mod_php5

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
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_LANGUAGE en-us
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
HTTP_HOST mgmtserv.vxindia.veritas.com
HTTP_CONNECTION Keep-Alive
PATH /sbin:/usr/sbin:/usr/local/sbin:/opt/kde3/sbin:/opt/gnome/sbin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
SERVER_SIGNATURE no value
SERVER_SOFTWARE Apache/2.2.2 (Unix) PHP/5.1.4
SERVER_NAME mgmtserv.vxindia.veritas.com
SERVER_ADDR 10.216.43.242
SERVER_PORT 80
REMOTE_ADDR 10.216.42.203
DOCUMENT_ROOT /usr/local/apache2/htdocs
SERVER_ADMIN siddharth_jagtiani@symantec.com
SCRIPT_FILENAME /usr/local/apache2/htdocs/php.php
REMOTE_PORT 1394
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /php.php
SCRIPT_NAME /php.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /php.php HTTP/1.1
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language en-us
Accept-Encoding gzip, deflate
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Host mgmtserv.vxindia.veritas.com
Connection Keep-Alive
HTTP Response Headers
X-Powered-By PHP/5.1.4
Keep-Alive timeout=5, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html

ctype
ctype functions enabled

date
date/time support enabled
Timezone Database Version 2006.1
Timezone Database internal
Default timezone Asia/Calcutta

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

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

hash
hash support enabled
Hashing Engines md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.3.5

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

libxml
libXML support active
libXML Version 2.6.20
libXML streams enabled

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 6.6 06-Feb-2006

PDO
PDO support enabled
PDO drivers sqlite2

posix
Revision $Revision: 1.70.2.3 $

Reflection
Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.33 2006/03/29 14:28:42 tony2001 Exp $

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

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
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_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path no value no value
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.22 $
Schema support enabled

SPL
SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite
SQLite support enabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.166.2.13 2006/04/18 14:30:15 iliaa Exp $
SQLite Library 2.8.16
SQLite Encoding UTF-8

Directive Local Value Master Value
sqlite.assoc_case 0 0

standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

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
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset=
user_agent no value no value

tokenizer
Tokenizer Support enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.20

xmlreader
XMLReader enabled

xmlwriter
XMLWriter enabled

zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules
Module Name

Environment
Variable Value
LESSKEY /etc/lesskey.bin
MANPATH /usr/share/man:/usr/local/man:/opt/gnome/man:/usr/X11R6/man:/opt/gnome/share/man
INFODIR /usr/local/info:/usr/share/info:/usr/info
NNTPSERVER news
SSH_AGENT_PID 16577
KDE_MULTIHEAD false
DM_CONTROL /var/run/xdmctl
HOSTNAME mgmtserv
XKEYSYMDB /usr/X11R6/lib/X11/XKeysymDB
GNOME2_PATH /usr/local:/opt/gnome:/usr
GPG_AGENT_INFO /tmp/gpg-hCgxsg/S.gpg-agent:16576:1
SHELL /bin/bash
TERM xterm
HOST mgmtserv
XDM_MANAGED /var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
HISTSIZE 1000
PROFILEREAD true
GTK2_RC_FILES /etc/opt/gnome/gtk-2.0/gtkrc:/opt/gnome/share/themes//Qt/gtk-2.0/gtkrc:/root/.gtkrc-2.0-qtengine:/root/.kde/share/config/gtkrc-2.0
GS_LIB /root/.fonts
GNOME_PATH :/opt/gnome:/usr
GTK_RC_FILES /etc/opt/gnome/gtk/gtkrc:/root/.gtkrc:/root/.kde/share/config/gtkrc
WINDOWID 12582919
QTDIR /usr/lib/qt3
XSESSION_IS_UP yes
KDE_FULL_SESSION true
USER root
JRE_HOME /usr/lib/jvm/java/jre
GROFF_NO_SGR yes
LD_LIBRARY_PATH /usr/local/apache2/lib:
DESKTOP_LAUNCH kde-open
LS_COLORS no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
OPENWINHOME /usr/openwin
XNLSPATH /usr/X11R6/lib/X11/nls
HOSTTYPE i386
SSH_AUTH_SOCK /tmp/ssh-vZzh16528/agent.16528
FROM_HEADER no value
SESSION_MANAGER local/mgmtserv:/tmp/.ICE-unix/16650
PAGER less
LD_HWCAP_MASK 0x20000000
XDG_CONFIG_DIRS /usr/local/etc/xdg/:/etc/xdg/:/etc/opt/gnome/xdg/
MINICOM -c on
KONSOLE_DCOP DCOPRef(konsole-16808,konsole)
PATH /sbin:/usr/sbin:/usr/local/sbin:/opt/kde3/sbin:/opt/gnome/sbin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
DESKTOP_SESSION default
GNOMEDIR /opt/gnome
CPU i686
JAVA_BINDIR /usr/lib/jvm/java/bin
PWD /root/install/php-5.1.4/php-5.1.4
INPUTRC /etc/inputrc
KONSOLE_DCOP_SESSION DCOPRef(konsole-16808,session-2)
JAVA_HOME /usr/lib/jvm/java
XMODIFIERS @im=local
LANG POSIX
PYTHONSTARTUP /etc/pythonstart
SDK_HOME /usr/lib/jvm/java
SSH_ASKPASS /usr/lib/ssh/x11-ssh-askpass
TEXINPUTS ::/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX:/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
HOME /root
SHLVL 3
JDK_HOME /usr/lib/jvm/java
OSTYPE linux
LESS_ADVANCED_PREPROCESSOR no
XCURSOR_THEME crystalwhite
LS_OPTIONS -a -N --color=tty -T 0
WINDOWMANAGER /usr/bin/dbus-launch --sh-syntax --exit-with-session /usr/X11R6/bin/kde
GTK_PATH /usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0
LOGNAME root
MACHTYPE i686-suse-linux
LESS -M -I
G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-15,CP1252
CVS_RSH ssh
DBUS_SESSION_BUS_ADDRESS unix:abstract=/tmp/dbus-hxCTZL8SUL,guid=89698644f11e06b57f0b355302ffe700
ACLOCAL_FLAGS -I /opt/gnome/share/aclocal
LC_CTYPE en_US.UTF-8
XDG_DATA_DIRS /usr/local/share/:/usr/share/:/etc/opt/kde3/share/:/opt/kde3/share/:/opt/gnome/share/
LESSOPEN lessopen.sh %s
PKG_CONFIG_PATH /usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig
USE_FAM no value
INFOPATH /usr/local/info:/usr/share/info:/usr/info:/opt/gnome/share/info
DISPLAY :0.0
XAUTHLOCALHOSTNAME mgmtserv
LESSCLOSE lessclose.sh %s %s
G_BROKEN_FILENAMES 1
COLORTERM no value
JAVA_ROOT /usr/lib/jvm/java
_ /usr/local/apache2/bin/httpd

PHP Variables
Variable Value
_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_LANGUAGE"] en-us
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
_SERVER["HTTP_HOST"] mgmtserv.vxindia.veritas.com
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["PATH"] /sbin:/usr/sbin:/usr/local/sbin:/opt/kde3/sbin:/opt/gnome/sbin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
_SERVER["SERVER_SIGNATURE"] no value
_SERVER["SERVER_SOFTWARE"] Apache/2.2.2 (Unix) PHP/5.1.4
_SERVER["SERVER_NAME"] mgmtserv.vxindia.veritas.com
_SERVER["SERVER_ADDR"] 10.216.43.242
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 10.216.42.203
_SERVER["DOCUMENT_ROOT"] /usr/local/apache2/htdocs
_SERVER["SERVER_ADMIN"] siddharth_jagtiani@symantec.com
_SERVER["SCRIPT_FILENAME"] /usr/local/apache2/htdocs/php.php
_SERVER["REMOTE_PORT"] 1394
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /php.php
_SERVER["SCRIPT_NAME"] /php.php
_SERVER["PHP_SELF"] /php.php
_SERVER["REQUEST_TIME"] 1149672456
_SERVER["argv"] Array
_SERVER["argc"] 0
_ENV["LESSKEY"] /etc/lesskey.bin
_ENV["MANPATH"] /usr/share/man:/usr/local/man:/opt/gnome/man:/usr/X11R6/man:/opt/gnome/share/man
_ENV["INFODIR"] /usr/local/info:/usr/share/info:/usr/info
_ENV["NNTPSERVER"] news
_ENV["SSH_AGENT_PID"] 16577
_ENV["KDE_MULTIHEAD"] false
_ENV["DM_CONTROL"] /var/run/xdmctl
_ENV["HOSTNAME"] mgmtserv
_ENV["XKEYSYMDB"] /usr/X11R6/lib/X11/XKeysymDB
_ENV["GNOME2_PATH"] /usr/local:/opt/gnome:/usr
_ENV["GPG_AGENT_INFO"] /tmp/gpg-hCgxsg/S.gpg-agent:16576:1
_ENV["SHELL"] /bin/bash
_ENV["TERM"] xterm
_ENV["HOST"] mgmtserv
_ENV["XDM_MANAGED"] /var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
_ENV["HISTSIZE"] 1000
_ENV["PROFILEREAD"] true
_ENV["GTK2_RC_FILES"] /etc/opt/gnome/gtk-2.0/gtkrc:/opt/gnome/share/themes//Qt/gtk-2.0/gtkrc:/root/.gtkrc-2.0-qtengine:/root/.kde/share/config/gtkrc-2.0
_ENV["GS_LIB"] /root/.fonts
_ENV["GNOME_PATH"] :/opt/gnome:/usr
_ENV["GTK_RC_FILES"] /etc/opt/gnome/gtk/gtkrc:/root/.gtkrc:/root/.kde/share/config/gtkrc
_ENV["WINDOWID"] 12582919
_ENV["QTDIR"] /usr/lib/qt3
_ENV["XSESSION_IS_UP"] yes
_ENV["KDE_FULL_SESSION"] true
_ENV["USER"] root
_ENV["JRE_HOME"] /usr/lib/jvm/java/jre
_ENV["GROFF_NO_SGR"] yes
_ENV["LD_LIBRARY_PATH"] /usr/local/apache2/lib:
_ENV["DESKTOP_LAUNCH"] kde-open
_ENV["LS_COLORS"] no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
_ENV["OPENWINHOME"] /usr/openwin
_ENV["XNLSPATH"] /usr/X11R6/lib/X11/nls
_ENV["HOSTTYPE"] i386
_ENV["SSH_AUTH_SOCK"] /tmp/ssh-vZzh16528/agent.16528
_ENV["FROM_HEADER"] no value
_ENV["SESSION_MANAGER"] local/mgmtserv:/tmp/.ICE-unix/16650
_ENV["PAGER"] less
_ENV["LD_HWCAP_MASK"] 0x20000000
_ENV["XDG_CONFIG_DIRS"] /usr/local/etc/xdg/:/etc/xdg/:/etc/opt/gnome/xdg/
_ENV["MINICOM"] -c on
_ENV["KONSOLE_DCOP"] DCOPRef(konsole-16808,konsole)
_ENV["PATH"] /sbin:/usr/sbin:/usr/local/sbin:/opt/kde3/sbin:/opt/gnome/sbin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
_ENV["DESKTOP_SESSION"] default
_ENV["GNOMEDIR"] /opt/gnome
_ENV["CPU"] i686
_ENV["JAVA_BINDIR"] /usr/lib/jvm/java/bin
_ENV["PWD"] /root/install/php-5.1.4/php-5.1.4
_ENV["INPUTRC"] /etc/inputrc
_ENV["KONSOLE_DCOP_SESSION"] DCOPRef(konsole-16808,session-2)
_ENV["JAVA_HOME"] /usr/lib/jvm/java
_ENV["XMODIFIERS"] @im=local
_ENV["LANG"] POSIX
_ENV["PYTHONSTARTUP"] /etc/pythonstart
_ENV["SDK_HOME"] /usr/lib/jvm/java
_ENV["SSH_ASKPASS"] /usr/lib/ssh/x11-ssh-askpass
_ENV["TEXINPUTS"] ::/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX:/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
_ENV["HOME"] /root
_ENV["SHLVL"] 3
_ENV["JDK_HOME"] /usr/lib/jvm/java
_ENV["OSTYPE"] linux
_ENV["LESS_ADVANCED_PREPROCESSOR"] no
_ENV["XCURSOR_THEME"] crystalwhite
_ENV["LS_OPTIONS"] -a -N --color=tty -T 0
_ENV["WINDOWMANAGER"] /usr/bin/dbus-launch --sh-syntax --exit-with-session /usr/X11R6/bin/kde
_ENV["GTK_PATH"] /usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0
_ENV["LOGNAME"] root
_ENV["MACHTYPE"] i686-suse-linux
_ENV["LESS"] -M -I
_ENV["G_FILENAME_ENCODING"] @locale,UTF-8,ISO-8859-15,CP1252
_ENV["CVS_RSH"] ssh
_ENV["DBUS_SESSION_BUS_ADDRESS"] unix:abstract=/tmp/dbus-hxCTZL8SUL,guid=89698644f11e06b57f0b355302ffe700
_ENV["ACLOCAL_FLAGS"] -I /opt/gnome/share/aclocal
_ENV["LC_CTYPE"] en_US.UTF-8
_ENV["XDG_DATA_DIRS"] /usr/local/share/:/usr/share/:/etc/opt/kde3/share/:/opt/kde3/share/:/opt/gnome/share/
_ENV["LESSOPEN"] lessopen.sh %s
_ENV["PKG_CONFIG_PATH"] /usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig
_ENV["USE_FAM"] no value
_ENV["INFOPATH"] /usr/local/info:/usr/share/info:/usr/info:/opt/gnome/share/info
_ENV["DISPLAY"] :0.0
_ENV["XAUTHLOCALHOSTNAME"] mgmtserv
_ENV["LESSCLOSE"] lessclose.sh %s %s
_ENV["G_BROKEN_FILENAMES"] 1
_ENV["COLORTERM"] no value
_ENV["JAVA_ROOT"] /usr/lib/jvm/java
_ENV["_"] /usr/local/apache2/bin/httpd

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.

siddharth_jagtiani’s picture

This worked
./configure --prefix=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/usr/local/lib --with-config-file-path=/etc --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr

These did not work
./configure --prefix=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/usr/local/lib --with-config-file-path=/etc --with-mysql-dir=/usr/bin/mysql --with-mysql-sock=/mysql.sock
Complied linked installed, but mysql and php did not connect