I install php8.1 following on this website https://computingforgeeks.com/how-to-install-php-8-on-amazon-linux/ librenms on this website https://docs.librenms.org/Installation/Installation-CentOS-7-Nginx/ And it did show the version with this command but it will show “php command not found” on this command after that I wanna install librenms and I follow the instructions on the librenms-documents and type this installation command the error will come out like this If
Tag: linux
Failed to start The PHP 8.0 FastCGI Process when update to php8.0
I am trying to update from php7.4 to php8.0 I applied the following steps But I got the error Knowing that there is no “php-fpm.conf” file in “/etc/php/8.0/fpm/” Answer By logs I see somehow You’ve lost config file: /etc/php/8.0/fpm/php-fpm.conf So I found one in my server and put to Gist. Need to put that on Your server. In terminal: if
PhpUnit: how to fake an outdated file?
I have a method in a class, which checks if a file is older than a day. It achieves this by getting the last change date of the file and comparing it with “now”: I want to write a Unittest faking an outdated file. I tried to change the file date with touch: The output gives me the information that
xdebug installed successfully on linux but not working
I have installed and configured Xdebug on my Linux system, however, I can’t see “Xdebug” in my PHPinfo file despite enabling and when i put the phpinfo source code page in the xdebug wizard , shows me that: Xdebug installed: no Have you any ideas on how to solve this issue? Also, I added the following lines to the end
Should I increase the PHP memory_limit to match my VM memory_limit?
I have a doubt if I should do this or not. I have a VM with 4 GBs RAM from Linode. I want to optimize what I paid for and increase the default value of memory_limit in php.ini to allow my Laravel application to take much more than the default value. Will this help my Laravel application load faster? Is
Set Max Size to folder for users file manager php mysql
I hope you are well. I am creating a Learning Platform in pure PHP with MySQL and AdminLTE3. I got to the time of creating the file manager for each user and got stuck on the following. I have the following structure in folders: /var/www/html/uploads/users/<% hash (USER ID)%>, and what I’m looking for is that each folder <% hash (USER
How to serve two laravel apps on 1 domain?
I have two laravel apps like this: I’m trying to serve them on linux machine, I can’t seem to get them to work together. I want to have two urls like this: https://test.example.co https://test.example.co/dashboard Answer I succeeded serving them using another subdomain, the “/dashboard” idea didn’t work. I hope someone can suggest the correct way to do it, I would
Linux can’t find process started by PHP [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Cron – bad minute errors in crontab file, can’t install
So I have a cron file sms.cron that I want to execute every 15 minutes that looks like that: 15 * * * * docker-compose exec php bin/console app:send-sms I do not precise the path to the command …
Check if PDFTOHTML is installed on server
I’m trying to check before running a php script if pdftohtml is installed on server. Is there a way to check if pdftohtml is installed on server (linux or mac) from within the code. I’m looking for something similar to function_exists() Answer Perhaps, the following will solve your case: which returns nothing if the program isn’t found. But it will