Questions tagged [php]

PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Updating a package on php gives php7.3 is already the newest version but its not

I'm trying to update php7.3.13 to 7.3.17 on ubuntu 18.04 I have done apt-get update apt-get install php7.3 It said 7.3.17 package is unpacked but after restarting apache I still get 7.3.13 in ...
0
votes
0answers
11 views

What can I do about MailMimeParser getting this “conversion from `KOI8' to `UCS-4LE' is not allowed” error?

I use MailMimeParser to parse all incoming e-mails. I thought I had, after years of being annoyed by logged errors related to wrongly encoded e-mails, finally achieved a "perfectly solid" application ...
0
votes
2answers
52 views

Why does Load Average of my Linux hosting server keeps swinging from 6 to 33?

Lately, I've noticed a weird behaviour on my production server of a moderately high traffic WordPress website. (concurrent realtime traffic around ~1500) The server is capable: DigitalOcean 48GB ...
0
votes
0answers
42 views

Issue with PHP $_SERVER[“REMOTE_ADDR”] and openvpn

I have an openvpn server with public and static address 77.77.77.77, and a local client called 'julieta' running Centos with PHP and, 'julieta', has a full DMZ from the openvpn server; so when I put ...
0
votes
1answer
100 views

How to change file permissions with Cpanel or Filezilla for MantisBT or any file / folder? [closed]

I would like to install Mantisbt on a shared hosting account. I'm not a developer or network engineer myself but I found easy to follow instructions here: https://www.tmdhosting.com/kb/answer/re-...
0
votes
0answers
47 views

PHP FPM Very slow after some 20-30 minutes works after reload/restart (on high traffic website)

PHP is running very slow like loads forever. Below is the www.conf file values ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes ...
0
votes
1answer
61 views

php-curl and php7.3-curl installed but curl_init() is “undefined function” (Debian buster)

I have a problem with my web server since upgrading to buster. PHP doesn't seem to see the curl library : root@myserver ~ # php -r "curl_init();" PHP Fatal error: Uncaught Error: Call to undefined ...
0
votes
2answers
250 views

How can I install the imagick extension in PHP 7.0 on Debian Buster?

I've upgraded our company's webserver to Debian 10 Buster recently. Our website is using a legacy CMS that cannot run on PHP versions newer than 7.0. It requires the imagick extension to be present. ...
0
votes
1answer
150 views

OpenLiteSpeed file_put_contents Permission Denied Error

New to OpenLiteSpeed, I received a permission denied warning error when trying to write a file in the website subdirectory using file_put_contents() API from PHP. I thought perhaps I needed to adjust ...
0
votes
1answer
32 views

apache2handler Keepalive is still on even though I turned it off in httpd.conf

We're running centos 7, lamp stack 5.6 we send 17k sms per day among other things, like streaming, so the server is always busy. Some users complain about not receiving the SMS, the SMS gateway says ...
0
votes
1answer
86 views

Nginx rules for dockized linuxserver/dokuwiki on subdirectory path

I can hit the container by typing /dokuwiki but the assets and links are messed up. What I currently see Since PHP is included in the dokuwiki container I'm not sure what I need to add in the nginx ...
1
vote
0answers
28 views

How do I use another version of Php for an app served under a certain path with Apache?

I am on Debian Testing so Php 7.4 seems to be the current one. This is fine with me since most of my Apache served apps are fine however two of them are broken. One is Wallabag and the other one is ...
-1
votes
1answer
28 views

Nginx doesn't execute PHP files but download them

I know this question had been asked many times. I checked answers but none of them worked for me. I run this command which nginx And I get /usr/sbin/nginx I try to navigate to that folder and I ...
1
vote
1answer
109 views

Why must the XHR status be set before echoes in PHP?

Perhaps this question belongs on Stack Overflow or another site instead, in which case please tell me and don't just downvote; I will gladly move it. Anyway, I'm just learning the very basics of ...
0
votes
1answer
46 views

Nginx Apache reverse proxy with php-fpm

trying to install nginx with apache revers proxy, apache itself does sent to php-fpm to port 9000 on localhost so apache http on port 8081, apache https 444 nginx 80 and nginx ssl 443 php-fpm port ...
0
votes
0answers
41 views

Static files getting requested with internal IP address prefix instead of domain-name prefix

I have a smoothly running FreeBSD box with a couple of jails running their own servers. Nginx runs in its own jail and the main machine uses pf to redirect all http/s requests to Nginx. Nginx ...
0
votes
0answers
14 views

