Welcome! Log In Create A New Profile

Advanced

php-fpm ignore my php.ini completely

Posted by helpmhost 
php-fpm ignore my php.ini completely
November 10, 2009 04:47PM
Hi,

I have setup nging 0.7.73 with php 5.2.11 and php-fpm 0.6 for php 5.2.11

I checked in phpinfo() and I am editing the right php.ini file. However, every change I make in there is not taking effect.
I have tried restart nginx, php-fpm, even the whole server.

I have tried:
expose_php
display_errors
track_errors

After restarting, and refreshing phpinfo(), my settings are still unchanged.

Any ideas?

Thanks.
Hugo Monteiro
Re: php-fpm ignore my php.ini completely
November 10, 2009 04:58PM
helpmhost wrote:
> Hi,
>
> I have setup nging 0.7.73 with php 5.2.11 and php-fpm 0.6 for php 5.2.11
>
> I checked in phpinfo() and I am editing the right php.ini file. However, every change I make in there is not taking effect.
> I have tried restart nginx, php-fpm, even the whole server.
>
> I have tried:
> expose_php
> display_errors
> track_errors
>
> After restarting, and refreshing phpinfo(), my settings are still unchanged.
>
> Any ideas?
>
> Thanks.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,21928,21928#msg-21928
>
>

Hello,

would you by any chance have any kind of chroot setup? If so, make sure
you are editing the right file, in the right path.

If not, you could probably post your configuration files somewhere so
people could try to figure out what's going on...

Regards,

Hugo Monteiro.
Re: php-fpm ignore my php.ini completely
November 10, 2009 06:34PM
There is no chroot. All I've done is install the 2 packages from source (nginx, php with php-fpm patch) and apt-get install all the dependencies.
This is on debian 5.

At the moment, I am pretty much using the default configs.

In php-fpm, the only thing I changes was the owner, user and group to be www-data instead of nobody.
In php.ini, I copied the php.ini-recommended from the source directory. I have not made any changes to it other than the 3 mentioned in my initial post and those are the changes that aren't being applied.

My nginx is pretty much configured as the examples in their documentation. Just to be clear, php is working. I have phpMyAdmin working as well, so I think the problem is unrelated to nginx.

Is there a way I can manually execute a php script from the command line using php-fpm over the tcp connection? I would try doing some strace to see if it reads the file, but I am unsure how to try manually executing a script from the command line.

Thanks
Re: php-fpm ignore my php.ini completely
November 10, 2009 07:04PM
Well phpinfo will show you it's search paths and the changes you make
should take effect after restarting php-fpm. Maybe post your php.ini?
Maybe some funky weird typo is in there

Sent from my iPhone

On Nov 10, 2009, at 3:34 PM, "helpmhost" <nginx-forum@nginx.us> wrote:

>
> There is no chroot. All I've done is install the 2 packages from
> source (nginx, php with php-fpm patch) and apt-get install all the
> dependencies.
> This is on debian 5.
>
> At the moment, I am pretty much using the default configs.
>
> In php-fpm, the only thing I changes was the owner, user and group
> to be www-data instead of nobody.
> In php.ini, I copied the php.ini-recommended from the source
> directory. I have not made any changes to it other than the 3
> mentioned in my initial post and those are the changes that aren't
> being applied.
>
> My nginx is pretty much configured as the examples in their
> documentation. Just to be clear, php is working. I have phpMyAdmin
> working as well, so I think the problem is unrelated to nginx.
>
> Is there a way I can manually execute a php script from the command
> line using php-fpm over the tcp connection? I would try doing some
> strace to see if it reads the file, but I am unsure how to try
> manually executing a script from the command line.
>
> Thanks
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,21928,21962#msg-21962
>
Re: php-fpm ignore my php.ini completely
November 10, 2009 07:43PM
Here is my php.ini (without the comments or blank lines)
[code]
[PHP]
engine = On
zend.ze1_compatibility_mode = Off
short_open_tag = Off
asp_tags = Off
precision = 14
y2k_compliance = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = Off
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = Off
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = On
variables_order = "GPCS"
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
extension_dir = "./"
enable_dl = On
file_uploads = On
upload_max_filesize = 2M
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[Date]
[filter]
[iconv]
[sqlite]
[Pcre]
[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = localhost
smtp_port = 25
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_links = -1
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
[OCI8]
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase]
sybase.allow_persistent = On
sybase.max_persistent = -1
sybase.max_links = -1
sybase.min_error_severity = 10
sybase.min_message_severity = 10
sybase.compatability_mode = Off
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Informix]
ifx.default_host =
ifx.default_user =
ifx.default_password =
ifx.allow_persistent = On
ifx.max_persistent = -1
ifx.max_links = -1
ifx.textasvarchar = 0
ifx.byteasvarchar = 0
ifx.charasvarchar = 0
ifx.blobinfile = 0
ifx.nullformat = 0
[Session]
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[COM]
[mbstring]
[FrontBase]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
[/code]

