Problem installing on FreeBSD 5.5
Hi,
I'm installing zen cart on a fresh FreeBSD 5.5 installation, I have installed mysql 3.23.X, apache-1.3-ssl, php4.4 and pcre, all from ports.
When going to the home of zc_install, I get the following error on the Prerequisites tab:
Fatal error: Call to undefined function: preg_match() in /usr/local/www/data-dist/zc/zc_install/includes/templates/template_default/common/html_header.php on line 17
Any ideas?
Thanks
MAPCorp
Re: Problem installing on FreeBSD 5.5
that would suggest you have something missing in terms of functions included in your PHP compile
Re: Problem installing on FreeBSD 5.5
Good Day,
Not many.
Create a file in /usr/local/www/data-dist/zc called 'phpinfo.php' to contain:
<?php
phpinfo();
?>
and point your browser to it.
Might provide a clue. Basically preg_match is a PHP built in function since version 3.0.9
M
Re: Problem installing on FreeBSD 5.5
I cannot see antthing wrong in the result, here it is:
PHP Version 4.4.2
System FreeBSD freebsd 5.5-RELEASE FreeBSD 5.5-RELEASE #0: Tue May 23 14:58:27 UTC 2006 root AT perseus DOT cse DOT buffalo DOT edu:/usr/obj/usr/src/sys/GENERIC i386
Build Date Jun 7 2006 21:58:43
Configure Command './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--with-regex=php' '--disable-cli' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-apxs=/usr/local/sbin/apxs' '--enable-zend-multibyte' '--prefix=/usr/local' 'i386-portbld-freebsd5.5'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/etc
Scan this dir for additional .ini files /usr/local/etc/php
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 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_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/20020429 /usr/local/lib/php/20020429
file_uploads On On
gpc_order GPC GPC
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 .: .:
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
max_execution_time 30 30
max_input_time -1 -1
memory_limit 12M 12M
open_basedir no value no value
output_buffering 0 0
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv On On
register_globals Off Off
report_memleaks 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 no value no value
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
apache
APACHE_INCLUDE no value
APACHE_TARGET no value
Apache Version Apache/1.3.34 (Unix) PHP/4.4.2
Apache Release 10334100
Apache API Version 19990320
Hostname:Port 192.168.161.128:80
User/Group www(80)/80
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Server Root /usr/local
Loaded Modules mod_php4, mod_setenvif, mod_so, mod_unique_id, mod_log_forensic, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_digest, mod_auth_db, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_config, mod_define, mod_env, mod_vhost_alias, mod_mmap_static, http_core
Directive Local Value Master Value
child_terminate 0 0
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
DOCUMENT_ROOT /usr/local/www/data
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE es
HTTP_CONNECTION Keep-Alive
HTTP_HOST 192.168.161.128
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
REMOTE_ADDR 192.168.161.1
REMOTE_PORT 11159
SCRIPT_FILENAME /usr/local/www/data/zc/phpinfo.php
SERVER_ADDR 192.168.161.128
SERVER_ADMIN ma AT mXXXXope DOT com
SERVER_NAME 192.168.161.128
SERVER_PORT 80
SERVER_SIGNATURE <ADDRESS>Apache/1.3.34 Server at 192.168.161.128 Port 80</ADDRESS>
SERVER_SOFTWARE Apache/1.3.34 (Unix) PHP/4.4.2
UNIQUE_ID RIeZysCoKgIAAAHxEeg
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /zc/phpinfo.php
SCRIPT_NAME /zc/phpinfo.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /zc/phpinfo.php HTTP/1.1
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Accept-Encoding gzip, deflate
Accept-Language es
Connection Keep-Alive
Host 192.168.161.128
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
HTTP Response Headers
X-Powered-By PHP/4.4.2
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7e-p1 25 Oct 2004
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
Additional Modules
Module Name
Environment
Variable Value
MACHTYPE i386
USER root
MAIL /var/mail/root
SHLVL 1
VENDOR intel
HOME /root
PAGER more
GROUP wheel
LOGNAME root
BLOCKSIZE K
TERM cons25
PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
HOST freebsd
SHELL /bin/csh
OSTYPE FreeBSD
PWD /root
FTP_PASSIVE_MODE YES
HOSTTYPE FreeBSD
EDITOR vi
PHP Variables
Variable Value
_SERVER["DOCUMENT_ROOT"] /usr/local/www/data
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] es
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_HOST"] 192.168.161.128
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
_SERVER["PATH"] /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
_SERVER["REMOTE_ADDR"] 192.168.161.1
_SERVER["REMOTE_PORT"] 11159
_SERVER["SCRIPT_FILENAME"] /usr/local/www/data/zc/phpinfo.php
_SERVER["SERVER_ADDR"] 192.168.161.128
_SERVER["SERVER_ADMIN"] ma AT mapcorpeurope DOT com
_SERVER["SERVER_NAME"] 192.168.161.128
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.34 Server at 192.168.161.128 Port 80</ADDRESS>
_SERVER["SERVER_SOFTWARE"] Apache/1.3.34 (Unix) PHP/4.4.2
_SERVER["UNIQUE_ID"] RIeZysCoKgIAAAHxEeg
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /zc/phpinfo.php
_SERVER["SCRIPT_NAME"] /zc/phpinfo.php
_SERVER["PATH_TRANSLATED"] /usr/local/www/data/zc/phpinfo.php
_SERVER["PHP_SELF"] /zc/phpinfo.php
_SERVER["argv"] Array
(
)
_SERVER["argc"] 0
_ENV["MACHTYPE"] i386
_ENV["USER"] root
_ENV["MAIL"] /var/mail/root
_ENV["SHLVL"] 1
_ENV["VENDOR"] intel
_ENV["HOME"] /root
_ENV["PAGER"] more
_ENV["GROUP"] wheel
_ENV["LOGNAME"] root
_ENV["BLOCKSIZE"] K
_ENV["TERM"] cons25
_ENV["PATH"] /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
_ENV["HOST"] freebsd
_ENV["SHELL"] /bin/csh
_ENV["OSTYPE"] FreeBSD
_ENV["PWD"] /root
_ENV["FTP_PASSIVE_MODE"] YES
_ENV["HOSTTYPE"] FreeBSD
_ENV["EDITOR"] vi
Re: Problem installing on FreeBSD 5.5
what does '--disable-all' do ?
Re: Problem installing on FreeBSD 5.5
Good Day,
Maybe getting closer. Excerpt from ./configure --help
>
--with-regex=TYPE regex library type: system, apache, php. Default: php
WARNING: Do NOT use unless you know what you are doing!
<
That pretty much leaves me out of it. I'm not sure if this means do NOT use option or do not use TYPE other than php. Also:
>
--disable-all Disable all extensions enabled by default.
<
My precompiled RPM for Fedora Core 3 uses '--with-pcre-regex=/usr'
Yes, I think you need to recompile PHP using different configure options.
M
Re: Problem installing on FreeBSD 5.5
Can I do it without recompiling? is there any precompiled package for FreeBSD?
Re: Problem installing on FreeBSD 5.5
Thanks to all!
I solved the problem recompiling with the following configure options:
./configure --enable-versioning --enable-memory-limit --with-layout=GNU --with-config-file-scan-dir=/usr/local/etc/php --with-regex=php --disable-cli --with-openssl=/usr --with-openssl-dir=/usr --with-apxs=/usr/local/sbin/apxs --enable-zend-multibyte --prefix=/usr/local --with-pcre-regex=/usr/local --with-gd --with-zlib-dir=/usr/include --with-curl i386-portbld-freebsd5.5