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

/var/lib/mysql taking up large amount of space

I have a very simple drupal project that I launched onto an AWS EC2 instance with 8GB of storage. However, something strange has happened and my EC2 ran out of storage. My mysql databases don't even ...
0
votes
0answers
12 views

Could someone guide me through the use of symlinks in nginx for php modules?

so I'm running an ubuntu 20.04 server, with Nginx on it. After a difficult week, I managed to make it run normally, including php through php-fpm. My problem is that I don't want hundreds of folders ...
-1
votes
0answers
15 views

phpdox fail trying make the documentation of my php project. I develop php 8 Solutions on macos bigsur (11.5.1) [closed]

I am executing phpdox inside the xml directory: /Users/myusername/Sites/myproject/admin/doc/ My php files: /Users/myusername/Sites/myproject/ The xml file seems to be right. If you need more than the ...
0
votes
0answers
19 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
0answers
25 views

Apache with PHP FPM and requests spikes, how to set optimal configuration?

I was lucky enough that my website went viral, and the server of course wasn't ready for it. Unfortunately my setup is quite bad, a single server with Apache, PHP (Laravel), Mongodb and redis. The ...
0
votes
0answers
19 views

High CPU usage and random connection errors on shared CPanel reseller hosting [closed]

So, I had to change my webhosting provider because of a massive letdown from my last provider. But on the new host, my wordpress websites seem to be using too much RAM and CPU, which appears to be ...
0
votes
0answers
8 views

Strange issue with Pthreads - Why is there a delay in each new Thread Submit when opcache.enable_cli is disabled?

So for context, I am running PHP-FPM 7.4 on Ubuntu and I compiled it with ZTS. Then added the extensions Pthreads and ZSTD . I am running a few hundred tasks and I need them to spawn new php processes ...
1
vote
1answer
34 views

Cannot install lsphp74-imagick: unmet dependencies

I have an Ubuntu 20.04 LTS instance running on Amazon Lightsail and I have trouble installing lsphp74-imagick. $ sudo apt install lsphp74-imagick Response: The following packages have unmet ...
0
votes
0answers
17 views

Why is my PHP CLI Curl version different from curl and libcurl even if I try to force it with --with-curl flag during compilation?

I have compiled PHP after compiling Curl 7.73 . Curl -v shows me it's 7.73, and if I go to my web server and check phpinfo() output it's also 7.73 . However, the compiled php cli is showing me that it'...
0
votes
1answer
66 views

Varnish doesn't open backend connection

How can I connect Varnish container with PHP-FPM + NGINX containers? Docker started correctly, site works but backendopen logs are empty. Backend is healthy (returns HTTP 200 status). varnishlog -g ...
0
votes
0answers
16 views

bitnami server not run php file

I am learring web server. I install wordpress with bitnami apache2. when I enter url in web browser file php not working. Any this web root folder. I dont know why its not working. Please help thanks!...
0
votes
0answers
7 views

Use .procmailrc and php to write each individual message inside a file [migrated]

I am currently trying to setup my redhat server so that it creates an individual file containing each email I receive at its configured address. For now, I managed to do the following : Receive ...
0
votes
1answer
69 views

What could cause blocked requests in IIS?

I'm using IIS on Windows Server 2016 with MySQL and PHP on two almost identical servers. I've recently noticed a slowdown on one of my two servers but it happens only when my site tries to execute ...
0
votes
1answer
32 views

Apache2 : 2 php versions in the same VHOST

I am migrating my app from PHP 5.6 to php 8.0 by having a front controller redirecting to my legacy app or my new app depending on the uri. I tried with alias and it works but I need to keep the exact ...
0
votes
1answer
21 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) ...
2
votes
0answers
17 views

Mac OsX (Vagrant 2.2.18) DNS lookup 5s latency

On a regular VM - Vagrant Box (LAMP) on Mac OS, while making a trivial call, there is a 5 Seconds DNS Lookup delay. Is there any reason for it or solution? Already installed BerlinVagrant/vagrant-dns ...
3
votes
2answers
64 views

How to increase PHP file size limits on Nginx?

When I upload the file in phpmyadmin this problem appears 413 Request Entity Too Large my configure php.ini post_max_size = 100M upload_max_filesize = 100M memory_limit = 256M I have NGINX server ...
-3
votes
0answers
16 views