And here is my php-fpm.conf
[code]
<?xml version="1.0" ?>
<configuration>
All relative paths in this config are relative to php's install prefix
<section name="global_options">
Pid file
<value name="pid_file">/var/run/php-fpm.pid</value>
Error log file
<value name="error_log">/var/log/php-fpm.log</value>
Log level
<value name="log_level">notice</value>
When this amount of php processes exited with SIGSEGV or SIGBUS ...
<value name="emergency_restart_threshold">10</value>
... in a less than this interval of time, a graceful restart will be initiated.
Useful to work around accidental curruptions in accelerator's shared memory.
<value name="emergency_restart_interval">1m</value>
Time limit on waiting child's reaction on signals from master
<value name="process_control_timeout">5s</value>
Set to 'no' to debug fpm
<value name="daemonize">yes</value>
</section>
<workers>
<section name="pool">
Name of pool. Used in logs and stats.
<value name="name">default</value>
Address to accept fastcgi requests on.
Valid syntax is 'ip.ad.re.ss:port' or just 'port' or '/path/to/unix/socket'
<value name="listen_address">127.0.0.1:9000</value>
<value name="listen_options">
Set listen(2) backlog
<value name="backlog">-1</value>
Set permissions for unix socket, if one used.
In Linux read/write permissions must be set in order to allow connections from web server.
Many BSD-derrived systems allow connections regardless of permissions.
<value name="owner">www-data</value>
<value name="group">www-data</value>
<value name="mode">0666</value>
</value>
Additional php.ini defines, specific to this pool of workers.
These settings overwrite the values previously defined in the php.ini.
<value name="php_defines">
<!-- <value name="sendmail_path">/usr/sbin/sendmail -t -i</value> -->
<!-- <value name="display_errors">0</value> -->
<!-- <value name="error_log">/var/log/php-error.log</value> -->
<!-- <value name="log_errors">true</value> -->
</value>
Unix user of processes
<value name="user">www-data</value>
Unix group of processes
<value name="group">www-data</value>
Process manager settings
<value name="pm">
Sets style of controling worker process count.
Valid values are 'static' and 'apache-like'
<value name="style">static</value>
Sets the limit on the number of simultaneous requests that will be served.
Equivalent to Apache MaxClients directive.
Equivalent to PHP_FCGI_CHILDREN environment in original php.fcgi
Used with any pm_style.
<value name="max_children">5</value>
Settings group for 'apache-like' pm style
<value name="apache_like">
Sets the number of server processes created on startup.
Used only when 'apache-like' pm_style is selected
<value name="StartServers">20</value>
Sets the desired minimum number of idle server processes.
Used only when 'apache-like' pm_style is selected
<value name="MinSpareServers">5</value>
Sets the desired maximum number of idle server processes.
Used only when 'apache-like' pm_style is selected
<value name="MaxSpareServers">35</value>
</value>
</value>
The timeout (in seconds) for serving a single request after which the worker process will be terminated
Should be used when 'max_execution_time' ini option does not stop script execution for some reason
'0s' means 'off'
<value name="request_terminate_timeout">0s</value>
The timeout (in seconds) for serving of single request after which a php backtrace will be dumped to slow.log file
'0s' means 'off'
<value name="request_slowlog_timeout">0s</value>
The log file for slow requests
<value name="slowlog">/var/log/php-fpm.log.slow</value>
Set open file desc rlimit
<value name="rlimit_files">1024</value>
Set max core size rlimit
<value name="rlimit_core">0</value>
Chroot to this directory at the start, absolute path
<value name="chroot"></value>
Chdir to this directory at the start, absolute path
<value name="chdir"></value>
Redirect workers' stdout and stderr into main error log.
If not set, they will be redirected to /dev/null, according to FastCGI specs
<value name="catch_workers_output">yes</value>
How much requests each process should execute before respawn.
Useful to work around memory leaks in 3rd party libraries.
For endless request processing please specify 0
Equivalent to PHP_FCGI_MAX_REQUESTS
<value name="max_requests">500</value>
Comma separated list of ipv4 addresses of FastCGI clients that allowed to connect.
Equivalent to FCGI_WEB_SERVER_ADDRS environment in original php.fcgi (5.2.2+)
Makes sense only with AF_INET listening socket.
<value name="allowed_clients">127.0.0.1</value>
Pass environment variables like LD_LIBRARY_PATH
All $VARIABLEs are taken from current environment
<value name="environment">
<value name="HOSTNAME">$HOSTNAME</value>
<value name="PATH">/usr/local/bin:/usr/bin:/bin</value>
<value name="TMP">/tmp</value>
<value name="TMPDIR">/tmp</value>
<value name="TEMP">/tmp</value>
<value name="OSTYPE">$OSTYPE</value>
<value name="MACHTYPE">$MACHTYPE</value>
<value name="MALLOC_CHECK_">2</value>
</value>
</section>
</workers>
</configuration>
[/code]
Re: php-fpm ignore my php.ini completely
November 10, 2009 07:48PM
pastebin all of this raw without removing comments

