# I am getting the error while setting on Runcloud Based Setup on Normal setup its working like a charm but on Runcloud I am have this issue

**URL:** <https://discuss.elastic.co/t/i-am-getting-the-error-while-setting-on-runcloud-based-setup-on-normal-setup-its-working-like-a-charm-but-on-runcloud-i-am-have-this-issue/352834>\
**Category:** APM\
**Tags:** elastic-stack-monitoring, php\
**Created:** [February 8, 2024, 8:59am UTC](https://discuss.elastic.co/t/i-am-getting-the-error-while-setting-on-runcloud-based-setup-on-normal-setup-its-working-like-a-charm-but-on-runcloud-i-am-have-this-issue/352834 "2024-02-08T08:59:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arya\_Aniket](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arya_aniket/32/131553_2.png) [@Arya\_Aniket](https://discuss.elastic.co/u/Arya_Aniket)\
**Post date:** [February 8, 2024, 8:59am UTC](https://discuss.elastic.co/t/i-am-getting-the-error-while-setting-on-runcloud-based-setup-on-normal-setup-its-working-like-a-charm-but-on-runcloud-i-am-have-this-issue/352834/1 "2024-02-08T08:59:20Z")

</div>

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.

```auto
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](mailto: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:~#

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 7, 2024, 8:59am UTC](https://discuss.elastic.co/t/i-am-getting-the-error-while-setting-on-runcloud-based-setup-on-normal-setup-its-working-like-a-charm-but-on-runcloud-i-am-have-this-issue/352834/2 "2024-03-07T08:59:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