nginx rewrite rule for php for this /article?id=2 to get this /article/2

I have php7.4 with nginx on ubuntu 18.04 server. I want to rewrite https://example.com/article?id=2 to https://example.com/article/2 using the nginx rewrite rule. Can anyone guide me on how do I ...
0
votes
1answer
121 views

tried php install and show error packcage php-7.3.17-1.el7.remi.x86_64 (remi-php73)

I tried 「sudo yum --enablerepo=remi-php73 install php-pdo php-mysql」in vagrant and show Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit) error: package: php-7.3.17-1.el7.remi.x86_64 (...
0
votes
1answer
369 views

(proxy_fcgi:error) AH01071: Got error 'Unable to open primary script:' (No such file or directory)

X-post from StackOverflow I've read countless forum posts about this but none of the answers seem to help my situation. Here's the log excerpt: [proxy_fcgi:error] [pid XXXX] [client redacted] ...
2
votes
1answer
197 views

Pages load only when you restart php-fpm

So here's more context in a GIF Notice how pages do not load on link clicks, but as soon as you run service php7.2-fpm restart it instantly loads the page and like that with every page. What is ...
0
votes
0answers
7 views

FastCGU, PHP: File Exists and not expired, serializing

I get strange erors in my nginx error.log and I have no idea why: 2020/04/21 12:46:23 [error] 16715#16715: *4285612 FastCGI sent in stderr: "PHP message: File Exists and not expired, serializing" ...
-1
votes
1answer
25 views

How to sync files and PHP sessions in real-time between two nodes?

I am setting up a PHP application in 2 nodes and one DB server. Also setting cluster (with HaProxy) which will route traffic on least connections algorithm between both nodes. The thing I am confused ...
0
votes
1answer
27 views

issue with shibboleth SP in docker container behind proxy

I am trying to get a shibboleth set up working in a docker container behind a proxy. Currently I am able to get redirected to the shibboleth idp page where I can enter my login details and shibboleth ...
0
votes
1answer
45 views

error installing new version of php in EasyApache 4

I have a small cloudserver running cloudlinux, which has WHM installed to manage it, in addition to EasyApache 4 so I need to install a new version of php for my server in this case php73, when ...
0
votes
0answers
13 views

Docker image pushing but my volume not persist

This message to clear up a problem I am having with the use of docker with my php application. Indeed, I execute locally my dockers images (nginx, phpmyadmin and php with my application) and ...
0
votes
1answer
32 views

sql injection “Slep”

how to determine ip address or url address logs ? i have this in my mysql-slow-query /usr/sbin/mysqld, Version: 5.5.62-0ubuntu0.14.04.1-log ((Ubuntu)). started with: Tcp port: 3306 Unix socket: /...
0
votes
2answers
102 views

Ansible - what is the purpose of the key “run_once” in a task file.yml?

In a task file whose role is to install php on a remote server(s) someone uses this module (after the one dedicated to the installation) to update the fresh install : command: php update.php --...
0
votes
0answers
42 views

Apache logs HTTP 408 error, client seems to lose PHP session

I'm struggling with a strange issue that "logs out" users and seems to happen about ten times a day. The application is an old PHP project. Clients log in; a PHP session is established. Sometimes if ...
0
votes
0answers
12 views

debian 9 linux is not loading my htaccess mod re-write rules

I have been struggling past 2 days trying to make a rewrite rule for my server it used to work great until I installed the SSL the SSL works well but it looks like the apache is not enabled because ...
0
votes
0answers
14 views

appropriate server size for a PHP application that does heavy processing and expecting large number of records [duplicate]

We are using Ubuntu 18.04.4, Nginx, MySQL, PHP7.2, and Laravel 5.8 Current Nginx and PHP settings to handle large data processing: PHP php_admin_value[memory_limit] = 8000M php_admin_value[...
0
votes
1answer
110 views

Centos 6 PHP 5.3.29 from IUS with httpd 2.4. from IUS too

I have old depracated linux Centos6 machines for old SW. We need PHP 5.3. for customers. I'd like use this machines for newer versions PHP with FPM - and migrate to htpd 2.4. and FPM for PHP 5.3 too. ...
0
votes
1answer
44 views

Running PHP 5.1.6 on Docker

Yes the title is correct! A long time a go a website was developed for a student association, the website now has some historical meaning. I'm trying to move the website do a different server, with ...
1
vote
1answer
44 views

Debian don't return 200 ok on HTTPS

I have a problem I am running health check for my load balancer the health check uses the HTTP, HTTPS, or HTTP/2 protocol, each requires an HTTP 200 (OK) response code I ran the below command https:...
0
votes
0answers
13 views

Which value will be taken if local value is greater than master value phpinfo()

In a magento 2 website I am getting this error "Invalid form key. Please refresh the page" when I try to save a setting. When I googled for that I found that increasing max_input_vars will solve the ...
-1
votes
1answer
48 views

Chroot SFTP vs wordpress … omfg? Centos

I want to be as much secure as i can. It means, i use only secure ssh on other than default port and auth with cert keys. It works with Winscp, i need cert, cert passphrase to login. Now i wanted to ...
0
votes
0answers
39 views

Protect large file downloads through Apache / PHP

I need to provide large video files for download through my site, and the files need to be protected - I want to allow only authorised access through a logged in account, and I want to track when/...
0
votes
0answers
29 views

MySQL said: Documentation Cannot connect: invalid settings

i cannot connect mysql and i get search and I worked with all solutions and not work . i change port 3307-8-9 etc more 33001 and note work. i change password from config in php my admin also not work ....
0
votes
1answer
442 views

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

I'm trying to setup PhpPgAdmin. But the service won't start. I get the following output when sudo systemctl status httpd.service: ● httpd.service - Apache Web Server Loaded: loaded (/usr/lib/...
0
votes
0answers
18 views

Signal dockerized php-fpm to reopen its logs

When using logrotate with php-fpm, we can signal it to reload its logs: postrotate kill -USR1 "$pid" endscript But when php-fpm is inside a docker container, which has a number of processes, how ...
0
votes
1answer
105 views

nginx mask or convert query string to different url

I want to convert or mask a url with query string to another url. From: https://www.example.com/world/web/?q=hello To: https://www.example.com/world/web/search/hello I have tried everything on ...
0
votes
1answer
184 views

How to enable argon2 for php from centos software collections?

I moved a nextcloud installation from one server to another. On the new server I want to use another version of PHP. The problem is that the passwords are hashed with the argon2 algorithm (in the ...
0
votes
0answers
52 views

lsapi:error - content-length(58821): user_get_body(tmpstackbuf, 16384): read from client failed

I have been trying to figure out this error for months now. I recently moved to the mod_lsapi (litespeed) php handler and with that the information shown in the error log gives me a little more ...
0
votes
1answer
77 views

php 7.4 mysqli pointing to wrong path

I recently updated to php 7.4 from php 7.3 on Debian and it seems apache is pointing mysqli to older path. How do I figure out from where it's causing issue? Error - [Mon Apr 06 07:22:13.384517 ...
0
votes
0answers
28 views

Nginx static website with wordpress blog routing

I have a problem with nginx config and after spending hours of trying different solutions I still can't make it work. I have a root folder /var/www/x where I have my static website placed, lets say ...
0
votes
0answers
20 views

How Connect Webform To Ansible Or BASH/Python, To Start a Server Service

I'm a newbie with servers. My webmin service often stops after I'm done using it, so I have to SSH in to restart it. BUT that could be a security advantage. So I'd like to use an Ansible script (or ...
0
votes
0answers
75 views

PHP environmental variables are null through the web server

I am using docker to create a container with the centOS in which I have a nginx web server. I have a bunch of environmental variables that were declared in the docker-compose file(e.x. APP_ENV=docker)....
0
votes
1answer
164 views

Why does php-fpm status sometimes return 'Server busy' (503)?

Prometheus metrics are periodically retrieved using a tool by accessing the /fpm-status page. Sometimes the tool was not able to access the /fpm-status page because php-fpm responded with 'Server busy....
1
vote
0answers
50 views

How to enable jpeg suppot for php GD in aws linux 2?

I am using php7.4 also installed php-gd using yum install php-gd and also restart my httpd service and also reboot my server. installed libjpeg but still getting Array ( [GD Version] => ...
0
votes
1answer
47 views

How can I compare php extensions installed by version?

I have PHP 7.1 and 7.3 installed on a Centos system. I ran into issues with my application when moving from 7.1 to 7.3 and suspect it's because I'm missing a required extension for 7.3. How can I ...
0
votes
1answer
36 views

Nginx - Redirect to remove index.php from path

I'm trying to deploy a web application for building REST services. The application is built using PHP and you BYO web server and database software. I'm using Nginx and MySQL (MariaDB). I've managed to ...