Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

0
votes
0answers
10 views

Mutt or Sendmail programmatic rich body emails with attachments

We are a web service and need to allow our paying users to send email with our domain in the 'From' headers. We already have Sendmail on our Red Hat servers which we can allow for email sending. SMTP ...
1
vote
1answer
9 views

PHP 7.2 session path does not change on Windows Server 2016

I tried to changed the session path for PHP 7.2 on a Windows Server 2016 but the phpinfo shows only the default path to the windows temp folder. PHP 7.2 was installed by the webplatform installer. ...
0
votes
0answers
31 views

High CPU Usage on Ubuntu 18.04 Apache [closed]

Screenshot of HTOP My server's CPU Usage immediately spike up every time the server is up. What could be the cause of this problem? This question is set on hold because it's too board. May I know ...
-2
votes
1answer
29 views

Centos 7 curl HTTPS error (1)

I start listing my specs: CentOS Linux release 7.5.1804 (Core) # curl -V curl 7.61.1 (x86_64-pc-linux-gnu) libcurl/7.61.1 Release-Date: 2018-09-05 Protocols: dict file ftp gopher http imap pop3 rtsp ...
0
votes
0answers
24 views

how to have index.php on root and subdirectory with nginx

I have two index.php files that I want to serve on my nginx server. One of them is in the root directory and the other one is in a subdirectory under root. The root one works just fine but nginx only ...
0
votes
3answers
95 views

nginx downloads php files instead of rendering them

I found a similar question here: https://stackoverflow.com/questions/25591040/nginx-serves-php-files-as-downloads-instead-of-executing-them But unfortunately the answer there doesn't help me. So here ...
0
votes
0answers
14 views

'error_prepend_string' and 'error_append_string' ignored in PHP 7 (with display_errors = On)?

Am I missing something? Here is part of my php.ini file: error_reporting = E_ALL display_errors = On html_errors = Off error_prepend_string = "<div style=""background-color:red;color:white"">" ...
2
votes
2answers
49 views

How to set date.timezone and what is the correct place to do it

