Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

Filter by
Sorted by
Tagged with
0
votes
2answers
33 views

PHP files displayed as text

When I want to execute a php file it's displayed as text in my browser. I have a VPS at Hostinger I installed Ubuntu 18.04 with Webmin and LAMP(installed automatically). I checked the installation ...
-1
votes
0answers
19 views

Upgrade from PHP 7.2 to PHP 7.3. failed on Ubuntu 16.04

I’ve tried to make that upgrade, but php -v shows ver. 7.2 and nothing works (get Error in browser when I’m trying to open the site that I host locally). Then I re-enable PHP 7.2. and everything works ...
0
votes
0answers
29 views

Where can I download a version of the xdebug.so file for php 7.3.11?

I would like to enable xdebug for php 7.3, but in the Ampps app there is no extension in the package. And as far as I know it is a ".so" extension. It has to be for macOsx. It does not exist in ...
0
votes
0answers
29 views

Schannel connect / MS SQL Server 2014 SP 3 / Win 2008 R2 / PHP sqlsrv_connect -> TLS Error

I have updated from Ubuntu 19.10 to 20.04 and all had gone well other than the following issue, possibly caused by 20.04 requiring TLS 1.2(?). I have updated MS SQL to the latest service pack with ...
0
votes
1answer
28 views

Install php extension for php 7.3 on centos 6

I have used, yum install php-pecl-zip Im getting the following error, Loaded plugins: fastestmirror, replace Setting up Install Process Loading mirror speeds from cached hostfile * base: centos....
0
votes
0answers
35 views

Wordpress website hosted on nginx ubuntu isn't loading anymore

I just found out the Wordpress website isn't running anymore. When opening example.in, it simply shows the text Error establishing a database connection. The wp website is the folder /var/www/...
0
votes
1answer
25 views

crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash function

I'm getting the following password error. I have PHP 7.2 variant(to php version 5.5 does not appear to me this problem ), the following code : function make_key($length) { $valid_chars = '...
0
votes
0answers
30 views

PHP not loading specific extension if relative path is specified

I have a specific extension that won't load if I specific a relative path in the extension_dir parameter. If I specify an absolute path it gets loaded. I can't use absolute path because I often need ...
0
votes
0answers
35 views

continous session error messages on fresh cacti 1.2.12 install

I've just installed cacti-1.2.12 from source on a Centos 8. After completed the installation, always that I change among tabs, cacti logs show: 2020-05-07 19:28:17 - CMDPHP PHP ERROR WARNING ...
1
vote
1answer
48 views

Apache2 Error — .htaccess: No comments are allowed here

Tonight I upgraded my VPS from Ubuntu 16.04 LTS to Ubuntu 18.04 LTS. Everything worked as expected, had a little cleanup on php aisle 5.6 and some stocking shelves on php aisle 7.4. Apache restarted ...
0
votes
0answers
35 views

Apache logs HTTP 408 error, client seems to lose PHP session

I'm struggling with a strange issue that "logs out" users and seems to happen about ten times a day. The application is an old PHP project. Clients log in; a PHP session is established. Sometimes if ...
0
votes
0answers
12 views

debian 9 linux is not loading my htaccess mod re-write rules

I have been struggling past 2 days trying to make a rewrite rule for my server it used to work great until I installed the SSL the SSL works well but it looks like the apache is not enabled because ...
0
votes
0answers
30 views

php and ssl on ubuntu 18.04