Wordpress - update user email with function [migrated]

I am trying to update the user email in wordress with a function triggered by a rsvp event. The function that I wrote in functions.php is: add_action('eme_insert_rsvp_action','...
1
vote
1answer
41 views

Can't install mailparse on Ubuntu 20.04

If it weren't for the fact I had an older mailparse.so lying around on my development machine, I'd be completely without access to my own webmail app now. root@parakeet:/home/rene/data1/htdocs/nicer....
1
vote
1answer
159 views

How to cache PHP on nginx?

Say that I am creating a news site on example.com, and now I have example.com/latest.php, this is a script that does a lot of query, and I want to improve performance. How can I configure php/nginx, ...
0
votes
0answers
21 views

Can Premature end of script headers be properly debugged? (getting the real error message?)

We are getting [Wed Aug 25 15:06:05.484053 2021] [proxy_fcgi:error] [pid 24792:tid 140550620227328] [client xxxx:40224] Premature end of script headers: index.php, referer: https://www.example.com/ [...
0
votes
3answers
80 views

What information in phpinfo is sensitive?

I was told that phpinfo contains sensitive data so you should delete it in production environment. But this afternoon I took a good look at it and found nothing interesting. So here's my question. ...
0
votes
0answers
53 views

Apache2 Segmentation Fault after upgrading to PHP8.0 Ubuntu 20

I recently upgraded a production server from PHP 7.4 to PHP 8.0 (this is using the ondrej packages). As a reference, I'm using Ubuntu 20.04.3, apache2.4.46 and now PHP8.0. After about 18 hours, the ...
0
votes
1answer
148 views

VPS with Ubuntu 18.04 NGINX Downloads PHP FILE

I have a VPS with: Ubuntu 18.04 Nginx Php7.2-fpm The server runs Ruby on rails project as homeurl (example.com) and wordpress as directory (example.com/blog) . First the VPS was configured with ...
0
votes
2answers
61 views

How to block potential attackers on my server

To keep it brief and simple, I will go straight to the point. It seems a bunch of ip adresses are trying to access files that have potential of containing sensitive server information on my website ...
1
vote
1answer
131 views

PHP 7.4 on Ubuntu 18.04 (bionic)

I'm having trouble getting PHP 7.4 to install on 18.04 now, as it seems to depend on a version of libc6 that is not available on 18.04. I have no tried building from source as I would like to avoid ...
1
vote
1answer
24 views

Crontab - How to verify a PHP script Runs Successfully or not in a Cronjob Shell Script?

I have below crontab in the system (Centos 7.9), However i am unable to verify if this runs correctly or not, i.e if the crontab finds the PHP enr. variables or if the crontab has executed correctly ...
0
votes
0answers
34 views

PhpStorm Laravel trying to connect to MySQL database throws java.net.ConnectException: Connection refused: connect

I am trying to set up a laravel project in phpstorm but fail at connecting to a mysql database. These are the steps I've taken so far: download and install composer, vagrant and virtualbox create ...
0
votes
1answer
36 views

Mysqli access denied , using UNIX socket [duplicate]

I am trying to learn PHP, and I am setting up the database connection. On Mysql Workbench, I created a database called php, and created a table. Then I created the account "sam"@"...
0
votes
1answer
28 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 ...
0
votes
0answers
35 views

Handling simultaneous requests in Apache 2 and php-fpm

We have a Debian 10 server with Apache2 and PHP-FPM installed. The problem is that when I try to process multiple requests simultaneously from one client, server doesn't handle it correctly. For ...
1
vote
1answer
48 views

.htaccess Remove first php url parameter if second exist

This is my .htaccess code: RewriteCond %{REQUEST_URI} !^/pages/ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)(/([^/]+))? pages.php?PAGE=$1&LINK=$...
0
votes
1answer
35 views

Why does IIS PHP not recognize PhpRedis when it exists and is added correctly?

Before you read: PHP not loading extensions does not answer my question because I do not have Apache. I have IIS. MySQL extension of PHP not working does not answer my question because the files have ...
0
votes
1answer
42 views

How to install PHP on CentOS has preinstalled Apache HTTPD?