(I'm trying to deploy an open source php project to nginx. The project itself does not matter.) I need to set date.timezone to my local timezone because the project uses a global setting. I found a ...
-1
votes
1answer
45 views

PHP.ini custom session.save_path Permission denied

I use Centos 7 (latest update) Apache 2.4.6 PHP 7.2 I would like to change the directory where sessions stored on the server, the default directory is /var/lib/php/session/, I can use this ...
0
votes
1answer
12 views

IIS10 PHP 7.04 pass through and show everything

I'm using internet information server 10,and I have an error in php. I can't debug using "echo", because IIS10 cancel all the html render if an error has been found. PHP.ini: cgifix_pathinfo=1 ...
0
votes
1answer
16 views

HTTP Error 500.0 - Internal Server Error An unknown FastCGI error occured

I am trying to make PHP 7.2.9 run with IIS7 on my Windows 7 Service Pack 1 OS and I keep getting the following error whenever I try to run http://localhost/phpinfo.php. I can see the IIS running with ...
0
votes
0answers
21 views

How to install actual php7's fast-cgi for apache2

Following a couple of tutorials to achieve the main goal -setting up PHP-FPM on Ubuntu 16 - I also had to install the FastCgi-Module for Apache 2.4.18 with apt-get install libapache2-mod-fastcgi. ...
-1
votes
1answer
22 views

Will apt-get upgrade modify symlinks? For example libphp7 symlinked instead of libphp5 under /etc/alternatives

I performed sudo apt-get upgrade. $ sudo apt-get upgrade After the upgrade, I noticed some php 5.7 files and folders in the etc directory For example: I saw /usr/bin/php7.1 and /etc/php/7.0, 7.1, 7....
0
votes
2answers
98 views

Install multiple PHP on CentOS 6.10

I have PHP 7.0 on my VPS with CentOS 6.10 and there is an application that needs PHP 7.1 and above. Also, there's a separate application that uses a php function that is deprecated in PHP 7.1, so I ...
0
votes
1answer
89 views

CentOS 7 mysqli works on php apache but not on php-cli

I have php7.2 installed(from remi repository) in CentOS 7.5. I want to access mysqli from command line php. When trying, it shows the error: Call to undefined function mysqli_connect() The php ...
0
votes
1answer
27 views

Can't upload larger files to server

I have a Ubuntu 16.04 server with apache 2.4 and php 7.1. The php.ini has the following settings: max_file_uploads 20 memory_limit 512M post_max_size 256M upload_max_filesize 128M Folder ...
0
votes
0answers
51 views

Laravel app usages more than 90% CPU resources for only 100 concurrent users

I have migrated the existing application from core php to laravel framework. But the laravel application usage more than 90% cpu for the 100 concurrent users but the same application developed in core ...
0
votes
0answers
32 views

PHP for redis not loading

Trying to get REDIS client installed correctly for use on a debian linux install. I installed redis client with PECL. When I run PHP -m from the command line it shows that the redis client is loaded ...
-1
votes
1answer
45 views

Redirect Incoming Request to Specific Servers Based on Incoming IP Address

Load Balancing: My question is related to this but provides very little info: How to redirect to different servers based on login username? I have three (3) cloud servers at the same data center. The ...
0
votes
1answer
17 views

PHP7 extensions aren't reading correctly from config file

I'm setting up a WordPress installation on my Windows server. I have an IIS site set up to look at the correct folder. Right now, in the folder is a php_info file so that I can see which PHP is ...
2
votes
2answers
556 views

PHP 7.2.8 PDO Fails to Connect to MySQL 8.0.12 (GA) in AWS EC2 LEMP Stack

I'm testing a new LEMP webserver built with Ubuntu Server 18.04 LTS, NGINX 1.14, PHP 7.2.8, and MySQL 8.0.12. It is an AWS EC2 instance using the official Canonical AMI. Web and PHP work as intended ...
0
votes
0answers
9 views

php takes load of resources loading php.ini [duplicate]

I have weird issue in my server. php takes a lot of resources when trying to open php.ini (CPU 197%) the php process is triggered by apache when apache trying to load configuration files (i.e. ...
0
votes
0answers
277 views

PHP - Ubuntu 18.04: maximum upload limit is always 10Mo

I have a Moodle 3.5 (based on php) website and I want to increase the size of files I can upload. I updated the values of php.ini serttings file but when I try to upload any file bigger then 10Mo I ...
0
votes
1answer
30 views

Raised PHP7.0-fpm capacity, still overloads

I'm at a loss here. I run a few dozen servers with all different amounts of traffic. As the traffic increased over time, some servers started crashing (502/503 errors) and I figured it was due the php ...
0
votes
0answers
46 views

MSSQL Integration RHEL with Apache 2 and PHP Version 7.0.30

This was working correctly until my client decided to yum update everything without asking me. I've installed sqlsrv.so and pdo_sqlsrv.so to /etc/php.d/ PHP -m shows both modules loaded as does ...
0
votes
0answers
34 views

Windows apache service cannot find PHP modules, while httpd can

I'm installing apache on a Windows environment and have gotten httpd.exe installed, and I have set up apache as a service. When I run httpd.exe I'm getting no problems, but when I use net start apache,...
2
votes
1answer
105 views

Servers crash with 3000 concurrent clients - how to config it right? PHP & Apache

I've 4 web servers, 2 database servers (read & write), Redis and a load balancer. I'm using PHP 7.0 & Apache2 & MySQL 5.7, however when I do load tests with 3000 users which surf at the ...
0
votes
0answers
160 views

Apache 2.4 + PHP - mod_php not installed

I am building a new LAMP server on a fresh Centos 7 box. I installed PHP 7.2 then Apache 2. mod_php was not automatically installed. Do you have to install Apache first and then PHP to ensure this ...
0
votes
1answer
512 views

Enabling sqlite3 in php7

I want to enable sqlite3 in php.ini but when I try to load a PHP script this error happens: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/sqlite.so' - /usr/lib/php/...
1
vote
0answers
62 views

php.net discourages the use of threaded MPM in production with Apache 2

php.net discourages the use of threaded MPM in production with Apache 2. Use the prefork MPM, which is the default MPM with Apache 2.0 and 2.2. It doesn't mention anything about apache 2.4, I ...
1
vote
1answer
40 views

Apache2 php_admin_flag opcache.enable on is ignored

I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server. When I try to enable opcache in a vhost the changed setting isn't applied. If I enable opcache globally in the php.ini everything is ...
0
votes
0answers
304 views

How to install PDO dblib (mssql) on PHP 7.1 on a directadmin server (CentOS)

On a directadmin CentOS server I'm running PHP 7.1, and I'm trying to connect to a remote mssql server. I'm missing PDO dblib extension. How can I install it?
1
vote
1answer
123 views

PHP is_writable always false on NFS

Sorry, I'm not sure, if this is the correct forum because I don't know the cause for the issue, I'm facing. I installed NextCloud on a Raspbian (Stretch 9) and moved the data directory to a mounted ...
0
votes
1answer
483 views

PHP's MemcacheD extension DLL for Windows

On my PHP 5.6 site I have been using the Memcache extension to interface with the memcached daemon. As the extension has a matching DLL, it meant I could deploy it on my Windows dev machine as well ...
0
votes
2answers
154 views

How to reduce server load with Apache PHP

Our Linode server load has increased in the last month running CentOS 7. I have upgraded to MariaDB 10.3 with PHP 7.2 now on CentOS 7.5 with 16GB of ram and 6 cores. MariaDB also on the server using ...
0
votes
1answer
39 views

apache php7 session.save_path always point to /path

I configured correctly in /etc/php/7.0/apache2/php.ini session.save_path = "/tmp/N;MODE;/" But I am always getting the same error Warning: session_start(): open(/path/...
0
votes
1answer
242 views

Drupal 8 + nginx + php 7 Image style: could not create file or folder

I'm running Drupal 8.5.3 on Centos7 with Nginx + PHP7 + PHP 7 FPM After successfully running Drupal installation, i want add a article but image thumbnai return 404 error. The image upload to sites/...
0
votes
1answer
65 views

setting S3 object to public automatically

I have an amazon workmail email address setup to automatically forward email to an s3 bucket. I then have a php file that grabs the raw email file from the s3 bucket and then delete it (every 2 ...
0
votes
1answer
16 views

Debian 9 / PHP 7.1.13 - Scripts occasionally not terminating

I've been experiencing a strange issue on Debian 9 with PHP 7.1.13. We have a number of PHP scripts setup to run via a crontab at various intervals between every 1 to 15 mins. Most of the time these ...
0
votes
0answers
94 views

Call to undefined function PhpMimeMailParser\\mailparse_msg_create()

I have a Apache2 php7.0 based server and I thought i installed php mailparse properly however i am getting an error in my apache2 error.log file that says PHP Fatal error: Uncaught Error: Call to ...
-1
votes
3answers
181 views

Finding a vulnerability in PHP website

I'm hosting a Wordpress site that got hacked. Not a big deal, usual malicious favicon_ea9b28.ico file containing PHP code. The problem is, in this case, that after I remove the bad scripts and clean ...
0
votes
1answer
472 views

Unable to Install PHPMyAdmin on CentOS 6

I am attempting to update all my software on my CentOS 6 Server. I have updated from PHP 5.6 to PHP 7.2 and now trying to install PHPMyAdmin 4.8 but I am getting an error when running the yum command. ...
0
votes
0answers
34 views

Can't upgrade PHP 5.5.32 to PHP 7.x on CentOS 7

recently I've got a VPS with CentOS 7 installed and some pre-installed packages such as LAMP stack. I removed httpd and installed nginx successfully but I have not been able to remove/update PHP from ...
0
votes
1answer
61 views

Apache + mod_fcgid does not spawn/persist processes

I have apache 2.2 running with mod_fcgid installed, but each request seems to spawn a new process instead of having a pool of workers. Phpinfo confirms fastcgi is working: But no worker processes, a ...
1
vote
1answer
2k views

How to downgrade PHP from 7.2 to 7.0

I am running CentOS 7.4 and HTTP 2.4.6 I installed PHP 7.2.3 I know need to downgrade to 7.0 (reason is software company initially told me to install latest/stable for PHP and now they tell me 7.2 ...
0
votes
1answer
861 views

How to solve CentOS7 and “yum install php-7.2.3 ” dependency issues upgrading to PHP 7.2.3

Here is what 'yum install php-7.2.3' returns: [root@prv-apps conf.d]# yum install php-7.2.3 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.vtti.vt....
0
votes
0answers
492 views

How to solve CentOS 7 dependency problems when upgrading to PHP 7.2.3

I am trying to upgrade PHP form 5.4.16 to 7.2.3 on a CentOS 7.4 server running HTTP 2.4.6. I get these dependency alerts on this command: yum install php70w php70w-fpm php70w-cli php70w-common ...
3
votes
2answers
3k views

switch apache from prefork to event in Ubuntu 16, get php 7 working

Apache was running slow in production. After searching for answers for some time, I finally went to #apache IRC channel and the pros had me check the apache mode with this command: sudo apachectl -V ...
-1
votes
1answer
192 views

how to protect from hotlink in nginx

I need to protect from hotlinks in my php site.? how Can i achieve this ?? Iam using nginx as webserver .. If I try to view site.com/uploads/image.jpg without login I can able to see images in ...
6
votes
1answer
1k views

Apache 2.4 log PHP command 200 success, but what is it doing? POST /?q=die('z!a'.'x'); etc

I am running a CentOS 7.x VPS with Apache 2.4.29 and PHP 7.0.28 and I started seeing the following in my logs. I have php.ini secured as best as I can from articles online for a while now, but I am ...