When running $fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30); I get a 500 internal server error and it fails completely. When running $fp = fsockopen ('https://www.sandbox....
0
votes
1answer
63 views

How to enable argon2 for php from centos software collections?

I moved a nextcloud installation from one server to another. On the new server I want to use another version of PHP. The problem is that the passwords are hashed with the argon2 algorithm (in the ...
0
votes
1answer
44 views

php 7.4 mysqli pointing to wrong path

I recently updated to php 7.4 from php 7.3 on Debian and it seems apache is pointing mysqli to older path. How do I figure out from where it's causing issue? Error - [Mon Apr 06 07:22:13.384517 ...
0
votes
0answers
22 views

disable php warning in php.ini

how can i disabled those warnings on php 7.3 i have tried on php.ini error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED display_errors = Off also i have tested error_reporting = Off but ...
0
votes
1answer
124 views

Constant problems with php-fpm, CPU usage 100% non-stop (No visitors even)

We are running two servers one for the application and one for the DB and some other software to keep the load off from the application's server, we are running CentOS and the latest version of PHP (7....
0
votes
1answer
38 views

Adjust pm.start_servers, or pm.min/max_spare_servers

Due to an upcoming event, we're expecting high traffic (about 2000 simultaneous users) for several weeks on our Magento2 powered e-commerce website running on Ubuntu, NGINX and PHP7.1-fpm. Since our ...
0
votes
0answers
16 views

PHP FPM sometimes idle

I have a server with NGINX 1.17.9 and PHP 7.3.15. Sometimes it's impossible to complete a request. Last 3 months, there was no problem, but last 2 days I had to restart FPM to be able to connect again....
0
votes
0answers
35 views

STDERR is undefined in php-fpm 7.3

Just caught an error trying to log into STDERR: Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) I'm running PHP 7.3.11 under Ubuntu 19.04 ...
0
votes
1answer
48 views

How to make compiled php work with apache?

I've compiled the php 7.4 for centos 7 server. I also have an apache installed 2.4. The problem is that I have no clue what to do next to make it work. Previously I had 2 sites working with the ...
0
votes
1answer
350 views

Amazon Linux: yumm install php73 > “No package php73 available”

On an Amazon EC2 Linux server, I've run: sudo su - yum -y update yum install -y php73 I receive the error No package php73 available. I've been able to install httpd, php, & php-mysql okay. ...
0
votes
0answers
18 views

accessing MongoDB from a virtual machine

Well recently I have installed MongoDB on my windows machine which is my local machine and I want to connect to it from a virtual machine in my Virtualbox. the vm is an ubuntu 16.04 and it's hosting ...
1
vote
1answer
1k views

MediaWiki Issue - PHP Notice: Trying to access array offset on value of type null in …/SectionProfiler.php

I'm using: MediaWiki 1.30.0 PHP 7.4.1 (apache2handler) MariaDB 10.3.21-MariaDB-1:10.3.21+maria~jessie I get this error a lot on the log: -PHP Notice: Trying to access array offset on ...
0
votes
1answer
21 views

How to improve php-fpm for wordpress with the help of modules?

~]# php -m [PHP Modules] bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv json libxml ...
0
votes
0answers
146 views

How to fix the syntax error of httpd.conf: Cannot load libphp7.so into server?

Whenever I try to start, stop or restart apachectl like so: sudo apachectl start It always show an error like so: Syntax error on line xxx of /path/to/httpd.conf: Cannot load /path/to/Cellar/php/7....
0
votes
1answer
35 views

Enhance Server Security

I don't know if this is the right place for my question. I'm creating a web server with Apache and PHP, but I want to make it as secure as possible. A set of software to keep the server secure, is ...
0
votes
1answer
45 views

Enabling opcache.restrict_api for security reasons

This article says that having opcache_get_status() enabled is a security risk. To turn it off, one has to configure opcache.restrict_api, but I couldn't find an example of how. This person had the ...
0
votes
1answer
61 views

Fail2ban - apache-noscript.conf Filter not working

Every night bots try to penetrate my Apache Server: /var/log/apache2/error.log Output: [Mon Dec 30 02:55:39.098671 2019] [php7:error] [pid 14930] [client xxx.xxx.xxx.xxx:62420] script '/var/www/...
0
votes
0answers
9 views

Unhelpful error message when installing UVDesk

I know this is a long shot, but here goes. Trying to install UVDesk. But it is returning some staggeringly unhelpful error messages, and I believe I've doublechecked every part of my server setup. ...
0
votes
1answer
83 views

Passing environment variables to httpd in centos 7

In my previous Centos 6.10 server , I have been able to pass some environment variables to httpd by adding to /etc/sysconfig/httpd . ~/.envvars .envvars content is export MY_PASSWORD='somepassword'...
3
votes
0answers
174 views

Getting error “PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException” on AWS server

I am getting following error in error_log after moving the site (developed in Magento ver. 2.3.2) on new server (AWS Server): PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException: ...
0
votes
1answer
42 views

can php-fpm restart processes based on memory use?

The max_requests setting is often used to remove processes that may end up using more memory than usual. Is it possible to configure php-fpm so it will remove the processes that use the most memory ...
0
votes
0answers
84 views

Nginx with SSL on https downloads the index file instead of processing it

So I have been using Nginx for a while and as soon as I started adding a SSL certificate on my site, Nginx downloads the index file as a .dms extension instead of processing it and outputting the page....
0
votes
0answers
102 views

