I'm using Apache/2.4.29 with PHP 7.4.5 as module.
Apache and PHP are configured with lito as user.
Virtualhost configuration with PHP settings:
php_admin_value opcache.enabled 1
php_admin_value opcache.preload /home/lito/www/preload.php
php_admin_value opcache.preload_user lito
phpinfo show opcache configuration:
opcache.enable On
opcache.preload /home/lito/www/preload.php
opcache.preload_user lito
No errors on apache log.
After apache restart opcache_get_status haven't any key related with preload status (preload_statistics) and there are only one script preloaded (current phpinfo.php):
Array
(
[opcache_enabled] => 1
[cache_full] =>
[restart_pending] =>
[restart_in_progress] =>
[memory_usage] => Array
(
[used_memory] => 9168872
[free_memory] => 125047784
[wasted_memory] => 1072
[current_wasted_percentage] => 0.00079870223999023
)
[interned_strings_usage] => Array
(
[buffer_size] => 6291008
[used_memory] => 522888
[free_memory] => 5768120
[number_of_strings] => 10969
)
[opcache_statistics] => Array
(
[num_cached_scripts] => 1
[num_cached_keys] => 1
[max_cached_keys] => 16229
[hits] => 1
[start_time] => 1587378881
[last_restart_time] => 0
[oom_restarts] => 0
[hash_restarts] => 0
[manual_restarts] => 0
[misses] => 3
[blacklist_misses] => 0
[blacklist_miss_ratio] => 0
[opcache_hit_rate] => 25
)
[scripts] => Array
(
[/home/lito/www/phpinfo.php] => Array
(
[full_path] => /home/lito/www/phpinfo.php
[hits] => 0
[memory_consumption] => 1040
[last_used] => Mon Apr 20 12:39:15 2020
[last_used_timestamp] => 1587379155
[timestamp] => 1587378955
)
)
)
Is not available opcache preload on Apache with PHP as module (without a custom php.ini)?
Thanks!
UPDATE: Tested adding preload file on /etc/php/7.4/apache2/php.ini and it works fine.
Similar (for nginx with php-fpm): https://bugs.php.net/bug.php?id=79043#1578412872
As far as I can tell, it looks like preloading is not in effect when configured this way.
Answer from PHP core dev:
yes, as preloading happens during early server startup, enabling it through php_admin_value does not work.
At first I wanted to use PostgreSQL as the database for my Laravel project. I have tried to changed everything as people posted online such as:
1. changing 'default' => env('DB_CONNECTION', 'mysql') to 'default' => env('DB_CONNECTION', 'pgsql')
2. Setup my .env file to follow the postgresql configuration
I have already installed postgresql as it returns psql (10.1, server 9.5.10) as I type pgsql in my terminal
However, whenever I tried to php artisan migrate it will shows some errors (I forget to capture the error). After few hours of surfing I found this tutorial that seemed promising. I followed everything and it took a little while. When it finished, I tried to type php artisan migrate in terminal and what returned was
hznk:fraudet hznk$ php artisan migrate
hznk:fraudet hznk$
here is the php info:
PHP Version => 7.0.15
System => Darwin hznk.local 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64
Build Date => Dec 29 2017 18:33:15
Configure Command => './configure' '--without-iconv'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => (none)
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20151012
PHP Extension => 20151012
Zend Extension => 320151012
Zend Extension Build => API320151012,NTS
PHP Extension Build => API20151012,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
IPv6 Support => enabled
DTrace Support => disabled
Registered PHP Streams => php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports => tcp, udp, unix, udg
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
_______________________________________________________________________
Configuration
Core
PHP Version => 7.0.15
Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
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 => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => STDOUT => STDOUT
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
enable_post_data_reading => 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
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20151012 => /usr/local/lib/php/extensions/no-debug-non-zts-20151012
file_uploads => On => On
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/local/lib/php => .:/usr/local/lib/php
input_encoding => no value => no value
internal_encoding => no value => no value
log_errors => Off => Off
log_errors_max_len => 1024 => 1024
mail.add_x_header => Off => Off
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
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
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
serialize_precision => 17 => 17
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
sys_temp_dir => no value => no value
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
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.assertions => 1 => 1
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.multibyte => Off => Off
zend.script_encoding => no value => no value
ctype
ctype functions => enabled
date
date/time support => enabled
"Olson" Timezone Database Version => 2016.10
Timezone Database => internal
Default timezone => UTC
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.9.4
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled
fileinfo
fileinfo support => enabled
version => 1.0.5
libmagic => 522
filter
Input Validation and Filtering => enabled
Revision => $Id: 28fcca4bfda9c9907588a64d245b49cb398249d8 $
Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value
hash
hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat 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
json
json support => enabled
json version => 1.4.0
libxml
libXML support => active
libXML Compiled Version => 2.9.4
libXML Loaded Version => 20904
libXML streams => enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.38 2015-11-23
PCRE JIT Support => enabled
Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => 1 => 1
pcre.recursion_limit => 100000 => 100000
PDO
PDO support => enabled
PDO drivers => sqlite
pdo_sqlite
PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.14.2
Phar
Phar: PHP Archive support => enabled
Phar EXT version => 2.0.2
Phar API version => 1.1.1
SVN revision => $Id: bf89220e0ebdb68ebb5379ffc0a32997f94e77e7 $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => disabled (install ext/zlib)
bzip2 compression => disabled (install pecl/bz2)
OpenSSL support => disabled (install ext/openssl)
Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On
posix
Revision => $Id: b691ca925e7a085e6929579c4eba8fed0732e0ef $
Reflection
Reflection => enabled
Version => $Id: 3054da9d8c9ebb2a7e0a7df1f0cdf3cbbe9f8bd8 $
session
Session Support => enabled
Registered save handlers => files user
Registered serializer handlers => php_serialize php php_binary
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_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => /dev/urandom => /dev/urandom
session.entropy_length => 32 => 32
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.lazy_write => On => On
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.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_strict_mode => Off => Off
session.use_trans_sid => 0 => 0
SimpleXML
Simplexml support => enabled
Revision => $Id: b8b5c37931a53e50a937c0aef2a26d351e173215 $
Schema support => enabled
SPL
SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
sqlite3
SQLite3 support => enabled
SQLite3 module version => 0.7-dev
SQLite Library => 3.14.2
Directive => Local Value => Master Value
sqlite3.extension_dir => no value => no value
standard
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.exception => 0 => 0
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
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.9.4
xmlreader
XMLReader => enabled
xmlwriter
XMLWriter => enabled
Additional Modules
Module Name
Environment
Variable => Value
rvm_bin_path => /Users/hznk/.rvm/bin
TERM_PROGRAM => Apple_Terminal
GEM_HOME => /Users/hznk/.rvm/gems/ruby-2.3.1
SHELL => /bin/bash
TERM => xterm-256color
IRBRC => /Users/hznk/.rvm/rubies/ruby-2.3.1/.irbrc
TMPDIR => /var/folders/4v/kht4d5qn0j72c3gt9qtcsjl80000gn/T/
Apple_PubSub_Socket_Render => /private/tmp/com.apple.launchd.zAbLo6t0xL/Render
TERM_PROGRAM_VERSION => 400
OLDPWD => /Users/hznk
MY_RUBY_HOME => /Users/hznk/.rvm/rubies/ruby-2.3.1
TERM_SESSION_ID => 53575832-8EDD-4165-BB5A-31CD66A41C40
USER => hznk
_system_type => Darwin
rvm_path => /Users/hznk/.rvm
SSH_AUTH_SOCK => /private/tmp/com.apple.launchd.46FwM34Zls/Listeners
rvm_prefix => /Users/hznk
PATH => /Users/hznk/anaconda2/bin:/opt/local/bin:/opt/local/sbin:/Users/hznk/.composer/vendor/bin:/Users/hznk/.rvm/gems/ruby-2.3.1/bin:/Users/hznk/.rvm/gems/ruby-2.3.1#global/bin:/Users/hznk/.rvm/rubies/ruby-2.3.1/bin:/Users/hznk/.rbenv/shims:/Users/hznk/.rbenv/shims:/Users/hznk/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/hznk/.rvm/bin:/opt/metasploit-framework/bin:/opt/metasploit-framework/bin
PWD => /Applications/XAMPP/htdocs/fraudet
_system_arch => x86_64
XPC_FLAGS => 0x0
_system_version => 10.13
RBENV_SHELL => bash
XPC_SERVICE_NAME => 0
rvm_version => 1.27.0 (latest)
SHLVL => 1
HOME => /Users/hznk
LOGNAME => hznk
GEM_PATH => /Users/hznk/.rvm/gems/ruby-2.3.1:/Users/hznk/.rvm/gems/ruby-2.3.1#global
LC_CTYPE => UTF-8
DISPLAY => /private/tmp/com.apple.launchd.mAwrunwzZa/org.macosforge.xquartz:0
RUBY_VERSION => ruby-2.3.1
_system_name => OSX
_ => /usr/local/bin/php
PHP Variables
Variable => Value
$_SERVER['rvm_bin_path'] => /Users/hznk/.rvm/bin
$_SERVER['TERM_PROGRAM'] => Apple_Terminal
$_SERVER['GEM_HOME'] => /Users/hznk/.rvm/gems/ruby-2.3.1
$_SERVER['SHELL'] => /bin/bash
$_SERVER['TERM'] => xterm-256color
$_SERVER['IRBRC'] => /Users/hznk/.rvm/rubies/ruby-2.3.1/.irbrc
$_SERVER['TMPDIR'] => /var/folders/4v/kht4d5qn0j72c3gt9qtcsjl80000gn/T/
$_SERVER['Apple_PubSub_Socket_Render'] => /private/tmp/com.apple.launchd.zAbLo6t0xL/Render
$_SERVER['TERM_PROGRAM_VERSION'] => 400
$_SERVER['OLDPWD'] => /Users/hznk
$_SERVER['MY_RUBY_HOME'] => /Users/hznk/.rvm/rubies/ruby-2.3.1
$_SERVER['TERM_SESSION_ID'] => 53575832-8EDD-4165-BB5A-31CD66A41C40
$_SERVER['USER'] => hznk
$_SERVER['_system_type'] => Darwin
$_SERVER['rvm_path'] => /Users/hznk/.rvm
$_SERVER['SSH_AUTH_SOCK'] => /private/tmp/com.apple.launchd.46FwM34Zls/Listeners
$_SERVER['rvm_prefix'] => /Users/hznk
$_SERVER['PATH'] => /Users/hznk/anaconda2/bin:/opt/local/bin:/opt/local/sbin:/Users/hznk/.composer/vendor/bin:/Users/hznk/.rvm/gems/ruby-2.3.1/bin:/Users/hznk/.rvm/gems/ruby-2.3.1#global/bin:/Users/hznk/.rvm/rubies/ruby-2.3.1/bin:/Users/hznk/.rbenv/shims:/Users/hznk/.rbenv/shims:/Users/hznk/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/hznk/.rvm/bin:/opt/metasploit-framework/bin:/opt/metasploit-framework/bin
$_SERVER['PWD'] => /Applications/XAMPP/htdocs/fraudet
$_SERVER['_system_arch'] => x86_64
$_SERVER['XPC_FLAGS'] => 0x0
$_SERVER['_system_version'] => 10.13
$_SERVER['RBENV_SHELL'] => bash
$_SERVER['XPC_SERVICE_NAME'] => 0
$_SERVER['rvm_version'] => 1.27.0 (latest)
$_SERVER['SHLVL'] => 1
$_SERVER['HOME'] => /Users/hznk
$_SERVER['LOGNAME'] => hznk
$_SERVER['GEM_PATH'] => /Users/hznk/.rvm/gems/ruby-2.3.1:/Users/hznk/.rvm/gems/ruby-2.3.1#global
$_SERVER['LC_CTYPE'] => UTF-8
$_SERVER['DISPLAY'] => /private/tmp/com.apple.launchd.mAwrunwzZa/org.macosforge.xquartz:0
$_SERVER['RUBY_VERSION'] => ruby-2.3.1
$_SERVER['_system_name'] => OSX
$_SERVER['_'] => /usr/local/bin/php
$_SERVER['PHP_SELF'] => test.php
$_SERVER['SCRIPT_NAME'] => test.php
$_SERVER['SCRIPT_FILENAME'] => test.php
$_SERVER['PATH_TRANSLATED'] => test.php
$_SERVER['DOCUMENT_ROOT'] =>
$_SERVER['REQUEST_TIME_FLOAT'] => 1514551615.1487
$_SERVER['REQUEST_TIME'] => 1514551615
$_SERVER['argv'] => Array
(
[0] => test.php
)
$_SERVER['argc'] => 1
$_ENV['rvm_bin_path'] => /Users/hznk/.rvm/bin
$_ENV['TERM_PROGRAM'] => Apple_Terminal
$_ENV['GEM_HOME'] => /Users/hznk/.rvm/gems/ruby-2.3.1
$_ENV['SHELL'] => /bin/bash
$_ENV['TERM'] => xterm-256color
$_ENV['IRBRC'] => /Users/hznk/.rvm/rubies/ruby-2.3.1/.irbrc
$_ENV['TMPDIR'] => /var/folders/4v/kht4d5qn0j72c3gt9qtcsjl80000gn/T/
$_ENV['Apple_PubSub_Socket_Render'] => /private/tmp/com.apple.launchd.zAbLo6t0xL/Render
$_ENV['TERM_PROGRAM_VERSION'] => 400
$_ENV['OLDPWD'] => /Users/hznk
$_ENV['MY_RUBY_HOME'] => /Users/hznk/.rvm/rubies/ruby-2.3.1
$_ENV['TERM_SESSION_ID'] => 53575832-8EDD-4165-BB5A-31CD66A41C40
$_ENV['USER'] => hznk
$_ENV['_system_type'] => Darwin
$_ENV['rvm_path'] => /Users/hznk/.rvm
$_ENV['SSH_AUTH_SOCK'] => /private/tmp/com.apple.launchd.46FwM34Zls/Listeners
$_ENV['rvm_prefix'] => /Users/hznk
$_ENV['PATH'] => /Users/hznk/anaconda2/bin:/opt/local/bin:/opt/local/sbin:/Users/hznk/.composer/vendor/bin:/Users/hznk/.rvm/gems/ruby-2.3.1/bin:/Users/hznk/.rvm/gems/ruby-2.3.1#global/bin:/Users/hznk/.rvm/rubies/ruby-2.3.1/bin:/Users/hznk/.rbenv/shims:/Users/hznk/.rbenv/shims:/Users/hznk/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/hznk/.rvm/bin:/opt/metasploit-framework/bin:/opt/metasploit-framework/bin
$_ENV['PWD'] => /Applications/XAMPP/htdocs/fraudet
$_ENV['_system_arch'] => x86_64
$_ENV['XPC_FLAGS'] => 0x0
$_ENV['_system_version'] => 10.13
$_ENV['RBENV_SHELL'] => bash
$_ENV['XPC_SERVICE_NAME'] => 0
$_ENV['rvm_version'] => 1.27.0 (latest)
$_ENV['SHLVL'] => 1
$_ENV['HOME'] => /Users/hznk
$_ENV['LOGNAME'] => hznk
$_ENV['GEM_PATH'] => /Users/hznk/.rvm/gems/ruby-2.3.1:/Users/hznk/.rvm/gems/ruby-2.3.1#global
$_ENV['LC_CTYPE'] => UTF-8
$_ENV['DISPLAY'] => /private/tmp/com.apple.launchd.mAwrunwzZa/org.macosforge.xquartz:0
$_ENV['RUBY_VERSION'] => ruby-2.3.1
$_ENV['_system_name'] => OSX
$_ENV['_'] => /usr/local/bin/php
I am wondering if anyone could help me with this problem. Thank you.
Note: I am using mac high Sierra and my php version is 7.0.15
oh nevermind, I found out php.ini that I use was blank. So I tried to copied from the one in XAMPP. When I run php artisan migrate it shows
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so, 9): image not found in Unknown on line 0
PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php:113
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/bootstrap.php(19): Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding('Call to undefin...', 'UTF-8', 'ASCII')
#1 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(1157): mb_convert_encoding('Call to undefin...', 'utf8', 'ASCII')
#2 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(745): Symfony\Component\Console\Application->splitStringByWidth('Call to undefin...', 75)
#3 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(719): Symfony\Component\Console\Application->doRenderException(Object(Symfony\Component\Debug\Exception\FatalThrowableError), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /Applications/XAMPP/xamppfiles/ht in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php on line 113
PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php:113
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/bootstrap.php(19): Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding('Uncaught Error:...', 'UTF-8', 'ASCII')
#1 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(1157): mb_convert_encoding('Uncaught Error:...', 'utf8', 'ASCII')
#2 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(745): Symfony\Component\Console\Application->splitStringByWidth('Uncaught Error:...', 75)
#3 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(719): Symfony\Component\Console\Application->doRenderException(Object(Symfony\Component\Debug\Exception\FatalErrorException), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /Applications/XAMPP/xamppfiles/ht in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php on line 113
hznk:fraudet hznk$ php artisan migrate
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_pgsql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so, 9): image not found in Unknown on line 0
PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php:113
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/bootstrap.php(19): Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding('Call to undefin...', 'UTF-8', 'ASCII')
#1 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(1157): mb_convert_encoding('Call to undefin...', 'utf8', 'ASCII')
#2 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(745): Symfony\Component\Console\Application->splitStringByWidth('Call to undefin...', 75)
#3 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(719): Symfony\Component\Console\Application->doRenderException(Object(Symfony\Component\Debug\Exception\FatalThrowableError), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /Applications/XAMPP/xamppfiles/ht in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php on line 113
PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php:113
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/bootstrap.php(19): Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding('Uncaught Error:...', 'UTF-8', 'ASCII')
#1 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(1157): mb_convert_encoding('Uncaught Error:...', 'utf8', 'ASCII')
#2 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(745): Symfony\Component\Console\Application->splitStringByWidth('Uncaught Error:...', 75)
#3 /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/console/Application.php(719): Symfony\Component\Console\Application->doRenderException(Object(Symfony\Component\Debug\Exception\FatalErrorException), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /Applications/XAMPP/xamppfiles/ht in /Applications/XAMPP/xamppfiles/htdocs/fraudet/vendor/symfony/polyfill-mbstring/Mbstring.php on line 113
at least it shows something. Gotta work on this first and I'll let you know if I succeed with this problem.
I'm trying to figure out what's wrong for hours,
<?php
ini_set("session.save_handler","memcached");
ini_set("session.save_path","127.0.0.1:11211");
session_start();
print "Session started..\n<br />\n";
?>
Will print but if it's "memcache" notice the "d" it will not work + fire the error in php-fpm
php -i | grep memcach
memcache
memcache support => enabled
memcache.allow_failover => 1 => 1
memcache.chunk_size => 32768 => 32768
memcache.compress_threshold => 20000 => 20000
memcache.default_port => 11211 => 11211
memcache.hash_function => crc32 => crc32
memcache.hash_strategy => consistent => consistent
memcache.lock_timeout => 15 => 15
memcache.max_failover_attempts => 20 => 20
memcache.protocol => ascii => ascii
memcache.redundancy => 1 => 1
memcache.session_redundancy => 2 => 2
Registered save handlers => files user memcache redis
php.ini set as following:
session.save_path = "/var/lib/php/session"
session.save_handler = files
error in php-fpm
PHP Fatal error: session_start(): Failed to initialize storage module: memcache (path: /var/lib/php/session) in /home/webs/pricegoto.com/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 125
Try some thing like this :
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path',
'tcp://localhost:11211?persistent=1&weight=1&timeout=1&retry_interval=15');
Before saying that its a duplicate please read on, I have done my homework properly :)
I have checked the other posts but nothing helped :(
Here are the things that i have already taken care of:
1. Downloaded updated copy of php_browscap.ini from http://tempdownloads.browserscap.com/ (used the 'use only with PHP' version ofcourse)
2. tried php_browscap.ini,lite_php_browscap.ini and full_php_browscap.ini
3. edited the php.ini file to
[browscap]
;http://php.net/browscap
browscap = "C:\xampp\php\extras\full_php_browscap.ini"
4. confirmed that i have changed the correct php.ini file by checking php_info()
5. and yes removed that ; from ';browscap = .....'
6. restated the xampp server
7. tried checking the any file access error using "Process Monitor"
https://www.dropbox.com/s/loi8p0fkykzcndr/process_monitor.png
But still getting the strange values
Array ( [browser_name_regex] => §^.*$§ [browser_name_pattern] => * [comment] => Default Browser [browser] => Default Browser [version] => 0.0 [majorver] => 0 [minorver] => 0 [platform] => unknown [platform_version] => unknown [platform_description] => unknown [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => [iframes] => [tables] => [cookies] => [backgroundsounds] => [javascript] => [vbscript] => [javaapplets] => [activexcontrols] => [ismobiledevice] => [issyndicationreader] => [crawler] => [cssversion] => 0 [aolversion] => 0 [device_name] => unknown [device_maker] => unknown [renderingengine_name] => unknown [renderingengine_version] => unknown [renderingengine_description] => unknown )
Please help me, I tried a lot spending hours reading the answers posted here, tried to find a solution on google, saw videos of NewBoston
// Loads the class
require 'path/to/Browscap.php';
// Creates a new Browscap object (loads or creates the cache)
$bc = new Browscap('path/to/the/cache/dir');
// Gets information about the current browser's user agent
$current_browser = $bc->getBrowser();
// Output the result
echo '<pre>'; // some formatting issues ;)
print_r($current_browser);
We are going to obviate the last section under the comment ‘Output the result’ so your code should look like this…
// Loads the class
require 'path/to/Browscap.php';
// Creates a new Browscap object (loads or creates the cache)
$bc = new Browscap('path/to/the/cache/dir');
// Gets information about the current browser's user agent
$current_browser = $bc->getBrowser();
We need some PHP on an ARM board. I've successfully cross-compiled both PHP 5 and THTTPD and they both seem to run fine on the ARM board, only the .php pages are shown unprocessed (if you do "View Source" in the web browser, you can see the PHP code).
It has to be a silly configuration detail, I really feel that I am snatching defeat from the jaws of victory. Any help or smart ideas would be greatly appreciated!
Here are my steps to build, deploy and test:
My thttpd.conf file is:
dir=/srv/www
phppat=**
phpspat=**.php
logfile=/srv/www/logs/web.log
nochroot
port=80
My procedure was:
cd ~/packages/php/
tar xjvf php-5.2.1.tar.bz2
cd ~/packages/thttpd/
tar xzvf thttpd-2.21b.tar.gz
cd ~/packages/php/php-5.2.1/
mkdir install-arm
export CC=/bin/arm-linux-gcc
export CXX=/bin/arm-linux-cpp
./configure --host=i386-linux-gnu --target=arm --prefix=install-arm \
--disable-short-tags --without-mysql \
--without-pear --disable-all --disable-short-tags
--enable-force-cgi-redirect --enable-discard-path \
--with-thttpd=../../thttpd/thttpd-2.21b
make
make install
cd ~/packages/thttpd/thttpd-2.21b
export CC=/bin/arm-linux-gcc
export CXX=/bin/arm-linux-c++
export CPP=/bin/arm-linux-c++
./configure --host=i386-linux-gnu --target=arm --prefix=/srv/www
# I got compiling errors for thttpd.c caused by the ifdef condition not happening and
# an include file not added. Deleted the ifdef/end if and recompiled. This
# necessary for two files.
################ in file thttpd.c changed:
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
# to:
#include <fcntl.h>
############### in file fdwatch.c changed:
#ifdef HAVE_POLL_H
#include <poll.h>
#else /* HAVE_POLL_H */
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif /* HAVE_SYS_POLL_H */
#endif /* HAVE_POLL_H */
# to:
#include <poll.h>
# also tried:
#include <sys/poll.h>
# (both work)
make
# to make sure we get 0 (success) despite the warnings:
echo $?
# no make install, all references indicated it's broken and I also got errors
# where directories with the same name prevented files from being written.
########## deployment to board
# copied "php" and "thttpd" executables in /usr/sbin using following command
# in Cutecom:
cd /usr/sbin
tftp -g -r php 192.168.1.25
tftp -g -r thttpd 192.168.1.25
chmod +x php
chmod +x thttpd
# unsure, should I get a libphp5.so ? Where is it?:
# tried:
# cd /usr/lib
# tftp -g -r libphp5.a 192.168.1.25
# chmod +rx
cd /srv/www
mkdir conf
cd conf
tftp -g -r thttpd.conf 192.168.1.25
cd /srv
/usr/sbin/thttpd -C /srv/www/conf/thttpd.conf
# HTML pages and images displayed fine, test.php is passed without pre-processing,
# contains:
# <?
# phpinfo();
# ?>
############## Testing if PHP works on the ARM board
root#arago:/srv/www/cgi-bin# php -v
PHP 5.2.1 (cli) (built: Sep 27 2010 10:59:59)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
root#arago:/srv/www/cgi-bin# php -r 'phpinfo();'
phpinfo()
PHP Version => 5.2.1
System => Linux arago 2.6.33-rc4 #1 PREEMPT Thu Mar 25 15:06:29 IST 2010 armv5tejl
Build Date => Sep 27 2010 11:30:59
Configure Command => './configure' '--host=i386-linux-gnu' '--target=arm'
'--prefix=install-arm' '--disable-short-tags' '--without-mysql' '--without-pear'
'--disable-all' '--disable-short-tags' '--enable-force-cgi-redirect' '--enable-
discard-path' '--with-thttpd=../../thttpd/thttpd-2.21b'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => install-arm/lib
PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, data, http, ftp
Registered Stream Socket Transports => tcp, udp, unix, udg
Registered Stream Filters => string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
_______________________________________________________________________
Configuration
PHP Core
Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
allow_url_include => Off => Off
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 => install-arm/lib/php/extensions/no-debug-non-zts-20060613 => install-
arm/lib/php/extensions/no-debug-non-zts-20060613
file_uploads => On => On
highlight.bg => <font style="color: #FFFFFF">#FFFFFF</font> => <font style="color:
#FFFFFF">#FFFFFF</font>
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font
style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font
style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color:
#000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font
style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color:
#DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
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
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 0
max_input_time => -1 => -1
memory_limit => 128M => 128M
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 => Off => Off
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 => -t -i => -t -i
serialize_precision => 100 => 100
short_open_tag => Off => Off
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
date
date/time support => enabled
Timezone Database Version => 2006.16
Timezone Database => internal
Default timezone => UTC
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
Reflection
Reflection => enabled
Version => $Id: php_reflection.c,v 1.164.2.33.2.33 2007/01/01 09:36:05 sebastian Exp $
standard
Regex Library => Bundled library enabled
Dynamic Library support not available<br />.
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
TSLIB_TSDEVICE => /dev/input/touchscreen0
USER => root
OLDPWD => /srv/www
HOME => /home/root
PS1 => \u#\h:\w\$
LOGNAME => root
TERM => linux
PATH => /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
SHELL => /bin/sh
PWD => /srv/www/cgi-bin
TZ => UTC
EDITOR => /bin/vi
PHP Variables
Variable => Value
_SERVER["TSLIB_TSDEVICE"] => /dev/input/touchscreen0
_SERVER["USER"] => root
_SERVER["OLDPWD"] => /srv/www
_SERVER["HOME"] => /home/root
_SERVER["PS1"] => \u#\h:\w\$
_SERVER["LOGNAME"] => root
_SERVER["TERM"] => linux
_SERVER["PATH"] => /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
_SERVER["SHELL"] => /bin/sh
_SERVER["PWD"] => /srv/www/cgi-bin
_SERVER["TZ"] => UTC
_SERVER["EDITOR"] => /bin/vi
_SERVER["PHP_SELF"] => -
_SERVER["SCRIPT_NAME"] => -
_SERVER["SCRIPT_FILENAME"] =>
_SERVER["PATH_TRANSLATED"] =>
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["REQUEST_TIME"] => 1267544129
_SERVER["argv"] => Array
(
[0] => -
)
_SERVER["argc"] => 1
_ENV["TSLIB_TSDEVICE"] => /dev/input/touchscreen0
_ENV["USER"] => root
_ENV["OLDPWD"] => /srv/www
_ENV["HOME"] => /home/root
_ENV["PS1"] => \u#\h:\w\$
_ENV["LOGNAME"] => root
_ENV["TERM"] => linux
_ENV["PATH"] => /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
_ENV["SHELL"] => /bin/sh
_ENV["PWD"] => /srv/www/cgi-bin
_ENV["TZ"] => UTC
_ENV["EDITOR"] => /bin/vi
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.
The above procedure worked!
The problem was the PHP syntax used, it needed the full
<?php
?>
delimiters rather than
<?
?>