On Tue, Nov 10, 2009 at 4:43 PM, helpmhost <nginx-forum@nginx.us> wrote:
>
> Here is my php.ini (without the comments or blank lines)
>
>
> engine = On
> zend.ze1_compatibility_mode = Off
> short_open_tag = Off
> asp_tags = Off
> precision    =  14
> y2k_compliance = On
> output_buffering = 4096
> zlib.output_compression = Off
> implicit_flush = Off
> unserialize_callback_func=
> serialize_precision = 100
> allow_call_time_pass_reference = Off
> safe_mode = Off
> safe_mode_gid = Off
> safe_mode_include_dir =
> safe_mode_exec_dir =
> safe_mode_allowed_env_vars = PHP_
> safe_mode_protected_env_vars = LD_LIBRARY_PATH
> disable_functions =
> disable_classes =
> expose_php = Off
> max_execution_time = 30     ; Maximum execution time of each script, in seconds
> max_input_time = 60     ; Maximum amount of time each script may spend parsing request data
> memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)
> error_reporting = E_ALL
> display_errors = Off
> display_startup_errors = Off
> log_errors = On
> log_errors_max_len = 1024
> ignore_repeated_errors = Off
> ignore_repeated_source = Off
> report_memleaks = On
> track_errors = On
> variables_order = "GPCS"
> register_globals = Off
> register_long_arrays = Off
> register_argc_argv = Off
> auto_globals_jit = On
> post_max_size = 8M
> magic_quotes_gpc = Off
> magic_quotes_runtime = Off
> magic_quotes_sybase = Off
> auto_prepend_file =
> auto_append_file =
> default_mimetype = "text/html"
> doc_root =
> user_dir =
> extension_dir = "./"
> enable_dl = On
> file_uploads = On
> upload_max_filesize = 2M
> allow_url_fopen = On
> allow_url_include = Off
> default_socket_timeout = 60
>
>
>
>
>
>
> define_syslog_variables  = Off
>
> SMTP = localhost
> smtp_port = 25
>
> sql.safe_mode = Off
>
> odbc.allow_persistent = On
> odbc.check_persistent = On
> odbc.max_persistent = -1
> odbc.max_links = -1
> odbc.defaultlrl = 4096
> odbc.defaultbinmode = 1
>
> mysql.allow_persistent = On
> mysql.max_persistent = -1
> mysql.max_links = -1
> mysql.default_port =
> mysql.default_socket =
> mysql.default_host =
> mysql.default_user =
> mysql.default_password =
> mysql.connect_timeout = 60
> mysql.trace_mode = Off
>
> mysqli.max_links = -1
> mysqli.default_port = 3306
> mysqli.default_socket =
> mysqli.default_host =
> mysqli.default_user =
> mysqli.default_pw =
> mysqli.reconnect = Off
>
> msql.allow_persistent = On
> msql.max_persistent = -1
> msql.max_links = -1
>
>
> pgsql.allow_persistent = On
> pgsql.auto_reset_persistent = Off
> pgsql.max_persistent = -1
> pgsql.max_links = -1
> pgsql.ignore_notice = 0
> pgsql.log_notice = 0
>
> sybase.allow_persistent = On
> sybase.max_persistent = -1
> sybase.max_links = -1
> sybase.min_error_severity = 10
> sybase.min_message_severity = 10
> sybase.compatability_mode = Off
>
> sybct.allow_persistent = On
> sybct.max_persistent = -1
> sybct.max_links = -1
> sybct.min_server_severity = 10
> sybct.min_client_severity = 10
>
> bcmath.scale = 0
>
>
> ifx.default_host =
> ifx.default_user =
> ifx.default_password =
> ifx.allow_persistent = On
> ifx.max_persistent = -1
> ifx.max_links = -1
> ifx.textasvarchar = 0
> ifx.byteasvarchar = 0
> ifx.charasvarchar = 0
> ifx.blobinfile = 0
> ifx.nullformat = 0
>
> session.save_handler = files
> session.use_cookies = 1
> session.name = PHPSESSID
> session.auto_start = 0
> session.cookie_lifetime = 0
> session.cookie_path = /
> session.cookie_domain =
> session.cookie_httponly =
> session.serialize_handler = php
> session.gc_probability = 1
> session.gc_divisor     = 1000
> session.gc_maxlifetime = 1440
> session.bug_compat_42 = 0
> session.bug_compat_warn = 1
> session.referer_check =
> session.entropy_length = 0
> session.entropy_file =
> session.cache_limiter = nocache
> session.cache_expire = 180
> session.use_trans_sid = 0
> session.hash_function = 0
> session.hash_bits_per_character = 5
> url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
>
> mssql.allow_persistent = On
> mssql.max_persistent = -1
> mssql.max_links = -1
> mssql.min_error_severity = 10
> mssql.min_message_severity = 10
> mssql.compatability_mode = Off
> mssql.secure_connection = Off
>
>
>
>
>
>
>
> tidy.clean_output = Off
>
> soap.wsdl_cache_enabled=1
> soap.wsdl_cache_dir="/tmp"
> soap.wsdl_cache_ttl=86400
>
>
> And here is my php-fpm.conf
>
> <?xml version="1.0" ?>
>
>        All relative paths in this config are relative to php's install prefix
>
>                Pid file
>                /var/run/php-fpm.pid
>                Error log file
>                /var/log/php-fpm.log
>                Log level
>                notice
>                When this amount of php processes exited with SIGSEGV or SIGBUS ...
>                10
>                ... in a less than this interval of time, a graceful restart will be initiated.
>                Useful to work around accidental curruptions in accelerator's shared memory.
>                1m
>                Time limit on waiting child's reaction on signals from master
>                5s
>                Set to 'no' to debug fpm
>                yes
>
>
>
>                        Name of pool. Used in logs and stats.
>                        default
>                        Address to accept fastcgi requests on.
>                        Valid syntax is 'ip.ad.re.ss:port' or just 'port' or '/path/to/unix/socket'
>                        127.0.0.1:9000
>
>                                Set listen(2) backlog
>                                -1
>                                Set permissions for unix socket, if one used.
>                                In Linux read/write permissions must be set in order to allow connections from web server.
>                                Many BSD-derrived systems allow connections regardless of permissions.
>                                www-data
>                                www-data
>                                0666
>
>                        Additional php.ini defines, specific to this pool of workers.
>                        These settings overwrite the values previously defined in the php.ini.
>
>                                <!-- /usr/sbin/sendmail -t -i -->
>                                <!-- 0 -->
>                                <!-- /var/log/php-error.log -->
>                        <!-- true -->
>
>                        Unix user of processes
>                        www-data
>                        Unix group of processes
>                        www-data
>                        Process manager settings
>
>                                Sets style of controling worker process count.
>                                Valid values are 'static' and 'apache-like'
>                                static
>                                Sets the limit on the number of simultaneous requests that will be served.
>                                Equivalent to Apache MaxClients directive.
>                                Equivalent to PHP_FCGI_CHILDREN environment in original php.fcgi
>                                Used with any pm_style.
>                                5
>                                Settings group for 'apache-like' pm style
>
>                                        Sets the number of server processes created on startup.
>                                        Used only when 'apache-like' pm_style is selected
>                                        20
>                                        Sets the desired minimum number of idle server processes.
>                                        Used only when 'apache-like' pm_style is selected
>                                        5
>                                        Sets the desired maximum number of idle server processes.
>                                        Used only when 'apache-like' pm_style is selected
>                                        35
>
>
>                        The timeout (in seconds) for serving a single request after which the worker process will be terminated
>                        Should be used when 'max_execution_time' ini option does not stop script execution for some reason
>                        '0s' means 'off'
>                        0s
>                        The timeout (in seconds) for serving of single request after which a php backtrace will be dumped to slow.log file
>                        '0s' means 'off'
>                        0s
>                        The log file for slow requests
>                        /var/log/php-fpm.log.slow
>                        Set open file desc rlimit
>                        1024
>                        Set max core size rlimit
>                        0
>                        Chroot to this directory at the start, absolute path
>
>                        Chdir to this directory at the start, absolute path
>
>                        Redirect workers' stdout and stderr into main error log.
>                        If not set, they will be redirected to /dev/null, according to FastCGI specs
>                        yes
>                        How much requests each process should execute before respawn.
>                        Useful to work around memory leaks in 3rd party libraries.
>                        For endless request processing please specify 0
>                        Equivalent to PHP_FCGI_MAX_REQUESTS
>                        500
>                        Comma separated list of ipv4 addresses of FastCGI clients that allowed to connect.
>                        Equivalent to FCGI_WEB_SERVER_ADDRS environment in original php.fcgi (5.2.2+)
>                        Makes sense only with AF_INET listening socket.
>                        127.0.0.1
>                        Pass environment variables like LD_LIBRARY_PATH
>                        All $VARIABLEs are taken from current environment
>
>                                $HOSTNAME
>                                /usr/local/bin:/usr/bin:/bin
>                                /tmp
>                                /tmp
>                                /tmp
>                                $OSTYPE
>                                $MACHTYPE
>                                2
>
>
>
>
>
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,21928,21983#msg-21983
>
>
Re: php-fpm ignore my php.ini completely
November 10, 2009 08:24PM
I am new to pastebin, but I assume I figure it out.

