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
181 views

Sentry with PHP and nginx: errors do not occur in sentry dashboard anymore

I am stuck with my nginx (nginx/1.14.2) configuration for a php (php-7.4) App that would normally send error notifications to sentry. I moved a php application from an apache to nginx server and now ...
0
votes
1answer
48 views

Multipart text/html email from Invision Community not parsing correctly [closed]

First of all, yes I have contacted Invision Community support. Yes, I am a paying user with an active license. We went back and forth for several hours and all they have to say is there's nothing ...
0
votes
1answer
1k 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-...
0
votes
0answers
59 views

Can't get Imagick PHP Extension to load when building PHP from source

I've built PHP 7.4 from source, and installed ImageMagick via yum. When I run convert --version i got Version: ImageMagick 6.9.10-68 Q16 x86_64 2021-02-24 Then I ran pecl install imagick and it says ...
1
vote
1answer
79 views

NGINX - WORDPRESS - PHP-FPM: Query parameters (GET) not passing in subfolders

I have a wordpress site running with NGINX (and Php-fpm) with 4 virtualhosts, everything works fine, except if i want to pass a query string. Look, it works if i do: example.com/phpfile.php?var=123 ...
2
votes
1answer
91 views

Built PHP from source with custom DataDirect ODBC drivers, but can't auto start with systemd

I need to build PHP from source in order to use this customer ODBC drivers. I've followed these inspections: https://www.progress.com/tutorials/odbc/using-php and everything (including the ODBC driver)...
0
votes
0answers
92 views

slow php (php-fpm) (long apache php waiting)

I have an apache with PHP-FPM module, 8 CPU cores. Average CPU all together load is around 75% CPU mainly due MySQL see the screen. It is actually little bit smaller load now than usually. But ...
0
votes
0answers
23 views

What is the correct way to enable PHP extentions, manually or via mods-available?

I am used to enabling PHP extensions by manually adding them into my php.ini file, for example: extension=x.so. But today I learned that one PHP extension failed to load because putting the extension=...
0
votes
1answer
30 views

Need to add older version of IUS repo in order to install specific PHP 7.2 packages

The Issue: Without unnecessary detail, I have two servers that are nearly identical. However one has its yum repos configured such that php 7.2 packages imagick and sodium are available for install, ...
0
votes
1answer
83 views

PHP website not working as expected in NGINX but working in Apache

Hi I just created a link shortening app. But when I try to redirect a shorten link to the full URL which is shared on Facebook it is not working as expected. for example : https://bowa.me/c8443 this ...
0
votes
0answers
60 views

Multiple session ID headers sent by Apache HTTPD serving PHP

Problem I get a multiple equal HTTP headers in responses of a web application. Sometimes it's dozens of replications depending on the script called. SetUp It's a large and very old PHP based ...
0
votes
0answers
43 views

PHP OpCache on Amazon EFS

Looking for some validation of my thought process here. I don't have the stats to hand to back up my claims, but have enough experience with web hosting with and without EFS to be comfortbale in ...
1
vote
1answer
52 views

500 internal error in nginx centos

i'm trying to add a captcha in my wordpress login page. i get 500 internal error in firefox console when inspecting the page. i also have this in my nginx error logs: FastCGI sent in stderr: "PHP ...
1
vote
1answer
477 views

Apache remains on PHP 7 while server versions is php 8

I've just installed php 8 (following https://rpms.remirepo.net/wizard/) on my VPS running CentOS 7. While in the CLI it shows that PHP 8 is available, when I serve a webpage with phpinfo() it still ...
0
votes
0answers
113 views

How to configure Apache and PHP-FPM to support multiple subdomains?

I have an Apache server that will have several subdomains running inside it, eg: www.example.com api.example.com dashboard.example.com customer.example.com I installed Apache 2.4.41 and PHP-FPM 7.4 ...
1
vote
1answer
37 views

Uniform Server cron not executing php script

I'm running Uniform Server Zero XIV and am trying to use the cron to run a php script every 15 minutes. When ran manually, the script does what it is supposed to, which is updating values in a ...
0
votes
0answers
67 views

PHP+Nginx response time too much

