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.

learn more… | top users | synonyms (2)

0
votes
0answers
13 views

Running out of inodes constantly, sessionclean throwing up errors

I keep running out of inodes (Ubuntu 14.04). In my root mail I get the following message: From root@web.site.com Sun May 29 04:09:01 2016 Return-Path: <root@web.site.com> X-Original-To: root ...
1
vote
0answers
11 views

libapache2-mod-ruid2 broken in combination with http2

I am having the same issue in ubuntu 16.04. When i enable libapache2-mod-ruid2 i get the following error in my apache error log: [Tue May 31 10:53:07.681923 2016] [core:notice] [pid 7534] AH00051: ...
0
votes
1answer
78 views

cannot change php and mysql/percona to use utf-8

Ubuntu 14.04 amd64 What I had done: Set as below in php.ini, restart php5-fpm default_charset = "UTF-8" Set as below under http section of nginx.conf, restart nginx charset utf-8 Set below ...
-2
votes
0answers
17 views

mysqli connects to localhost-PDO does not

To be brief, I'm not going to include attempted resolutions. Here's the error and code: ERROR : SQLSTATE[HY000] [2005] Unknown MySQL server host '(localhost)' (11) <?php $db_host='localhost'; ...
0
votes
1answer
20 views

Sh: php command not found when trying to execute file from web broeser

I have one file with code shell_exec (php test.php) When I run this file from command prompt, It run successfully and when same file I am trying to run through web browser this will give error as ...
0
votes
3answers
4k views

Errors installing php5-mysql extension

Getting error when installing php5-mysql. Looks like a dpkg error. Perhaps a broken package. Have tried to fix the broken package. Have reinstalled the lamp server and everything seems fine except ...
21
votes
2answers
15k views

Installing PHP 5.6 on Xenial (16.04)

I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to no longer support php5. I tried ...
-1
votes
0answers
18 views

Compile php 5.3.22 using phpfarm on ubuntu 16.04

I have problem with compiling multiple PHP using phpfarm with version 5.3.22. in my previous version of Ubuntu, i succeed to install dual PHP using PHP 5.5.9 and 5.3.22, but when I try to build ...
3
votes
3answers
10k views

Getting error from apt-get when trying to install php5 package

I am new in ubuntu and I try to run a website by my own computer but I can't install php5. When i typed: sudo apt-get install php5 I received: Package php5 is not available, but is referred to ...
3
votes
2answers
203 views

Are updates to libapache2-mod-php5 update causing apache to crash?

The latest security updates on 5/25/2016 seem to have cause apache-php5 module to fail loading. Anyone else seeing this? Reboot resolves but here is the error detail. Possibly this security update ...
0
votes
0answers
20 views

Adding a new dev-site to Apache 2. What am I missing?

I've got an issue when trying to access the frontend of a site I've added to an Apache server that is already hosting another live site. Here are the steps I took: added a directory ...
0
votes
0answers
13 views

“Access denied for user 'root'@'localhost'” when updating vendors in a symfony app while deploying on a remote server

I am trying to deploy my symfony application on a remote amazon server. While updating the vendors using: composer install --no-dev --optimize-autoloader command this error occurs Access denied for ...
0
votes
1answer
59 views

PHP-GD ownCloud issue

I'm trying to set up my ownCloud for my school but there is just 1 problem PHP module GD not installed. Please ask your server administrator to install the module. PHP modules have been ...
0
votes
0answers
39 views

Installing phpmyadmin on php7 : Ubuntu 14.04

I have LAMP stack on Ubuntu 14.04. I have upgraded from php 5.0 to php 7.0 but i couldn't install phpmyadmin. I went to my public folder which is var/www/domain.com/html and ran that code, git ...
0
votes
2answers
81 views

How to display .php pages?

I am new to LAMP in my Ubuntu 15.04. I just installed the LAMP stack and to get my php info, I made testphp.php which has the following code... <?php phpinfo(); ?> I placed the file in ...
0
votes
0answers
15 views

Send mail with php and postfix - can send mail with php -a from terminal but not from web page

