All Questions
932
questions
1
vote
1
answer
60
views
How to enable executing php files in Fedora Apache?
I installed httpd and php v8.2.11 on my Linux Fedora.
But Apache can't execute .php files. (Responses "Access denied.")
I tried to use chmod shell command to enable executing and add AddType ...
0
votes
1
answer
95
views
PHP Fatal Error: Cannot open /dev/urandom: No such file or directory when calling session_start() with manually built PHP
Problem
I built PHP8.4 manually in Ubuntu 14.04 since the OS is out of support with no ppa package available. I tested for phpinfo() web page showed correct information while adding session_start() at ...
0
votes
0
answers
33
views
MacOS MySQL Client Gets Stuck on Query That is a Certain Size
My MySQL client gets stuck on a query when the output is a certain size. When it's small enough, the query will successfully output. The client is connecting to a remote server (Ubuntu 18.04). When I ...
1
vote
1
answer
114
views
Memory consumption on virtual server too large for applications being run
I have a Linux Ubuntu virtual server at Digital Ocean with the following specs: 1 vCPU, 2GB of memory, and 25GB of SSD storage.
The server is running a single WordPress website with around 400 unique ...
0
votes
2
answers
844
views
Install Zip module in PHP8.2
I am trying to install the zip module in PHP 8.2, in Amazon Linux 2023. However, either the module is not available or it is a different name than the previous ones.
I have tried.
sudo yum install ...
0
votes
1
answer
118
views
Remote MySQL server returning: MySQL server has gone away / Error while sending QUERY packet
I have 2 servers (both running Ubuntu 12.04)
APP server
running apache2, PHP7.2 and a CakePHP 2.0 APP
DATABASE server
running mysql 5.7
When I'am trying to insert into the database a big blob (...
0
votes
1
answer
263
views
Can not compile php-curl ext with custom curl
I have libcurl installed here:
/usr/local/curl-7.88.1/
I want to compile php-curl extension:
# cd /usr/src/php-8.1.12/ext/curl/
# /usr/local/php81/bin/phpize
Configuring for:
PHP Api Version: ...
0
votes
1
answer
850
views
How is php-fpm socket folder ({/var,}/run/php-fpm) created on Linux?
I am setting up multiple php versions on CentOS7 (native and from remi repos). As installed, the native php-fpm ( is setup on a unix socket, while the (remi) php74-php-fpm would listen on a TCP socket....
0
votes
2
answers
2k
views
error installing php dependencies on ubuntu
I have a vps with linux ubuntu 20.04 LTS installed, I also installed the lamp stack to upload my web projects, php with version 7.4, now I need to install some more php libraries for example: php-gd ...
0
votes
0
answers
190
views
Php and shell_exec are a good way to process many detached process on a CentOs server?
During execution of a php webservice, i need to detach a "time consuming function" to maintain a quick response to the user. That's an example of the flow :
I know that php does not manage ...
0
votes
0
answers
276
views
Ubuntu: How to lock php to certain version?
A client running Ubuntu 18.04 wants to update php from 7.2.24-0ubuntu0.18.04.17 (cli) to the latest 7.4 version, and lock it there (the software he uses does not work with php8). I have seen other ...
0
votes
0
answers
206
views
Poor server performance on Linux Ubuntu 20.04 with PHP-FPM, MySQL, and Redis Server installed
My client’s server has recently started having performance issues. The single website hosted on the server loads very slowly. It is built with WordPress using a custom theme. There are a minimum ...
0
votes
0
answers
95
views
PHP - Session Upload Progress produces 503 error
I've just migrated from APC to using Session Upload Progress (https://www.php.net/manual/en/session.upload-progress.php).
All was going swimmingly until some forms were mysteriously throwing up Access-...
0
votes
1
answer
236
views
Sudden spike in PHP-FPM process CPU usage. How to track down?
I have a magento2 store(with 10609 products) running on an ec2 instance(ubuntu 20.04, 16core and 32GB ram). It is a shared server with staging and live on the same instance.
A few days ago, I got an ...
1
vote
2
answers
5k
views
Configuring PHP-FPM in Apache
I installed Apache/2.4.54, PHP72-FPM, PHP74-FPM and some other versions of PHP-FPM on Arch Linux.
Apparently there is some misconfiguration in httpd.conf, PHP can`t interpret anything and browser ...
0
votes
1
answer
2k
views
php command not found after PHP8 install on OpenSUSE Leap 15.4
I have upgraded my OpenSUSE Leap from 15.3 to 15.4.
I then want to upgrade PHP from version 7 to version 8. Before upgrade, PHP version is:
server:~ # php -v
PHP 7.4.33 (cli) (built: Nov 3 2022 12:00:...
0
votes
0
answers
352
views
Create ubuntu user with home folder located in www and restrict ssh access using ChrootDirectory to that folder
I posted this on stackoverflow and was told to post here:
I am running a Ubuntu remote dev server, heavily restricted (due to compliance) environment which i previously had configured correctly for ...
0
votes
1
answer
52
views
Is PHP's error_log dependent on the OS, config file or something else?
I have two HTTP servers:
Live LAMP server.
Local WAMP server.
When an error occurs on the live server PHP will generate an error_log file in the directory of where the script error occurred. The ...
0
votes
1
answer
518
views
Best practices for PHP ini settings for large wordpress site?
I own a large wordpress site that gets
500k+ visitors
30+ plugins (some heavy)
server with 128 GB RAM
Wondering if there are "best practices" for php.ini settings for larger sites on Linux?...
0
votes
1
answer
397
views
LAMP Stack - Multiple Websites Isolation
I would like to host multiple websites on a VPS (LAMP stack - Ubuntu 20.04 LTS). For security reasons, I'd like to properly isolate each website/vhost from each other and also prevent access to other/...
0
votes
1
answer
237
views
How can I update php 8 on a linux server without internet access?
Operating System: Redhat 8.4
Internet access : no
access to redhat server : ssl vpn
Current php version : 7.4
Purpose: Make php version 8
How can I do that ?
1
vote
0
answers
302
views
PAM configuration popup yes or no for answer? after sudo apt install software-properties-common
I was trying to install the latest php version and after a command not found I googled it and they say to use the following command ''sudo apt install software-properties-common''
After doing this I ...
0
votes
1
answer
2k
views
centos 7 php https port 443 Connection refused
centos 7 php https port 443 Connection refused
i try to open port 443 https on my centos vps
i have open port in firewall-cmd
but on i open url https port 443
i have error Connection refused
firewall-...
0
votes
0
answers
1k
views
How to I setup default php-fpm service if I have two versions of php
I am having two versions of PHP on an ubuntu server that is 8.1 and 7.4 I installed both PHP-fpm extensions and I have this in /var/run/php
php7.4-fpm.pid php7.4-fpm.sock php8.1-fpm.pid php8.1-fpm....
1
vote
1
answer
740
views
How do I pass on a custom FastCGI param value onto an NGINX variable?
Using the FastCGI module allowed me to pass on server variables directly onto my PHP application through the use of param. What I'm hoping to do next is record one of these params onto my NGINX access ...
0
votes
1
answer
115
views
Is the slow down due to traffic every day near 12 pm
I checked the slow logs and I got only 4 queries in 2 hours and all of them were similar to this:
"SELECT HEX(uhash) AS uhash, vehid, IF(deleted = 0 AND follow_price_drop = 1, 1, 0) AS ...
0
votes
1
answer
997
views
How to respond to "NOTICE: Not enabling PHP 7.4 FPM by default." from system upgrade
I did a standard OS update on Ubuntu LTS (20.04) and the messages end with:
Processing triggers for php7.4-fpm (7.4.3-4ubuntu2.6) ...
NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP ...
0
votes
1
answer
1k
views
Error: Could not start TLS. Please check your LDAP server configuration. on PhpLdapAdmin
We have a LDAP server and we use phpldapadmin to manage it. I have not used it since a long time and when I try to login with my admin user, I get the following :
Could not start TLS. (LDAP Server)
...
0
votes
1
answer
244
views
Websites getting down every day on VPS Server
I have a VPS server using 4 CPU and 4GB RAM shared across 10 PHP websites of which 2 website(website and set cron jobs) are using sometime more than 6 CPU core of 4 CPU core available. And because of ...
2
votes
0
answers
61
views
Does slow file IO impact networking?
We are using php7, php-fpm, nginx on gke, services communicated by clusterIP.
In php7, we found out that occasionally writing the log needed to take 1~2 seconds to complete, it usually took less than ...
1
vote
2
answers
13k
views
Can I install php8.0 on Ubutnu 16.04
I'm trying to install php8 on Ubuntu 16.04.5 LTS.
Here is the list of commands and output that I ran:
apt-get update
apt install software-properties-common
--- these commands went fine when ran
add-...
-2
votes
2
answers
273
views
Will increasing CPU speed up PHP tasks?
I'm running a $5/mo server on DigitalOcean - 1 GB RAM, 1 VCPU.
I have a script which contains a for loop and will take some time to run (I have disabled timeouts).
If I increase the specs of the ...
0
votes
0
answers
292
views
PHP: Class 'PragmaRX\Google2FA\Google2FA' not found
I'm trying to use Class 'PragmaRX\Google2FA\Google2FA' with the "use" command in PHP, but I keep getting not found, even though the file is in /usr/share/php.
CentOS 7. I've yum uninstalled ...
0
votes
0
answers
79
views
Drupel 9, GD not enabled
I have for hours been attempting to set up a Drupel database, but have been stumped on this error message:
"PHP extensions
Disabled
Drupal requires you to enable the PHP extensions in the ...
0
votes
0
answers
239
views
What could cause processes to not be active
Running linux and executing a bunch of PHP scripts. I noticed that our CPU usage was pretty low but many processes were sleeping, so started investigating.
AWS EC2 with an S3 bucket.
I can't seem to ...
3
votes
1
answer
1k
views
Cannot Connect to Surry to get Php8
My system is Debian Buster:
~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
I have run ...
0
votes
1
answer
2k
views
How to set a command alias that will be respected in a shebang
I run multiple versions of PHP on my Linux server. I've added an alias in my bashrc to point the php command to a specific version alias php='/usr/bin/php7.3'.
This works as expected when I execute a ...
1
vote
0
answers
163
views
Use HTTP/2 together with PHP SQLSRV extensions?
I have a web site (Apache/2.4.46, HTTPS) using PHP7.3, MariaDb 10.4, MSSQL for Linux (mcr.microsoft.com/mssql/server:2019-latest), running on a Debian 10 server.
My setup works perfectly using HTTP/1....
0
votes
1
answer
293
views
How to serve TFTP content via script (PHP-like)?
I am looking for a way to serve TFTP requests with an output from a script (bash, PHP?) called with the TFTP request path as an argument. A simple TFTP equivalent of Apache+PHP.
Something like PHP + ...
0
votes
1
answer
233
views
How to debug an unreachable (from the wan side) lemp server tunneling through an AWS based Openvpn-AS instance
Ive been wracking my brains out for weeks trying to debug a once perfectly functioning LEMP web server.
I'm using a relatively complicated setup. Lets start with my setup from the beginning when ...
0
votes
1
answer
649
views
Format for second drive in Linux Server and path to directory in second drive for PHP
I'm working for an office in primary education and I'm setting up a local server with Ubuntu Server 20.04. I have some web applications written in PHP for this server. I am relatively new to Linux and ...
0
votes
0
answers
104
views
Outgoing Mail not working after changing port 25
I want to block Port 25 as my IP got blacklisted multiple times due to some spammers using my server.
I've changed the Port to 578 in Postfix and restarted postfix & on top I've as well changed ...
0
votes
2
answers
4k
views
How to stop PHP service without stoping web-server service?
PHP can be stop by stopping the web-server service.
e.g.
# /etc/init.d/apache2 stop
or
# apache2ctl stop
Would it be possible to stop PHP alone without disrupting apache2 service?
0
votes
2
answers
678
views
phpize Imagick build fails: missing functions
I am trying to install Imagick on my Debian 10 server running php 7.4 but it looks like some functions are missing from my system.
I installed sudo apt install php7.4-dev
PEAR Version: 1.10.12
PHP ...
0
votes
0
answers
998
views
Can't execute `pecl upgrade-all` - stream_socket_enable_crypto(): this stream does not support SSL/crypto
I tried to execute pecl upgrade-all but I get:
Warning: stream_socket_enable_crypto(): this stream does not support SSL/crypto in PEAR/Proxy.php on line 105
PHP Warning: stream_socket_enable_crypto():...
0
votes
0
answers
398
views
Can't install/uninstall PHP Modules
I can't install or uninstall any php modules.
Is it because my php -i returns none for loaded configuraiton file?
php -i | grep -i loaded
Loaded Configuration File => (none)
How can I solve it ...
1
vote
2
answers
12k
views
How to enable/disable PHP extension for PHP CLI if there is no loaded configuration file?
I just executed php -i | grep "Loaded Configuration File" to find out where the configuration file of my PHP CLI is stored, but I get: Loaded Configuration File => (none). So it loads the ...
1
vote
0
answers
33
views
What is the best way to maintain application logs
We have an SaaS application (LAMP stack) hosted in-house, used by thousands of clients on daily basis. Application generates logs (whether an error occurs or certain events happens inside the ...
0
votes
1
answer
52
views
Permissions on PHP executable - Giving more than just web server permission
I was prompted with the idea of opening up the permissions on the PHP executable to more than just the webserver. PHP executable meaning /usr/bin/php or /usr/bin/php-cli or where ever it is on your ...
0
votes
0
answers
848
views
Azure PHP Linux app - URL rewrite issue
We recently deployed an Azure App Service as code, in a Linux environment with a PHP stack.
So far everything worked fine but as often required the web developers wanted to enable URL rewrite for the ...