I have an app developed in CodeIgnter 4 and it works in /home/myuser/web/site1.com/public_html/public, I developed a bootstrap so that other sites can take advantage of the same installation, so they need to have access to /home/ myuser/web/site1.com/public_html/app/Config/Paths.php, I already made this configuration in open_basedir.
The problem is that I get the error PHP Fatal error: Allowed memory size of x bytes exhausted on my other sites /home/myuser/web/site2.com/public_html
Does anyone have any ideas on how I can solve it or how to debug it to find out why it occurs?
I also tried moving the app to a folder in /home/myuser/web/ but the memory error persists, I’ve already increased the memory to 8gb (which doesn’t make sense, as it works on site1.com) and it didn’t solve the problem.
Nginx + PHP-FPM (8.2)
Please attach your error log so that developers can view and solve your problem in time.
nano /home/myuser/web/mysite.com/logs/mysite.com.error.log
2024/06/11 11:05:46 [error] 238776#238776: *3411 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 94398321294256 bytes) in Unknown on line 0” while reading response header from upstream, client: 200.52.235.31, server: mysite.com, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php8.2-fpm-mysite.com.sock:”, host: “www.mysite.com”
2024/06/11 11:05:46 [error] 238776#238776: *3411 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: 200.52.235.31, server: mysite.com, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php8.2-fpm-mysite.com.sock:”, host: “www.mysite.com”
2024/06/11 11:05:46 [error] 238776#238776: *3411 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 94398321294256 bytes) in Unknown on line 0” while reading response header from upstream, client: 200.52.235.31, server: mysite.com, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php8.2-fpm-mysite.com.sock:”, host: “www.mysite.com”
2024/06/11 11:05:46 [error] 238776#238776: *3411 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: 200.52.235.31, server: mysite.com, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php8.2-fpm-mysite.com.sock:”, host: “www.mysite.com”
I found the solution, I was thinking and researching differently (wrong maybe ).
This solution solved my problem: Point multiple domains to same directory
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.