I have designed a simple contact form that sends an email to a gmail account. Currently if I run from a terminal (non-root user): ...$ php -a php > "me@gmail.com","test postfix php","this is a ...
3
votes
1answer
5k views

How to install apache + php + pthreads

04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl install pthreads. ...
47
votes
6answers
136k views

How to have my PHP Send mail?

I installed Ubuntu 11.04, LAMP using tasksel. I find that PHP mail() does not work. I suppose I need to enable it or something? How do I do that?
8
votes
1answer
27k views

Apache2 start error when using php5 module ( Ubuntu Server)

I am using Ubuntu Server. When I start apache2 everything is fine, but when enabling php5 module and restarting apache2 I get this error: ERROR: *** Restarting web server apache2 ...
67
votes
2answers
257k views

Find the correct php.ini file

I am currently trying to locate the correct php.ini file to edit it and restart apache so the changes will take place and I'm stumped. What I have done... I have found three different php.ini files ...
0
votes
2answers
207 views

PHP installation appears to be missing the MySQL extension

After upgrading my ubuntu from 15.10 to 16.04 LTS, it is showing an error Your PHP installation appears to be missing the MySQL extension when taking any local website from my lamp. When I tried to ...
1
vote
5answers
3k views

How do I setup php+My sql development environment

How do I setup php + My sql development environment in Ubuntu ?
0
votes
1answer
45 views

Unable to locate package php5-mysqlnd-ms

Using Ubuntu Server 16 PHP5.5 FPM PHP Version 5.5.35-7+donate.sury.org~xenial+1 Trying to install Wordpress: Your PHP installation appears to be missing the MySQL extension which is required by ...
0
votes
3answers
97 views

Magento PHP cron job fail to open required php files

We are trying to set up cron job for Magento site. We tried this Job, but it didn't work for us: */5 * * * * php -f /var/www/html/sitename/cron.php To debug we tried this Job: */5 * * * * ...
12
votes
4answers
7k views

Upgrade to 16.04. php7 not working in browser

I just upgraded from 14.10 to 16.04 and am not sure how to configure PHP 7 in apache. I did modify the php7.0.conf file to uncomment that last lines, restarted apache2 and no change. Do I need to ...
0
votes
1answer
74 views

Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mbstring.dll

When I run the command php -v this error comes up in ubuntu terminall: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mbstring.dll' - ...
0
votes
1answer
31 views

PHP 5.5 support after July 2016

Will Ubuntu still support PHP 5.5 after it reaches EOL in July 2016? http://php.net/supported-versions.php Will be there any backported security updates for it?
0
votes
1answer
82 views

Ubuntu 14.04: problems upgrading php to 5.6

I've done the following: sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get update sudo apt-get upgrade sudo apt-get install php5 sudo apt-get install libapache2-mod-php5.6 sudo ...
0
votes
1answer
27 views

How do I enable the bcdiv function in PHP 7.0?

The PHP function bcdiv is not available by default. How do I enable that in PHP configuration?
0
votes
0answers
22 views

After Updating to 16.04, Local Web Sites Crashed

I can't tell if it's PHP or Apache2 (or both) but after upgrading to Ubuntu 16.04 last night, none of my local development sites will load. That is, they load but give only gibberish on the screen, ...
0
votes
1answer
31 views

How to completely remove phpMyAdmin without knowing its password?

I know there are more questions about this problem "How to remove phpMyAdmin" but they did not work, because I lost my password! I lost my phpMyAdmin and MySQL password and username! I don't remember ...
4
votes
2answers
12k views

Can't install php5 on Ubuntu 16.04

so I've recently installed my first Ubuntu, to be precise, a daily build of 16.04, on my new laptop since the hardware was to new for 15.10. Now I'm in the process of setting it up and I want to ...
0
votes
0answers
38 views

Install cakePHP 3.2.8 on xampp (ubuntu 16.04)

I had searched through a lot of sites but i haven't found a method to install the last version of cakePHP (3.2.8) on xampp (7.06), i need help.
0
votes
1answer
56 views

run php file from cron and start browser through exec on ubuntu [duplicate]

I am trying to start FireFox from php script using exec("firefox"). This works fine if i run php file from the terminal but does not work when run by the cron. User for cron & terminal is root. ...
0
votes
0answers
26 views

How to restart nginx server using PHP? [duplicate]

I have a problem, i make a site to control our server, but i cannot restart nginx server, this my code $queryRestart = "sudo /etc/init.d/nginx restart";<br> $restart = exec($queryRestart);
2
votes
2answers
8k views

How do I remove PHP 7 Completely?

I have upgraded PHP old version to latest php7 but unable to start its services. systemctl restart apache2.service Job for apache2.service failed. See "systemctl status apache2.service" and ...
0
votes
0answers
20 views

User cannot edit files in a directory even though the user belongs to a group with write permissions?

I have an Apache2 installation. I have a folder on my desktop that I would like to use as the root directory rather than the default location. I have confirmed that Apache is using the www-data user ...
0
votes
1answer
247 views

PHP mysqli extension in Ubuntu 16.04 not working after upgrade to version 7.0.6

After update this morning php does not work any more. Error: AH01071: Got error 'PHP message: PHP Fatal error: Call to undefined function mysqli_connect() in ...
2
votes
1answer
42 views

Apache works with php7, but crashes with php5

I have upgraded to Ubuntu 16.04 recently, and everythings works perfectly but I need php5, which is not in the official repositories. So I have tried with phpbrew: it didn't work (it was unable to ...
1
vote
1answer
40 views

PHP is not working on ubuntu 14

I am trying to install php on my ubuntu machine. 1st I install apache2 on machine.... after that I install php7 sudo apt-get -y update sudo add-apt-repository ppa:ondrej/php sudo apt-get -y update ...
0
votes
1answer
36 views

installing php-gettext using --with-gettext

At the moment I'm figuring out how to install php gettext on Ubuntu 14.04, the documentation tells me I should use --with-gettext http://php.net/manual/en/gettext.installation.php#119139 and I ...
0
votes
0answers
98 views

MySQL Database in XAMMP is stoped

I'm running Xampp on Linux(Ubuntu 14.04) and while everything was working fine until an hour back right after I shut it down it suddenly starts throwing this error. the erreur : MySQL said: ...
0
votes
0answers
21 views

I am facing Fatal Error while sending bulk email ids at a time

I am facing fatal error and also i give the information in given below. Can you please check it once. Please help me how to solve this issue. Thank you in advance. Redirect could not be issued due ...
17
votes
4answers
12k views

How can I downgrade from PHP 7 to PHP 5.6 on Ubuntu 16.04? [duplicate]

I am trying to revert my PHP version to 5.6 from 7 and though I removed PHP 7 and then installed PHP 5.6 I still seem to be running version 7. Is there a simple method for moving through PHP versions ...
0
votes
0answers
25 views

Resource interpreted as Stylesheet but transferred with MIME type text/html

I have a problem with my apache2. When I run my project, my browser doesn't display css files, images and other. I tryed to add AddType text/css .css to .htaccess file, but it didn't give me positive ...
0
votes
2answers
132 views

I'm unable to install PHP5 in Ubuntu 16.04 [duplicate]

root@areeb-Inspiron-3420:/var/www/html# apt install php5 Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not available, but is referred ...
3
votes
3answers
16k views

Call a shell script from PHP, run as root

I'm running ubuntu 11.10. I want to be able to call a shell script from php and run that script as root. When my php attempts to call the shell script as root --like this: $output = shell_exec('sudo ...
0
votes
1answer
73 views

PHP 7 version is not working in Ubuntu 12.04 [duplicate]

I have recently updated by php. My php -v command show following result: PHP 7.0.6-6+donate.sury.org~precise+1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) ...
2
votes
2answers
4k views

Error installing OCI8 on Ubuntu 14.04

I've just upgraded my VM to Ubuntu 14.04, and my OCI8 PHP driver has stopped working. I've tried to install/upgrade it, but it doesn't work. That's the error messages I get: ...
0
votes
0answers
26 views

PHP 7 core dumping on cli when using stomp

I'm running ubuntu 16.04 and trying to connect to activemq via PHP with stomp. I've installed the php7.0-cli and php-stomp packages. While I have activemq 5-13.3 running on one terminal, I've tried ...