I have trouble upgrading PHP 7.3 to 7.4 Centos 7

I did the following: The Remi repo instructions are linked below. For example if you have CentOS version 7.4 then at the command line: wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-...
0
votes
0answers
59 views

PHP module php-pecl-memcache Installation

I am building a new web server. Trying to use YUM to install PHP module php-pecl-memcache and keep getting that it requires php(zend-abi) and php(api). I assume that these are dependencies, but I can'...
0
votes
1answer
19 views

Entering non-existent folders in Ubuntu (Apache)

I have a Ubuntu server with Apache installed on it. When I login to my site: mysite.com/folder/index.php It works as expected. Then, by chance I discovered that I could enter: mysite.com/folder/...
0
votes
0answers
50 views

nginx php7.3 files download instead of execute - no .sock file to pass to php-fpm

I've already tried multiple configurations in the nginx.conf.default file as referenced here: https://stackoverflow.com/questions/25591040/nginx-serves-php-files-as-downloads-instead-of-executing-them ...
0
votes
0answers
31 views

PHP and Nginx won't show index.php [duplicate]

I tried to host WordPress Directory but it didn't work. So i tried to get a simple index.php with phpinfo() in it to run. But if i try to access it, i get a blank site with the Words "File not found." ...
0
votes
1answer
418 views

“phpsessionclean” systemd service won't run on Ubuntu 18.04 (after update from Ubuntu 14.04)

After we updated all of our legacy Ubuntu 14 servers to Ubuntu 18, the PHP session files stopped getting cleaned up. I am not sure this is caused by the upgrade itself, but all of our other servers ...
2
votes
1answer
2k views

grant PHP permission to allocate executable memory

I received this message during an iTop installation. If you google this, it appears on commercial websites above their content. Warning: filter_var(): Allocation of JIT memory failed, PCRE JIT will ...
0
votes
0answers
50 views

APM PHP Agent Setup

Im having a really hard time setting up my APM PHP Agent on a test EC2 server, can anyone please show me how to configure it properly to send log data to my ELK Server. I tried asking this question on ...
1
vote
1answer
241 views

How can I solve “No input file specified” error on IIS for URLs with a slash and content after the PHP file?

I am running a PHP 7.3 application on IIS using the FastCGI handler to execute the files. When requesting URLs which end on *.php in the browser, everything works fine. However, some paths of the ...
0
votes
0answers
52 views

Enable SQLSRV on centos 6.10 for php 7.2

I want to use the MSSQL database with my PHP application. I have Server with Centos 6.10 and PHP version 7.2. What should I do so I can enable SQLSRV extension or any other extension where I can use ...
0
votes
0answers
49 views

php mail() not working after successfully installed postfix

Recently, I've successfully installed postfix and configured. Then, I had tried sending an email via "echo" in ubuntu , to avail. However, the PHP mail() function is not working and showing nothing in ...
0
votes
1answer
98 views

Restrict browser access to one IP address in httpd.conf for PHP scripts

My objective is for only IP 1.2.3.4 to be allowed to run the /dir1/hello-php.php script. 'Out-of-the-box' AWS EC2 linux 2 apache 2.4.39 (with only the changes below), PHP 5.7.26, and using Firefox 70....
0
votes
0answers
21 views

Default $PATH for sh on Ubuntu (AWS EC2)

On my AWS server (running Ubuntu 18) I noticed that when I use PHP to run a shell script the value of $PATH, or other environment variables, is not what I expect. I installed a new software (Stata) ...
0
votes
0answers
34 views

Centos AWS: No matching DirectoryIndex (index.html) found

I am installing Laravel on AWS Ec2 instance. I am getting Forbidden on the browser, the log-returns: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by ...
0
votes
0answers
114 views

PAM for php 7.2 and Horde

In a VPS server I installed LAMP and Webmin/virtualmin. The default php version is 5.6 I also installed v7.2 Stuff at /opt/rh/rh-php72 In a virtual host I installed Horde webmail under php7.2 Test is ...
0
votes
0answers
143 views

Getting “No input file specified” within PHP running as FastCGI locally - how to change handler?

I'm running XAMPP locally on Windows and have a setup where I am running multiple different versions of PHP - 5.6, 7.2 and 7.3 - 5.6 and 7.3 are running fine, but I just added 7.2 and am having some ...

1
2 3 4 5
7