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]

Questions related to the seventh release of PHP, a server-side scripting language designed for web development, which can also be used as a general-purpose programming language

-2
votes
0answers
18 views

Can't find or install any extension when I compiled and built php7.3 from source

I built php7.3 from source, and when I tried to connect php with PDO MySQL using mysql pdo I got this error message: Fatal error: Uncaught PDOException: could not find driver in /usr/local/apache2/...
0
votes
0answers
23 views

Unravelling gnupg_keyinfo()'s output

I am trying to write server and client PHP-CLI scripts with gpg-encrypted data using PHP's gnupg_* extensions on Ubuntu-18.04 and PHP-7.2. After sending the welcome message, the server sends its ...
0
votes
0answers
5 views

Unable to completely uninstall apache2, php, mysql and phpmyadmin

It doesn't matter which command I try some folders are still left with the previous configuration which spoils my start over. Ubuntu 18.04.1 LTS
0
votes
0answers
28 views

Cannot install PHP using apt [duplicate]

I tried to install PHP 7.0 but it says it isn't found. I tried apt-update and restart, but it didn't work. I have no idea how to fix this so if you help me it would be great.
1
vote
0answers
80 views

Can't access my website after server release-upgrade to 18.04 from 16.04 (droplet)

When I enter my domain i get: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [...
0
votes
0answers
21 views

Letodms (Document Management System) on Ubuntu 18.04

I'm migrating my system from 14.04. to 18.04. and was happy to see that there was a letodms package in the repository that was smoothly integrated by apt adding all necessities like the apache, php7, ...
0
votes
0answers
53 views

Unable to start apache2

I use Ubuntu 18.04. Command sudo service apache2 restart returns an error. kurusa kernel: apache2[17035]: segfault at 7f478cc64e00 ip 00007f4788e13fcf sp 00007ffdb66f0620 error 6 in libphp7.0.so[...
1
vote
0answers
69 views

Safely upgrade PHP from 5.6.38 to PHP 7.2+ on Ubuntu 18.04.1 LTS

I am running a production server on Ubuntu 18.04.1 LTS which has PHP 5.6.38 installed. It's serving a PHP 5x application but because of composer and other requirements I need to upgrade it safely on ...
0
votes
0answers
11 views

problem with changing the strength of password in mysql

I have installed mysql server and while making mysql secue installation i have set the password level to strong password .so i created the password with some characters like . ,and @ while installing ...
1
vote
1answer
212 views

“curl : Depends: libcurl4 (= 7.61.0-1ubuntu2.2) but it is not going to be installed” on Ubuntu 18.10 with PHP 7.2.10

I am struggling with installing cURL module in Ubuntu 18.10. While upgrading from 17.10 to 18.10 cURL was removed/deleted. Now when I try to execute the command sudo apt-get install php7.2-curl I ...
0
votes
1answer
65 views

Unable to install PHP particular version 7.0.4 on Ubuntu 16.04

I need to install php7.0.4 but not getting this version anywhere to install it. Is there any way to install it on Ubuntu 16.04
1
vote
1answer
113 views

PHP and related staff installation

I am going to install LAMP. In this regard I am going to run below command. sudo apt-get install php7.0 libapache2-mod-php php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-...
0
votes
0answers
59 views

can't install php7.2-xdebug alongside php7.0-xdebug

I currently have to versions of PHP installed, php7.0 and php7.2, for local development. After installing php7.0 and before I installed php7.2 I installed php-xdebug without any problems. However when ...
0
votes
0answers
223 views

How to setup crontab to remove the php session files

I want to remove the PHP7.1 session file frequently, if I don't remove the files the new PHP session is not generating. So I want to set up the cron job to remove the PHP session. Session files are ...
0
votes
1answer
322 views

Ubuntu Server 18.04.1 apache http/2 not working after upgrade

I upgraded my server to the LTS release. mod_http2 seems to be broken under apache2 with PHP7.2. The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed ...
0
votes
0answers
53 views

IMAP connection broken (server response)

when I try to receive an email the error [CLOSED] IMAP connection broken (server response) returns. The mail server is OK and working. the correct permissions for my script (FAVEO HELPDESK) are ...
0
votes
0answers
263 views

On Ubuntu 14.04.5 how can I upgrade PHP 7.1.1 to 7.1.3?

I am a PHP-Laravel developer and I don't have much knowledge about Linux and Linux servers as I use WAMP on my local machine for development. Recently, I upgrades my project's Laravel to version 5.6,...
0
votes
0answers
449 views

Unmet dependencies when trying to installing php-curl on ubuntu 18.04

This all started with the error PHP Fatal error: Uncaught Error: Call to undefined function curl_init() So i tried following to install php-curl and got a dependency error $ php -v PHP 7.2.5-...
0
votes
0answers
90 views

MySQL service doesn't start on Ubuntu 14.04 after upgrading PHP from version 5.6 to 7.2

I have upgraded my PHP from version 5.6 to 7.2 and now MySQL does not work. When I enter sudo service mysqsl start, the following text gets displayed: Job for mysql.service failed because the control ...
1
vote
1answer
694 views

Can't remove PHPMyAdmin. Ubuntu 18.04. Usual not working

I found that PHPMyAdmin no longer is working after I upgraded to 18.04 due to the fact that php-mcrypt is deprecated. I was getting an error about that package. I decided to remove phpmyadmin and try ...
0
votes
0answers
10 views

how to uninstall php7.0 from ubuntu server [duplicate]

i need to uninstall my php version 7.0. when i try the command sudo apt-get purge php7.0 i get the following error messages E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily ...
2
votes
1answer
1k views

Cannot install PHP7.2-dev on Ubuntu 18 due to unmet dependencies

I have Ubuntu 18 distributive, but I need install php7.2-dev for PECL extenssions. mvolchkov@ias-su:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18....
3
votes
1answer
7k views

Package php7.2-mbstring missing in Ubuntu 18.04

I am trying to find a way to install php7.2-mbstring into Ubuntu 18.04, but I can't find find it. sudo apt-get install php7.2-mbstring responds with not finding it. According to the Cannonical and the ...
0
votes
1answer
202 views

Replacement for php-auth and php-auth-http on 18.04 (Bionic Beaver)

In Ubuntu 18.04 the two packages php-auth php-auth-http disappeared. Is there any replacement for them, i.e. do they just have a different name or where did they go. I am trying to upgrade an ...
0
votes
0answers
195 views

How to Downgrade php 7.0 to php 5.3.24 for Magento 1.9.2.1

I want to downgrade my server to meet the requirements for Magento 1.9.2.1. Currently, I am running PHP 7.0 on Ubuntu 16.04 (Amazon AWS - EC2) Php info of the server http://13.229.128.250/phpinfo....
1
vote
0answers
215 views

PHP Fatal error when installing mcrypt

I am installing the mcrypt extension. After running the command sudo pecl install mcrypt-1.0.1, the following error shows: PHP Fatal error: Cannot use result of built-in function in write context ...
0
votes
1answer
61 views

My deployment scripts are utilizing all the ram and taking forever

Even if I increase the ram it will end up just using it up and bogging down. I'm not sure if this is riding the gray line of what should be in magento stack exchange vs ask ubuntu. Why are these ...
0
votes
1answer
398 views

PHP Version 7.1.18-1 on ubuntu16.04.1 xdebug is not working. How to enable it?

I have installed php 7.1 in ubuntu 16.04 trough the following command: sudo apt-get install -y software-properties-common sudo add-apt-repository -y ppa:ondrej/php sudo apt-get update sudo apt-get ...
0
votes
0answers
18 views

Trying to load info.php in Firefox and it downloads Ubuntu 16.04 [duplicate]

I have installed Apache2/Nginx/PHP7.1 on Ubuntu 16.04 and created an info.php file that contains the following: <?php phpinfo(); ?> this is located in /var/www/html However, when I load http:/...
0
votes
1answer
2k views

sqlsrv not working despite having a proper install

I have installed (again) the sqlsrv using pecl for Ubuntu 18 yet for some reason the driver is not found. This is the error I get could not find driver. Here are the steps I followed: $ sudo apt-...
0
votes
1answer
85 views

Install php5 instead of the default php7.0 with the LAMP stack

I'm installing the LAMP stack this way: sudo apt-get install lamp-server^ On Ubuntu 16.04 it installs php7.0 Is it possible to make it install the exact same thing but with php5 instead of php7 (as ...
0
votes
0answers
344 views

problem in installing imap for php7.0

I am trying to install the imap but it is giving me this error for no reason . i have tried every solution on the forums questions but did not succeeded. This is the error i am getting Reading ...
0
votes
1answer
641 views

PHP7.0-curl and MSSQL Tools Incompatibility

I'm trying to install Moodle on Ubuntu 18.04 and connect it to a MSSQL server. But when i try to install php7.0-curl extension, so moodle can work, the MSSQL Tools and other libs are being deleted ...
3
votes
5answers
9k views

PHP 7.2 fastcgi doesn't work on Ubuntu 18.04 server

I've just installed LAMP on a Ubuntu 18.04 server and I can't get PHP fastcgi to work. Here's my settings: My fpm PHP file: /etc/php/7.2/fpm/pool.d/sites.mydomain.conf [sites.mydomain] ... user = ...
24
votes
2answers
11k views

**curl** is not working on Ubuntu 18.04 LTS

I can't fetch content from the web using curl. I tried to intall it the out put below. Some packages could not be installed. This may mean that you have requested an impossible situation or if ...
1
vote
1answer
3k views

PHP 7.2 / MySQL Issue after upgrading to 18.04

After upgrading my servers to Ubuntu 18.04 I had a few issues. PHP pages were displayed as plain text, exposing code. Could not connect to MySQL from web pages using PHP (once the PHP issue was fixed)...
2
votes
1answer
5k views

Ubuntu 16.04 - PHP 7.1.11 to 7.1.3

How can I upgrade my PHP version from PHP 7.1.11 to 7.1.3 on my Ubuntu 16.04 server? I've tried the following: sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get upgrade sudo apt-...
0
votes
0answers
440 views

Run php code in .html file

I have ubuntu 16.0.4 on vps. I can't run php code from a html file. i add a .htaccess file with this code: AddType application/x-httpd-php5 .html .htm and on /etc/apache2/mods-enabled/php7.0.conf ...
1
vote
1answer
297 views

Remove php 5.3 from my system

Previously I have both PHP 5.6 and PHP7 installed in my pc and switch between them every time I need for a web-app with: sudo update-alternatives --set php /usr/bin/php[version] But I made the error ...
0
votes
0answers
46 views

Configuring msmtp for user without home directory

How would I configure msmtp for a user that doesn't have a home directory? The goal is to send emails using PHP. I'm using PHP 7.0 on Apache 2.4 running on 16.04 with the www-data user Edit #1 I ...
0
votes
1answer
820 views

PHP LARAVEL ERROR: no pages are found except index page in Laravel deployed on LAMP Stack on Ubuntu 16 OS

Running Ubuntu 16 server image on Google Compute Engine. My very first time to touch Ubuntu. I have installed Laravel via composer and done everything properly, but my webiste is only opening the home ...
0
votes
0answers
54 views

How to install a (very) old version of PHP?

tried running apt-get install php5=5.3.3-7+squeeze3 without any luck: Reading package lists... Done Building dependency tree Reading state information... Done E: Version '5....
1
vote
0answers
313 views

How to upgrade gd library version to 2.2.5 from 2.1.1 for php 7.1?

How to upgrade gd library version to 2.2.5 from 2.1.1? I'm working on an Ubuntu server 16.04 with php version 7.1? This is what I tried: $ sudo apt-get install php7.1-gd php7.1-gd is already the ...
2
votes
2answers
4k views

Apt get install php7.1-dev extension doesn't work

I am running Ubuntu 17.04 with PHP 7.1, I am trying to install the PHP dev extension but it isn't found: [17:21:43] @Z240:~/workspace/api$ sudo apt install php7.1-dev Lecture des listes de paquets... ...
0
votes
0answers
307 views

error occured while installing php 7.0 GD library on ubuntu server

When I tried this command: apt-get install php7.0-gd php7.0 I got below error: You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: ...
0
votes
1answer
3k views

How to upgrade to php 7.2 version in xampp

My current php version from xampp (lampp) is 7.0.9 . I would like to upgrade it to 7.2. I saw this post: https://askubuntu.com/a/856794/793678 , but is not about xampp. Or this one : How to upgrade ...
0
votes
0answers
32 views

What is ppa:ondrej/php [duplicate]

I'm using Ubuntu 17.10, and the php7.0 is not supported by default anymore (It's by default using php7.1). So in order to install php7.0 on Ubuntu 17.10, I need to add the following, sudo add-apt-...
1
vote
2answers
141 views

php -v command doesn't show correct version on ubuntu 17.10

When using php -v command, I got the following result. PHP 7.2.1-1+ubuntu17.10.1+deb.sury.org+1 (cli) (built: Jan 5 2018 13:55:19) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, ...
0
votes
2answers
2k views

How to upgrade the php version in Lampp in Ubuntu

I need to upgrade the php version to 7.2 in my Lampp. Actually, when I am checking php -v in terminal, it's showing the following result: PHP 7.2.1-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jan 11 ...
0
votes
0answers
57 views

Can not login my PHPMyadmin using Ubuntu 14.04

I am getting error while login to localhost/phpmyadmin. The error is given below. Cannot log in to the MySQL server Connection for controluser as defined in your configuration failed. When I am ...