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
0 answers
6 views

Fedora mail does not arrive

I use PHP to send mail on Fedora 36. mail($email, $betreff, $content, $header); However the mail does not arrive. What could be the problem?
user avatar
  • 11
0 votes
1 answer
27 views

DEBIAN 11: php cant run sudo commands [closed]

in my server Debian11 (nginx,php8.1-fpm) i run a php script and try to run there a sudo command $output = shell_exec('whoami'); echo $output; result is: www-data if i run: $output = shell_exec('sudo ...
user avatar
0 votes
0 answers
25 views

Apache with variable subdomain in document root, but host and server name as domain

Is it possible in Apache to have multiple subdomains each have their own document root, but report the domain as their host and server name? The use case is using the subdomain the determine which PHP ...
user avatar
-1 votes
0 answers
19 views

PHP intl extension not working with php 8.0

My website needs an intl extension with php8.0. I have checked and found that the PHP intl extension is installed and enabled on the server. The main issue is I have many websites on the one cPanel ...
user avatar
  • 44
0 votes
0 answers
12 views

php-fpm: execution of bash script from php-fpm

server: Debian 11, nginx, php8.1-fpm i want to execute this command from php but is not working, when i run from terminal (root)it works $output = shell_exec('/usr/bin/dos2unix /var/www/script.sh'); ...
user avatar
0 votes
0 answers
15 views

brotli on apache with proxy_fcgi for PHP-FPM is not used

I'm running an apache 2.4.54 with broti enabled. brotli configuration as seen below and loaded before default deflate configuration. $ cat /etc/apache2/mods-available/brotli.conf <IfModule ...
user avatar
  • 101
0 votes
1 answer
16 views

RHEL8 HTTPD php missing "apache 2.0 handler"

How do I install PHP on RHEL8 so that it is using "Server API" "apache 2.0 handler" instead of PHP-FPM? I believe the PHP-FPM is causing issues, and I can't see the modules enabled ...
user avatar
0 votes
0 answers
34 views

Disable usage of PHP-FPM pools on server

I originally setup my client's server to have PHP-FPM pools for each domain. I realize now this was not necessary and I am wondering what steps need to be taken to disable the pool functionality and ...
user avatar
0 votes
2 answers
45 views

How do I install PHP 5.5 on a new version of CentOS or Amazon Linux or Redhat or Ubuntu?

I just joined a new company. I've been asked to build a CI/CD pipeline for a Laravel app. It is very fragile. It was built for PHP 5.5 and it breaks when they've tried to upgrade to 5.6 or 7. They don'...
user avatar
0 votes
0 answers
16 views

How to disable "not found or unable to stat" logging?

The error log of apache2 (with php7.4 enabled) has many entries from script kiddies scanning for vulnerabilities. Is there a setting to prevent this from being logged, while still logging other errors?...
user avatar
  • 331
0 votes
1 answer
27 views

Single Signon best practice for phpMyAdmin across multiple servers

I run a small web development company and we run multiple production servers, each with their own MySQL database server. I'm trying to figure out the best way of giving access to these separate MySQL ...
user avatar
0 votes
1 answer
54 views

PHPMyAdmin with nginx in Docker proxy not working

I have a docker setup with PHP/MySQL and PHPMyAdmin running on nginx webserver I want to create a subdirectory on nginx /phpmyadmin which will proxy to the phpmyadmin container. Everything else should ...
user avatar
0 votes
1 answer
26 views

Apache2 server PHP access to files outside document root

I have a Raspberry Pi that I use to host a web server. I am using apache2 2.4.38, php8.1 and MariaDB 15.1 and I wanted to add a Nextcloud server to it. I am using the web installer version. I already ...
user avatar
0 votes
0 answers
14 views

Http JSON Response of big size is trimmed

I'm running a php laravel backend on a docker swarm stack with some other services (including a reverse proxy). Some of the GET requests of large response size are responded to with a trimmed JSON - ...
user avatar
0 votes
0 answers
27 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....
user avatar
  • 101
0 votes
0 answers
18 views

Cannot connect to FileMaker Server through Wireguard VPN tunnel

I have setup a Wireguard VPN tunnel between a hosted VPS (running Ubuntu 20.0.4) and a FileMaker Server box on my Home LAN. From the VPS in the ping the FMS box via the command line and a php script. ...
user avatar
0 votes
0 answers
47 views

Reason for servers slow response time?

I'm running Apache 2 with PHP 7.4.29 servers on Ubuntu 20.04 on AWS using AWS load balancer and auto scaling group. The servers connect to other AWS resources such as dynamodb, RDS (mysql), memcache ...
user avatar
  • 1,341
0 votes
0 answers
24 views

Redis & HAProxy issue

We just switched one of our PHP projects to use Redis/Haproxy as a solution for storing sessions. The issue we are facing is once in one or two months, the project will randomly lose sessions. We have ...
user avatar
0 votes
0 answers
23 views

snuffleupagus yelling about disabled functions in phpmyadmin setup

What I am working on is a self setup arch with a LAMP stack, onto which I also want to add phpMyAdmin, and it is complaining about some disabled functions. Here is the file after I have commented out ...
user avatar
0 votes
0 answers
14 views

403 Forbidden - Nginx

I set my nginx.conf to my /home because PHPStorm was not editing a file inside /usr/share/nginx/html. However, I have a new problem. When I access a URL via folder it returns a 403 Forbidden But when ...
user avatar
0 votes
0 answers
38 views

Apache2 on Ubuntu EC2 goes down and does not restart

History: We moved a Codeigniter 3 Installation from Bluehost to a T3.2xlarge. That single instance is hosting apache2 and a mysql server as a local database. On Bluehost, the instance was running fine,...
user avatar
0 votes
1 answer
43 views

Why does `apt-get -y install php8.0-dev` installs PHP 8.1

On my ubuntu 22.04, I used the PPA from LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php I ran apt-get -y install php8.0-dev, which required php8.1-phpdbg and it went ahead and installed PHP 8.1 ...
user avatar
  • 21
2 votes
1 answer
351 views

How can I use Ubuntu 22.04 with OpenSSL 3 and PHP sites? Getting errors due to a conflict

I have an Ubuntu 22.04 install and it is using OpenSSL 3. When I put my site on the server, I get this error: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:...
user avatar
0 votes
0 answers
8 views

Server error happens in web browsers content not load after refresh

Please help me when i do refresh my web browser donot attempt to load new content and when i press ctrl + f5 it loads fresh content but after doing it 3 to 4 times. Basically it is very disturbing i ...
user avatar
0 votes
0 answers
19 views

High load and file descriptors but idle cup usage

I have a problem with NFS & PHP. I changed the NFS mount on some of my servers using Ansible, but I forgot to change the NFS mount on this server. After 4-5 days, I saw the system load on this ...
user avatar
0 votes
1 answer
42 views

How to force SSL on Nginx & Varnish

how can i redirect only to https in Nginx and varnish. I use varnish cache in port 80 and Nginx listening on 8080. Works fine in http, but i need to add SSL. my configuration is as follows server { ...
user avatar
  • 1
0 votes
0 answers
20 views

Handler for application/x-httpd-ea-php73 returned invalid result code 70007

I have a dedicated server with hostgator and they had outages a few days ago and since then iv been seeing this error show up in my logs Handler for application/x-httpd-ea-php73 returned invalid ...
user avatar
  • 101
0 votes
0 answers
17 views

OmekaS (php cms) can't copy to a folder, but empty files are created

I am trying to fix a thumbnailer problem on my omekaS (a php cms, that uses laminas framework), I realized that new thumbnails weren’t being generated on my system, and that even forcing them to be ...
user avatar
  • 101
0 votes
0 answers
28 views

Force non-empty MAIL FROM for outgoing email

I am using postfix on a Debian server, primarily to send outgoing email for websites and notifications, and have run into an issue where outgoing email to a certain mailing list provider is rejected ...
user avatar
0 votes
0 answers
11 views

Random unexpected connection errors while fetching data

I am having a really weird problem with my VPS (Centos 7) for the last 2 days. I have an application where I fetch data from dozens of 3rd party websites. For the past 2 years everything was working ...
user avatar
  • 1
0 votes
0 answers
26 views

php files downloading instead of executing nginx

I am working on a project for a school assignment. We have to make a webserver with wordpress on it. There are some stuff we had to change think of changing the user of nginx and mariadb to webuser ...
user avatar
0 votes
0 answers
28 views

NGINX Web server shows index.php but no other subcontents like admin panel

My website loads fine its index.php website https://carpool.domain.com/ I enter user name and password, and gets redirected to url: http://carpool.domain.com/admin_login Nginx will fail showing this: ...
user avatar
0 votes
2 answers
22 views

Add to mysql db instead of restore

*EDIT/UPDATE I have an RPI4 with mysql. I need to collect all the data from the "zm" database, and ADD it to another database of the same name on another server, so NO data on the 2nd server ...
user avatar
  • 13
0 votes
0 answers
28 views

I've set sendmail_path in PHP.ini, and it works fine on the command line, but not when the same script is called from an Apache server?

So I'm trying to do a simple test of some email functions in a PHP (Magento) application, but I'm running into an issue. All I want to do is to store the output from calls to the built-in mail() ...
user avatar
0 votes
1 answer
16 views

Mail is not sent via php mail() on CentOS7 DirecAdmin Exim php fcgi

I spent the whole day trying to fix this problem, so I decided to share. Maybe it will save someone time) Problem: Mail is not sent via php mail(); The Exim log shows nothing. System: CentOS7 ...
user avatar
0 votes
0 answers
18 views

PHP File Permissions and Running HTML Files as PHP

I am running a Linux server (a DV server with Media Temple). It's a pretty standard LAMP setup. I'm running PHP 7.4. I'm using two programs to upload files to the server: Filezilla and a tool called ...
user avatar
  • 1
0 votes
0 answers
25 views

Security Headers X-XSS-Protection issue

Is there any issues coming from adding 'Strict-Transport-Security' and 'X-XSS-Protection' headers ? Header set Strict-Transport-Security "max-age=10886400; Header set X-XSS-Protection "1; ...
user avatar
0 votes
0 answers
17 views

Group Creation Function

I have Created a Linux function that will create developers, my requirement is to take the developer's first name and create a linux user and development environment. It should run something like the ...
user avatar
0 votes
3 answers
45 views

Debian: how to put two versions of libcurl on one system?

I'm trying to migrate two web apps on single server(debian10), both require different versions of php, and both require cURL extensions to work properly. php5.6-curl uses libcurl v3 php8.1-curl uses ...
user avatar
0 votes
0 answers
490 views

Ubuntu 22.04 php8.1-fpm wifth Apache - 403 Forbidden You don't have permission to access this resource

I installed php8.1-fpm on Ubuntu 22.04. In principle, I set everything up, but still "403 Forbidden You do not have permission to access this resource "error message is displayed. The system ...
user avatar
  • 1
0 votes
0 answers
23 views

Access Denied with IAM Update

In my scenario I have created a new policy to grant access to a server in our instance but it doesn't appear to have taken effect. We granted read and list permissions with arn:aws:iam::657644469569:...
user avatar
0 votes
0 answers
32 views

debian phpfmp chroot and imagemagick - NoDecodeDelegateForThisImageFormat / supported formats:0

Friends, I've setup a chroot-jail with nginx and phpfpm 7.4 from packages.sury.org/php as usual (on Debian 5.10.103-1 bullseye). Imagemagick fails: <?php $im=new Imagick(__DIR__ . '/image.png'); ...
user avatar
  • 1
0 votes
0 answers
25 views

Hosting a script from CodeCanyon on my own server. How can the original developer see my script?

I bought a PHP script on CodeCanyon from a well reviewed user and a 5-star script and installed it on my own server with the intention of modifying it for my own use (complies with the license). ...
user avatar
  • 13
0 votes
0 answers
20 views

php config - generate hashed password manually

I've created a php conf file, which include some user / password infos. For testing purposes I've added the password for the database in plain text. Since this can't be a good idea, I want to change ...
user avatar
0 votes
3 answers
35 views

Mariadb legacy support

I have old version of php site, which uses unescaped 'row_number' column number in its sql queries. It seems in the new version of mariadb there has been new function called "row_number()" ...
user avatar
  • 131
0 votes
0 answers
19 views

Wordpress/Woo Commerce site keeps timing out

I have a woocommerce website hosted using AWS Lightsail on the bitnami stack. It's using apache and php-fpm. I use Cloudflare for DNS and some basic caching. The site has been up and running on ...
user avatar
  • 101
0 votes
0 answers
128 views

using virtual subdomains on nginx on localhost laragon server to be dynamic

i have this config file domain.beta.conf server { listen 80; listen 443 ssl; server_name ~^(www\.)?(?<version>(.+\.))?domain.beta$ domain.beta root "X:/xx/www/domain" ...
user avatar
0 votes
1 answer
45 views

Forward HTTP (or TCP) request through NGINX using subdomain to a specific port

I want to expose a local web server through a remote webs server. The remote host has already an Nginx and a web application (webmail). The remote server works as a gateway for the local webserver who'...
user avatar
0 votes
0 answers
14 views

Running PHP application with plugin-support

I've a PHP application that is running fine in Kubernetes, except one scenario. The "problem" is that the application can be extended using plugin. In this case, we're simply adding the ...
user avatar
  • 123
0 votes
0 answers
46 views

I need help about apache AWS server error

Here is my error log: [Sat Apr 09 00:00:02.545833 2022] [ssl:warn] [pid 1078:tid 139965531106176] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name ...
user avatar

1
2 3 4 5
155