They are both at:
php.ini: http://helpmhost.pastebin.ca/1665772
php-fpm.conf: http://helpmhost.pastebin.ca/1665774
Re: php-fpm ignore my php.ini completely
November 10, 2009 08:28PM
sadly i see nothing when i look at it

you could always force those inside of php-fpm.conf

under
value name="php_defines"




On Tue, Nov 10, 2009 at 5:24 PM, helpmhost <nginx-forum@nginx.us> wrote:
>
> I am new to pastebin, but I assume I figure it out.
>
> They are both at:
> php.ini:  http://helpmhost.pastebin.ca/1665772
> php-fpm.conf:  http://helpmhost.pastebin.ca/1665774
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,21928,21993#msg-21993
>
>
Raiden Xu
Re: php-fpm ignore my php.ini completely
November 10, 2009 08:56PM
What is your php configration file path ?
You can see this on your phpinfo() result;
That is like this:

Configuration File (php.ini) Path /usr/local/php-5.2.9/etc Loaded
Configuration File /usr/local/php-5.2.9/etc/php.ini


2009/11/11 Michael Shadle <mike503@gmail.com>

>
> sadly i see nothing when i look at it
>
> you could always force those inside of php-fpm.conf
>
> under
> value name="php_defines"
>
>
>
>
> On Tue, Nov 10, 2009 at 5:24 PM, helpmhost <nginx-forum@nginx.us> wrote:
> >
> > I am new to pastebin, but I assume I figure it out.
> >
> > They are both at:
> > php.ini: http://helpmhost.pastebin.ca/1665772
> > php-fpm.conf: http://helpmhost.pastebin.ca/1665774
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?3,21928,21993#msg-21993
> >
> >
>



--
徐亮 | Raiden
Re: php-fpm ignore my php.ini completely
November 10, 2009 09:37PM
I found the problem. I ran /usr/local/bin/php --ini and noticed that there were no "Loaded Configuration File"s.

The reason, when I compiled PHP, I tried setting a cutome php.ini path and I supplied the full php.ini path instead of just the folder. So it was actually looking for /etc/php/php.ini/php.ini

As you mentioned Raiden, I had already looked in phpinfo and just saw /etc/php/php.ini under Configuration File (php.ini) Path and didn't even realize that the line right below it said that none were loaded.

This was the first time I attempt to set a custom php.ini file when compiling php, what a silly mistake.

Thanks to all for the help.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 262
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready