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 [php]

PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.

0
votes
0answers
7 views

Can't connect to MS SQL Server

I am trying to use Nginx+PHP7.2+MS SQL Server driver but it doesn't work. I have installed packages by this doc but apache2 installation (I need Nginx). And I've added extensions to /etc/php/7.2/fpm/...
0
votes
0answers
10 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 ...
-1
votes
0answers
41 views

How to install multiple php versions in ubuntu 18.04

My current php version is PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) I want to install multiple php version like php 5.0, php 7.0, php 7.1 in my ubuntu 18.04 because we ...
0
votes
0answers
8 views

why my .php in var/www/html showing plain text in browser

phpinfo() even i want to show the phpmyadmin also cannot i checked from many website , they say is my apache2 is not configure with php7.0, but how to fix that pls help me XD
-2
votes
0answers
24 views

Send sms from frontend in wordpress [closed]

I am working on wordpress website and want to add sms system from frontend to send sms to clients. I got some plugin but it's not from frontend. Can anyone help. I have tried some php code also using ...
0
votes
1answer
15 views

Restricting Apache VirtualHosts to their own directory

I'm running Apache on Ubuntu 16.04 and 18.04, and I have configured it to accept connections from several domains. The sites are all stored in /var/www/html like so: example.com sub.example.com ...
0
votes
1answer
40 views

“Deprecated Functionality: The each() function is deprecated” what does this mean? [on hold]

Every command I run on Ubuntu 18.04 seems to return this error: Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /var/www/vhosts/...
0
votes
1answer
34 views

How do I install php in unattended mode in Ubuntu 18.04

I am trying to install php in unattended mode. That is, install php using pkg install without having to be prompted for location. Maybe there is an environment variable that must be set or something?
0
votes
1answer
16 views

php7.x-xml package not found Ubuntu 18 [closed]

I just built an Ubuntu 18 server. I had LAMP installed as part of the process, and everything appears to work fine. I was installing Moodle and I hit a point where Moodle complained that I needed ...
0
votes
0answers
28 views

Switch between php 5.6 and php 7.0 versions but working only php7.0

I followed these instructions and tried to install switchable PHP versions. But after switching to 5.6, web does not work and I see only this: But when I again switch back to 7.0, everything works ...
0
votes
0answers
12 views

Error Wordpress

I have a problem, I try to install wordpress in a ubuntu server 18.0.4, but when I finish and open in the browser, it’s my result <?php /** * WordPress Installer * * package WordPress * ...
0
votes
1answer
1k views

Gettext in PHP not working anymore after server upgrade 16.04 to 18.04

as in subject, after upgrading Ubuntu Server from 16.04 LTS to 18.04 LTS my PHP websites no longer adapt to browser locale as it used to work before the upgrade. My wanted locale files (it_IT.UTF-8) ...
0
votes
0answers
36 views

auto_prepend_file with root permissioned file doesnt work [on hold]

I have a VPS server had CentOS WebPanel installed on it. I'm trying to create a simple encrypting way so i decided to write the algorithm then adding the file to /usr/local/php/php.ini file like so ...
1
vote
2answers
40 views

dedicated PHP version per virtual host

I have got an Unbuntu 18.04 LTS Server with PHP7.2 and PHP5.6 being installed. Two Virtual Host so far are configured alike... <VirtualHost *:80> # domain: php56.test # public: /var/www/...
0
votes
0answers
32 views

My server index.php is showing a blank page

I have managed to set up my server and upload my first php code to see if the server is working, and it is. PHP 7.0.30-0ubuntu0.16.04.1 (cli) (NTS) mysql Ver 14.14 Distrib5.7.23, for Linux (x86_64)...
0
votes
0answers
37 views

How to enable URL rewrite in 18.04

Working to install spicecrm, the instance is requesting URL rewrite to be configured. To allow the crm to run I have "downgraded" the php version to 7.1 and removed both 7.0 and 7.2 from Ubuntu 18.04, ...
0
votes
1answer
71 views

Remove/re-install LAMP with current versions on Ubuntu 18.04

I'm having trouble with my LAMP stack since the Ubuntu 18.04 upgrade, so I'd like to just remove everything and start with a clean slate. I'm referring to the post entitled "How do I remove the LAMP ...
0
votes
1answer
26 views

Php7.1-fpm php.ini not changing at all

When I code this in my php file: echo php_ini_loaded_file(); The output is : /etc/php/7.1/fpm/php.ini Then I edit the php.ini sudo nano /etc/php/7.1/fpm/php.ini And change my memory_limit to ...
0
votes
1answer
16 views

Should all four PHP.ini be identical

I am not a programmer .. just a newby I was not able to set the post_max_size or upload Max Values until i read posts relating to such on this forum Thomas Ward in one of his answers indicated what ...
0
votes
1answer
17 views

Issues Installing PHP-intl Linux (404 Error) [closed]

I am trying to run OwnCloud on my Linux server and I need to have PHP-INTL installed. I've looked into installing it via the command line with either sudo apt-get install php-intl or sudo apt-get ...
0
votes
0answers
13 views

how to install php5.6 on ubuntu 16.04 for box billing

I want to install boxbilling which runs php5 Ubuntu 16.04 currently has php 7.2 what is the procedure for doing this? (the parent server has other apache websites on it that run php7 so i dont want ...
0
votes
0answers
26 views

Cannot run bash file from PHP

I am trying to run a bash file from a PHP file. The script is in the directory /home/hostitec, which is called registro.sh The php file, where I am running the bash file (giving him some variables as ...
1
vote
0answers
75 views

How to update Libzip to 1.2 on ubuntu 18.04 and PHP 7.2

I want to use ZipArchive::setEncryptionName on Ubuntu server 18.04.1 with PHP 7.2.7 Problem is that setEncryptionName needs a Libzip version of at least 1.2 Default configuration from PHP info: ...
0
votes
0answers
28 views

upgrade php failed

I just upgraded php 7.0 using this tutorial. checking the version with php -v: PHP 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Aug 19 2018 07:16:12) ( NTS ) Copyright (c) 1997-2018 The PHP ...
0
votes
1answer
100 views

php not working within apache2

After updating from ubuntu 16.04 to 18.04 I noticed that php-curl was not working, but php was working fine. I thought the problem was that apache2 was still using php7.0 instead of php7.2, so I ran ...
0
votes
0answers
16 views

Botched my Nginx install, making it worse

having an issue. Trying to do Owncloud install and Nginx is not working. Followed directions, but I missed something is all I can come too. Here is what I have from my /etc/nginx/sites-enabled/defualt....
0
votes
0answers
16 views

Proper way to set multiple user permissions for a webserver

I'm having some issue understanding permissions on Ubuntu Server. I want to give Apache2/PHP full access to a folder: /var/www/marry/html This works if I change the owner to the user under Apache ...
0
votes
0answers
70 views

Ubuntu 18.04 PHP 7.2 database connection not working

Recently I installed Ubuntu 18.04 apache2 using sudo apt-get install apache2 command php using sudo apt-get install php command mysql using sudo apt-get install mysql-server command When I run ...
0
votes
0answers
13 views

Two platforms with different server requirements on the same server

My computer has ubuntu 18.04 installed and I want to create a local server (on my computer) to run two platforms with different server requirements in a way that they could communicate with each other....
0
votes
1answer
24 views

Changing folder permissions to enable PHP to create a file

This question is quite similar to this one : Apache not allowing PHP to create file However, the difference is that I'm running Apache under a XAMPP setup. PHP looks like this : file_put_contents('...
2
votes
1answer
106 views

How to install PHP-FPM on Clean Install of Ubuntu 18.04 Server

I am trying to install a LEMP stack on a clean install of Ubuntu Server 18.04. I was able to get through installing everything except php-fpm. It does not appear to be in the package repository even ...
2
votes
1answer
67 views

apt-get upgrade didn't update PHP but updated its php modules

I performed sudo apt-get upgrade and was expecting to see that PHP version update from 5.6.30 to 5.6.37. To my surprise, php version didn't upgrade but its modules did. I still see 5.6.30 in ...
0
votes
1answer
166 views

PhpMyAdmin problem after upgrade Ubuntu Server 16.04 to 18.04.1

After doing a do-release-upgrade from Ubuntu Server 16.04 to 18.04.1 I have a problem with PhpMyAdmin. It doesn't interpret the php code and shows me the php script on localhost/phpmyadmin/. Any ...
1
vote
1answer
49 views

Running multiple sites Nginx on Ubuntu 18.04

I'm beginner with Nginx (also using PHP 7.2) and I have no idea how to access multiple sites using separated folders. So as default folder I set /home/user/php;. There I have few folders named: ...
0
votes
0answers
64 views

ERROR: Module php7.0 does not exist! (already install libapache2-mod-php7.0)

I need a help on my PHP installation, I could run http://localhost but it could not render http://localhost/phpmyadmin here is what I tried : sudo a2dismod mpm_event && sudo a2enmod ...
0
votes
0answers
33 views

Horde fails to start due to “Failed opening required 'Horde/Autoloader/Default.php' (include_path='/var/www/html/horde/lib::/usr/share/kopano/php')”

After upgrading Ubuntu 17.10 to 18.04 and running sudo pear channel-update pear.horde.org && sudo pear install --alldeps horde/horde to upgrade my Horde installation in /var/www/html/horde I'm ...
0
votes
1answer
89 views

Installing mongodb php7 extension version 1.5.0 in ubuntu server

I installed mongodb php extension using apt-get install php7.0-mongodb when I check, it shows that the installed version is 1.2.0, But, I want to install version 1.5.0 So, I tried apt-get install ...
0
votes
1answer
46 views

php-cgi won't install

When I try to install the php-cgi package, using sudo apt-get install php-cgi, I receive the following error: The following packages have unmet dependencies: php-cgi : Depends: php7.2-cgi but it is ...
1
vote
0answers
108 views

duplicate php packages

I use this repository for my php installation as its more up to date than Ubuntu's repository, but after I upgraded from 16.04 to 18.04 I can no longer install any php packages. for example, I need to ...
0
votes
1answer
22 views

PHP modules, php-x vs php7.2-x

Upgrading Ubuntu from 16.04 to 18.04, I was facing a choice for some PHP modules.Should I install, for instance php-fpm, or php7.2-fpm php-gd, or php7.2-gd etc... since both names are available in ...
0
votes
0answers
31 views

Set up cron for executing php file

I want to set up cron for my php file, on Ubuntu (16.04) I do: sudo crontab -e * * * * * php /var/www/myfolder/myfile.php This gives error: usage error: no arguments permitted after this option ...
1
vote
0answers
32 views

php not activated after upgrade to 18.04 TLS

To my great stupefaction, php did not work on the 18.04 version. It did work for phpmyadmin. In looking at the configuration files php7.2.conf and phpmyadmin.conf I noticed that in the latter a ...
-1
votes
1answer
117 views

Unit mysqld.service not found but exists

I'm following the code from this post, LeonanCarvalho's answer, in order to create a daemon with systemd. I used symlink. Everything is fine but when I tried to start it, it said that, or even ...
0
votes
0answers
9 views

Oracle database connection in php 5.6 in ubuntu

I'm trying to create an OCI8 connection using php5.6 in ubuntu. I'm following below-given link tutorial for the same. Tutorial Link But Im getting an error after running the command pecl install oci8-...
1
vote
1answer
202 views

PHP script not executing on Apache server. U-18.4 PHP 7.2 Localhost

My Apache is running and displays the Default Page. I can redirect a PHP file into php and the echo command displays properly. I've already researched previous versions of Ubuntu and can't find any ...
0
votes
1answer
21 views

PHP Version Looks Wrong

Despite not installing php5.4, it seems to be the version. Now, Although I delete all php packages on the computer, it still looks the same(5.4). sudo apt-get purge 'php*' sudo apt-get purge php.* ...
0
votes
1answer
98 views

How to set up PHP-FPM on Apache?

I have a server with Ubuntu 18.04 and PHP 7.2 My site is with Drupal 8 How to set up PHP-FPM on Apache? I find only tutorial for NGINX or are outdated.
1
vote
2answers
960 views

Unable to install php-mbstring

I am attempting to install php-mbstring on a Ubuntu 18.04 server which already has apache2, php and mariadb installed. I have tried with the following sequence of commands: jonathan@samuel:~$ sudo ...
1
vote
0answers
210 views

nginx 502 bad gateway for 1 minute after restart

Everything worked fine until I update PHP to 7.2 For a minute after server reboot nginx throws 502 error. Nginx error log says if listening to unix:/var/run/php/php7.2-fpm.sock: [crit] 671#671: *2 ...
0
votes
1answer
56 views

Apache phpinfo missing cURL and XDebug after upgrade

I just upgraded to Ubuntu 18.04.1 LTS and went to check on my local apache2 installation by adding phpinfo() to an index file. After update/reboot, I went to my local WordPress Admin area and ...