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
1
vote
1answer
61 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
19 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
0answers
12 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 ...
-6
votes
0answers
30 views

Problems with error 500 and here's my log file [closed]

127.0.0.1 - - [05/Jun/2021:17:09:22 +0200] "GET / HTTP/1.1" 500 20 127.0.0.1 - - [05/Jun/2021:17:09:24 +0200] "GET /index.php HTTP/1.1" 500 20 127.0.0.1 - - [05/Jun/2021:17:09:26 +...
0
votes
0answers
32 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
36 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
16 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
27 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; ...
-1
votes
0answers
12 views

Error message in API request [closed]

I'm trying to use this free language detection API for a small personal project, since it is the only one I could find which gives me a free language detection endpoint. Reading the documentation, it ...
0
votes
0answers
17 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
62 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
26 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
115 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
27 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
0answers
75 views

nginx error! The page you are looking for is temporarily unavailable. Please try again later

I have tried to run WordPress and PHP files on my Nginx server with 127.0.0.1/hello.php (I am new in the Nginx). Unfortunately, I get an error: nginx error! The page you are looking for is temporarily ...
-1
votes
1answer
38 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 ...
2
votes
0answers
13 views

Is it possible to use x-Sendfiles in a cPanel shared account? [closed]

I work as a php web developer, but I have to say, I don't have a lot of knowledge on servers configuration and that stuff. I am developing a project on a Bluehost shared account server (cPanel), and I ...
0
votes
0answers
22 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
21 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
14 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
170 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
37 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
29 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
29 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
592 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: ...
0
votes
0answers
9 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
33 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
45 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
22 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
42 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
38 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
0answers
42 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
48 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
35 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
47 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
76 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
315 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
66 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
33 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
41 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
24 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 ...
0
votes
0answers
30 views

asterisk AGI PHP Ignored

I have written exten= 6001,1,AGI(pk.php) content is : (and i tried other samples) #!/usr/bin/php -q <php? set_time_limit(30); require('include/phpagi.php'); error_reporting(E_ALL); $agi = ...
-1
votes
1answer
21 views

How two different applications should get served using one single apache2 virtualhost configuration

Just for assumption here testsite.com which is my php application and testsite.com/project is python application I have following settings in my apache site config file /etc/apache2/sites-available/...
0
votes
0answers
84 views

nginx return file not found with nginx-proxy

I'm using nginx-proxy to run multiple sites/app on a single nginx instance. So far, I was able to run a static site and a nodejs application without problems but I'm facing an issue with a php ...
-3
votes
2answers
73 views

PHP files displayed as plain text in browser [duplicate]

I have an ubuntu server installed with apache2 service. but when I run the index.php file its displays as it is. it means .php files are not executing
0
votes
0answers
25 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 ...
-2
votes
1answer
43 views

PHP 7.4 with last version of sqlite3

CentOS8 is distributed with sqlite3 version 3.26. I would like to build a php 7.4 RPM with the version 3.35 of sqlite3. Do you any advice to do so ?
0
votes
2answers
80 views

Is the ppa:ondrej/php repository safe?

I installed the ppa:ondrej/php repository for php and performed an apt-get upgrade. Little did I know it had a lot of libraries packages installed that I have no idea about, so I was wondering if they ...
0
votes
1answer
255 views

Getting libssl abd libcrypto conflict warning while compiling php on RHEL 7.8

I m getting following warning messages while compiling php on RHEL7.8 I am able to successfully compile and install php but I am not sure what will be the side effect of these warnings. Is there any ...
0
votes
0answers
48 views

Php send mail from Cron (postfix + sendmail)

I have a PHP script that I run from cron. I never get emails. maillog: postfix/sendmail[2223187]: fatal: execv /usr/libexec/postfix/smtpd: Permission denied Command-line: * * * * * root /usr/bin/php /...

1
2 3 4 5
151