I am using LEMP setup and we are using Runcloud service for deploying the wordpress apps and Laravel apps. On raw LEMP setup its working fine but on runcloud I am getting this issue. This issue is regarding open_basedir.
I have added :/opt/elastic/apm-agent-php:/tmp but then I am unable to install the plugins.
php74rc-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/etc/systemd/system/php74rc-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2024-02-08 04:49:21 UTC; 10s ago
Main PID: 15787 (php-fpm)
Status: "Processes active: 0, idle: 20, Requests: 2, slow: 0, Traffic: 0.2req/sec"
Tasks: 21 (limit: 9421)
Memory: 53.4M
CGroup: /system.slice/php74rc-fpm.service
├─15787 php-fpm: master process (/etc/php74rc/php-fpm.conf)
├─15788 php-fpm: pool astra-defaults
├─15789 php-fpm: pool blueprint
├─15790 php-fpm: pool clone-my-surecart
├─15791 php-fpm: pool clone-my-surecraft
├─15792 php-fpm: pool clone-surecart-main-site
├─15793 php-fpm: pool dn-ganarator
├─15794 php-fpm: pool membershiparea
├─15795 php-fpm: pool my-store-site-copy
├─15796 php-fpm: pool ph-backup-before-launch
├─15797 php-fpm: pool phpmyadmin
├─15798 php-fpm: pool redesign-surecart-site
├─15799 php-fpm: pool spectra-editor
├─15800 php-fpm: pool surecart-clone
├─15801 php-fpm: pool surecart-demo-site
├─15802 php-fpm: pool suretriggers-app-directory
├─15803 php-fpm: pool surewriter-staging-site
├─15804 php-fpm: pool website-copy
├─15805 php-fpm: pool wpspectra-clone-site
├─15808 php-fpm: pool astra-st-dev
└─15813 php-fpm: pool wpastra-staging-060224
Feb 08 04:49:21 s29 systemd[1]: Starting The PHP FastCGI Process Manager...
Feb 08 04:49:21 s29 systemd[1]: Started The PHP FastCGI Process Manager.
Feb 08 04:49:27 s29 [15808]: [Elastic APM PHP Tracer] 2024-02-08 04:49:27.264684+00:00 [PID: 15808] [TID: 15808] [CRITICAL] [Bootstrap] [BootstrapStageLogger.php:225] [callAndSwallowThrowable] Handling ensureHaveLatestDataDeferredByExtension call let a throwable escape - skipping the rest of the steps. Error: Class 'Elastic\Apm\Impl\Util\DbgUtil' not found
Stack trace:
#0 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(288): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::ensureHaveLastPhpError()
#1 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(271): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::ensureHaveLastErrorData()
#2 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(261): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::Elastic\Apm\Impl\AutoInstrument{closure}()
#3 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(219): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::Elastic\Apm\Impl\AutoInstrument{closure}()
#4 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(262): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::callAndSwallowThrowable()
#5 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(272): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::callWithTransactionForExtensionRequest()
#6 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/TransactionForExtensionRequest.php(376): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::ensureHaveLatestDataDeferredByExtension()
#7 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(478): Elastic\Apm\Impl\AutoInstrument\TransactionForExtensionRequest->onShutdown()
#8 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(261): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::Elastic\Apm\Impl\AutoInstrument{closure}()
#9 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(219): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::Elastic\Apm\Impl\AutoInstrument{closure}()
#10 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(262): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::callAndSwallowThrowable()
#11 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(479): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::callWithTransactionForExtensionRequest()
#12 [internal function]: Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::shutdown()
#13 {main}
Feb 08 04:49:27 s29 [15808]: [Elastic APM PHP Tracer] 2024-02-08 04:49:27.265015+00:00 [PID: 15808] [TID: 15808] [CRITICAL] [Bootstrap] [BootstrapStageLogger.php:225] [callAndSwallowThrowable] Handling shutdown call let a throwable escape - skipping the rest of the steps. Error: Class 'Elastic\Apm\Impl\ErrorExceptionData' not found
Stack trace:
#0 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/Tracer.php(356): Elastic\Apm\Impl\Tracer->createError()
#1 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/TransactionForExtensionRequest.php(318): Elastic\Apm\Impl\Tracer->createErrorFromThrowable()
#2 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/TransactionForExtensionRequest.php(388): Elastic\Apm\Impl\AutoInstrument\TransactionForExtensionRequest->beforeHttpEnd()
#3 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(478): Elastic\Apm\Impl\AutoInstrument\TransactionForExtensionRequest->onShutdown()
#4 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(261): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::Elastic\Apm\Impl\AutoInstrument{closure}()
#5 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(219): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::Elastic\Apm\Impl\AutoInstrument{closure}()
#6 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(262): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::callAndSwallowThrowable()
#7 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/PhpPartFacade.php(479): Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::callWithTransactionForExtensionRequest()
#8 [internal function]: Elastic\Apm\Impl\AutoInstrument\PhpPartFacade::shutdown()
#9 {main}`
root@Test-Elk-Server:~# cat /etc/php74rc/fpm.d/app-elk-test-1.conf
; Do not edit this file
; Editing this file manually might break RunCloud System
; If you think there is a bug, contact us at bug@runcloud.io
[app-elk-test-1]
include = /etc/php-extra/app-elk-test-1.conf
listen = /var/run/app-elk-test-1.sock
listen.allowed_clients = 127.0.0.1
listen.owner = runcloud-www
listen.group = runcloud-www
listen.backlog = 65536
pm.status_path = /fpm-status
ping.path = /fpm-ping
ping.response = pong
user = runcloud
group = runcloud
pm = dynamic
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.max_children = 5
pm.process_idle_timeout = 10s
pm.max_requests = 500
php_admin_value[open_basedir] =
php_admin_value[realpath_turbo.open_basedir] = /home/runcloud/webapps/app-elk-test-1:/var/lib/php/session:/tmp:/opt/elastic/apm-agent-php:/tmp
php_admin_value[realpath_turbo.disable_dangerous_functions] = 0
php_admin_value[disable_functions] = getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,shell_exec,dl,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server
php_admin_value[allow_url_fopen] = On
php_value[max_execution_time] = 30
php_value[max_input_time] = 60
php_value[max_input_vars] = 1000
php_value[memory_limit] = 256M
php_value[post_max_size] = 256M
php_value[upload_max_filesize] = 256M
php_value[session.gc_maxlifetime] = 1440
php_admin_value[date.timezone] = UTC
php_admin_value[pdo_mysql.default_socket] = /var/run/mysqld/mysqld.sock
php_admin_value[mysqli.default_socket] = /var/run/mysqld/mysqld.sock
php_admin_value[mysql.default_socket] = /var/run/mysqld/mysqld.sock
; Suhosin fix for php 5.5 and 5.6
php_admin_value[suhosin.get.max_vars] = 1000
php_admin_value[suhosin.post.max_vars] = 1000
php_admin_value[suhosin.request.max_vars] = 1000
php_admin_value[suhosin.get.max_value_length] = 8000
root@Test-Elk-Server:~#