I'm running a php-fpm server behind an nginx reverse proxy which is simply serving phpinfo to benchmark the response time. The response time (using postman) for the phpinfo page is around 150ms which ...
0
votes
2answers
59 views

Debian 9 PHP7.4 can't install curl

I already searched answer for this question and checked Bartek Chanda answer, but not working with me. I have debian 9.13 and already done what Bartek Chanda answered, but not working. Still got this ...
1
vote
1answer
30 views

Apache 2.4 PHP 7.4 Include and Require don't include PHP files, but others files types are correctly included

I have a weird and quite difficult to understand problem I have a micro PHP app that has index.php ad a couple of others files *.php that are included in the index.php, let's call the two to be ...
2
votes
1answer
37 views

nginx redirect params to php index in subfolder?

I have a server block to execute PHP files: server { index index.php location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { fastcgi_pass unix:/run/php/php7.3-fpm.sock; ...
0
votes
0answers
73 views

How to fix 400 Bad Request by php coding

Last weekend our server/app got bugged and some of your visitor are now getting Error 400 Bad Request everytime they visit our website. I know this error was caused by malformed cookies and everything ...
0
votes
1answer
64 views

Apache + PHP not showing any formating

What I am going to ask is probably a simple problem but I can't figure out solution. I have installed apache2 on Debian server and updated php to version 7.3. I think that I have made a mistake when ...
0
votes
1answer
57 views

Updating PHP on CentOS 6 - "Error: Package: php-pecl-ncurses"

On a CentOS 6 I am trying to update my PHP from 5.3 to 7.x by following the instructinos at https://www.mysterydata.com/how-to-install-upgrade-to-php-7-4-on-rhel-centos-vestacp/. When I do the final ...
0
votes
2answers
399 views

CentOS 8.3 - How to switch a PHP installation from Remi to AppStream?

Currently running PHP 7.4 from Remi. It was a modular dnf installation that replaced PHP 7.2 AppStream packages back when 7.2 was the newest PHP available from CentOS. In other words, Remi packages ...
0
votes
1answer
28 views

How to redirect search.php?query=test&search=1&s=1 to /query/test

I have tried other things, but I cannnot get it to work, when I go to the main website, (index.php is just a include of search.php) it will send me to this /query/search.php/search.php/search.php/...
-1
votes
1answer
58 views

Adjust server configuration [PHP, Laravel, mysql, nginx] for serve great number of user [duplicate]

I have a Laravel PHP webapp that shows analytics data in Angular frontend to users. User can only show content, plots and tables. I have written 3 laravel commands that hourly download and store data ...
0
votes
0answers
23 views

How to handle abuseip reports? Firewall (ufw) already setup allowing only 443, 6001 tcp

My digital ocean droplet IP address has been reported multiple times on abuseipdb.com. I have already setup firewall (ufw) allowing only basic ports: 443/tcp ALLOW Anywhere ...
0
votes
0answers
44 views

Debian: PHP broken, Apache unable to start: libphp7.2.so dissapeared

I tryed to install php7.2-gd and something was broken in the process. Before that I had Apache and PHP working properly. I installed GD library with this command: apt install php7.2-gd (then removed ...
0
votes
0answers
16 views

Apache2.4: mod_php takes over mod_info

I've been managing Apache servers for years, and I've run into a weird problem I cannot understand: I've enable both mod_php and mod_info (as usual), but a request to /server_info is caught by PHP (...
0
votes
1answer
949 views

stream_socket_client(): SSL operation failed with code 1

I've recently upgraded a server from Ubuntu 16.04 to 20.04 and since the upgrade I've been receiving the following error when try to send mail via SMTP or when trying to connect to an S3 bucket with ...
1
vote
1answer
38 views

PHP processing pages for forms not following line with rest of files

I'm a web developer hobbyist. I'm over 50, never had a true web dev job but like to tinker in my spare time for fun. That said, I have a web site hosted by Bluehost that I wrote with PHP from scratch. ...
-1
votes
2answers
54 views

nginx echo while processing not working but the same server with apache can echo while processing

PHP 8 I'm using the newest NGINX feature un WHM 96.... I can flip switch on or off to have nginx cache everything and it's working well and very fast. **** BUT : when I have a script that does lots of ...
0
votes
1answer
33 views

Need help configuring NGINX to serve both html & php files

I'm really out of luck today. I don't know what it is, but I can't get NGINX to do, what it should do. I want to achieve the following: domain.com shows index.html (/var/www/domain/index.html) domain....
0
votes
1answer
595 views

NGINX downloads PHP files insted of executing

I tried everything and searched everywhere. I'm following this guide: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-20-04 My config file: ...
1
vote
0answers
92 views

php-fpm status page does not display info about Idle processes

I have PHP 5.6 and PHP 7.3 running on my machine. Webserver is Nginx and is using FastCGI (php-fpm). I have setup two php-fpm status pages - one for the www pool of the php-fpm 5.6 and one for the www ...
1
vote
0answers
46 views

PHP on VirtualHost not working but works on default site

I have a apache Server version: Apache/2.4.46 on Amazon Linux 2. PHP is working well on port 443. I added another virtualhost on port 81. PHP does not work on this port. Config: Listen 80 <...
0
votes
0answers
192 views

Permission denied after a git clone

I have another strange behaviour on my server, it is very similar to this one : Very strange AH00035 error Here is the context : I already have an intranet website which works fine. I want to use git ...
0
votes
0answers
31 views

Website availability - resource temporarily unavailable

I maintain a webserver which occasionaly encounters bursty traffic outside of the orginary. I'm talking 500 users a day average load but today was a busy day and we took 35,000 users and 70,000 page ...
-2
votes
2answers
48 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
0answers
242 views

PHP-FPM workers timeout times exceeding configuration limits

We are running server with this configuration: Nginx + FastCGI (PHP-FPM) + PHP 7.3 + MySQL 5.7. However, we experience some issues with long running PHP scripts, so we have setup these restrictions: ...
1
vote
1answer
134 views

Debian 10 PHP not parsing in apache (fresh install)

I know this is an ancient problem with lots of answers but none of the existing solutions seem to be working. This is a fresh install of Debian 10, apache2 has been installed and php (7.3). Apache is ...
1
vote
0answers
96 views

Php-fpm service fails to start on solus. Possibly due to snmp module

I am having some trouble to start the php-fpm service on solus OS. It appears that is is maybe related to the snmp module. Here are some info about the error : ~ $ sudo systemctl status php-fpm Mot de ...
-1
votes
1answer
47 views

What's does the user daemon mean?

I was just checking my VPS. I am using Apache server and I found user daemon is taking 15-30% CPU use User Daemon
1
vote
1answer
94 views

Nginx warning - upstream sent more data

I have a bunch of Nginx + PHP8.0-fpm installed in the north. When crawlers visit a page and the request contains the If-Modified-Since header, but the page has not changed, the site returns the "...
-2
votes
1answer
178 views

Install PHP 7.1 on CentOS 8.3

How to install PHP 7.1 on Centos 8.3? dnf module list php returns PHP packages starting from 7.2 so I guess I'm looking for a workaround.
-1
votes
1answer
757 views

PHP and Nginx on docker, curl get Connection refused in php container

I am working in a local environment with docker. I have an nginx web container and a php container which are in the same network. I build the php container from my own dockerfile (with phpfpm and ...
-1
votes
1answer
502 views

file size exceeded the maximum size permitted phpmyadmin

I am getting following error while uploading file to phpmyadmin: No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP ...
0
votes
1answer
77 views

Why does Apache server return 404 on subfolder, when it was previously working

I just installed some new SSL from GoDaddy on my Apache Ubuntu server. I then restarted via SSH and everything looks good. The root site (a wordpress install) now loads fine with https. However, there ...
0
votes
1answer
42 views

While a process is running manually, it stops after a while in the cron job [duplicate]

I have a PHP script and this script loops thousands of lines. When I run the PHP file manually, this loop of thousands of lines returns successfully. But when a cron job does this, it turns around 143 ...
1
vote
0answers
33 views

Docker container communicate via a specific port oustide of Docker

So i'm currently facing the problem, that I'm not able to talk to a specific port, which is outside of my docker setup. To be exact: As you can see in the docker-compose.yml down below, i'm running ...