I'm using CentOS 7. I wanted to install PHP 7 so I used remi-php (latest PHP version of yum is 5.4). Since the HTTPD version of yum is too old, I compiled the latest HTTPD version from the source code....
0
votes
0answers
36 views

Errors blocking WP admin access and when attempting debugging in host Google Cloud Platform

Wordpress VM instance site in Google Cloud Platform is showing an error message which links to debug information, tried the steps in SDK from a tutorial, but not working, not experienced enough to ...
1
vote
0answers
81 views

Large tmp file transfer hangs in nginx php-fpm proxy

We have a server that's running a WordPress site with a serverpilot-installed nginx stack on Ubuntu 20 LTS. Very large uploads appear to get stuck in the handoff between the nginx proxy and PHP, and I ...
0
votes
0answers
26 views

Mail server set up for inbound mail on a subdomain to trigger php script

I'm trying to set my company server up to be able to receive emails to a certain account on a subdomain of our main domain i.e.: linuxuser@subdomain.domain.com Those incoming mailers should trigger a ...
0
votes
0answers
111 views

“No input file specified” - Laravel project on CentOS

I've have VM with CentOS installed where I want to host Laravel project. I've put it on /var/www/html/project But when I access via URL of this project like 127.0.0.1/project I get tree of document. ...
0
votes
0answers
103 views

How to correctly enable Imagick in PHP-FPM on Ubuntu 20.04 and Apache

I have PHP-FPM setup on my Ubuntu 20.04 server and have installed Imagick, but I cannot get it to be recognized by PHP 7.4. I tried following these steps, but step one returns the following error in ...
1
vote
1answer
62 views

How to enable HTTPS for my marketplace

I'm building a marketplace platform that enables many merchants to sell to their customers. At the moment I serve stores on my own domain like so https://storeA.mydomain.com or https://storeB.mydomain....
0
votes
0answers
13 views

Can't Get ProxyPass User IP Address

JAVASCRIPT websocket = new WebSocket("wss://site.com/game_play/"); .... PHP $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); .... $size=socket_recvfrom($socket_new,$input,65535,0,$...
0
votes
1answer
34 views

Not able to install drivers for sql server on CENTOS

I am new at Linux OS but successfully installed apache, PHPMyAdmin, and MariaDB. All works fine, but I have an issue and am not able to resolve it. My issue is establishing a connection to the SQL ...
0
votes
0answers
34 views

Apache2 timeout

For several weeks now, I've been experiencing timeout problems with Apache2 making my application inacessible. It's an e-commerce website developed in PHP (stack : PHP7.2-FPM, PostgreSQL, Apache2.4.25,...
2
votes
1answer
101 views

used colons for url htaccess http://localhost/1:1

I have a problem with the colons used in url this my url http://localhost/1:1 this my htaccess RewriteEngine On RewriteRule ^/(.*):(.*) index.php/$1:$2 this error show Forbidden You don't have ...
1
vote
1answer
338 views

Not able to install PECL for php 7.3 in ubuntu 20.04 LTS

I have a laravel project that uses firebase and I am not able to install PECL for php7.3. I tried this https://cloud.google.com/php/grpc. When I tried the following command sudo apt-get install ...
2
votes
1answer
86 views

Too many redirected error with Nginx on PHP

I have 2 node apps running on different ports and a PHP app. When I visit the node apps I get no errors but if I try to go to the PHP app (on /sourcebans) I get This site redirected you too many times ...
2
votes
0answers
51 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 ...
0
votes
1answer
59 views

How to remove apcu and memcached from centos?

I've always installed apcu and memcached on my server, but I'm not sure how useful they are. Mostly 2-3 pages per visit are visited on my sites. And I'm not even sure if having them is a good thing or ...
0
votes
0answers
48 views

install multple php version on centos 8

I have a server running on centos 8 PHP 7 is installed already and I'm new to centos 8. I used to use centos 7 and I use the 2 PHP versions 7 and 5 I am using the php5 for some older scripts until I ...
0
votes
0answers
30 views

How to disable caching in Google Cloud (php, magento, app.yaml?)

i'm new with google cloud and here is my problem: I have a magento/bitnami installation in gcc and i have to run some php files for updating the product database After the execution of a php file, the ...

1
2 3 4 5
152