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
19 views

How to configure Apache 2 to run PHP 7.0

I've installed both Apache2 and PHP7.0 on my Ubuntu 14.04 and on running localhost I get a Apache welcome page but placing a info.php file inside /var/www/html/ doesn't give me any specific page but ...
-1
votes
0answers
132 views

localhost is currently unable to handle this request (HTTP ERROR 500)

Morning i have problem with php script execution, when i try to execute php script on my localhost installation i receive such error. The local host page is not working localhost is currently unable ...
2
votes
1answer
44 views

How to manually install PHP and Apache in Ubuntu 14.04 without using apt-get

I'm trying to configure my machine(Ubuntu 14.04) for LAMP but I want to install PHP and Apache HTTP Server the hard way i.e. without using apt-get or any other package manager.(I've chosen the hard ...
3
votes
2answers
4k views

How to fix error processing package git-daemon-run?

I am trying to install php curl like so: sudo apt-get update sudo apt-get install php5-curl But I keep getting an error. Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
97 views

depreciation notice error in phpmyadmin with 16.04

I am getting errors when I launch phpmyadmin in 16.04. Here are the errors: Deprecation Notice in ./../php/php-gettext/streams.php#48 Backtrace ./../php/php-gettext/gettext.inc#41: require() ./...
0
votes
1answer
32 views

PHP doesn't work on Ubuntu 16.04

I've just got a Ubuntu machine (I'm usually a Debian user). I've installed apache2 and PHP using the below commands and restarted apache2 but when I visit the site the PHP doesn't execute (I just see ...
2
votes
1answer
24 views

How can I view the output of a .sh file placed in rc.local?

I wrote a short script to run lampp's php script. It is residing on rc.local where I first run opt/lampp/lampp and then, run the sh (which is infinite) that is echoing to the output buffer infinitely. ...
0
votes
1answer
46 views

Installing PHPexcel in Ubuntu 14.04

How to install PHPexcell in my ubuntu 14.04?
-1
votes
2answers
177 views

Install php extensions in ubuntu 16.04 [closed]

I need install the following extension with php5.6 and ubuntu 16.04, but ubuntu only install extensions for php 7 this extension i cannot install with the issue related Installing PHP 5.6 on Xenial (...
0
votes
1answer
36 views

a2dismod php7.0

I installed PHP 5.6 and 7.0 via ppa:ondrej/php on my Ubuntu 14.04 LTS machine, but I want to have php 5.6 enabled and 7.0 disabled. I tried doing that by typing sudo a2enmod php5.6 and sudo ...
1
vote
1answer
40 views

Help removing all LAMP, website and related configurations on Ubuntu 16.04 LTS

I'm very new to Ubuntu and I set up a website (mybb forum) by creating a user called webmaster then installing LAMP etc and the website folder was var/www/html. Anyways everything worked well until ...
0
votes
0answers
114 views

AH00051: child pid XXXXX exit signal Segmentation fault (11), possible coredump in /etc/apache2

I have upgraded to mysql 5.7 using this MySQL 5.5 Update to MySQL 5.7 Afer that we are receiving 500 on all hosted websites and apache2 error log contains [Thu Jul 07 03:52:24.807409 2016] [core:...
5
votes
4answers
6k views

localhost/phpmyadmin not working on ubuntu 16.04

recently fresh installed Ubuntu 16.04 removing Ubuntu 14.04. I am trying to setup LAMP on local machine and have installed PHP7.0, mySql and phpMyadmin. All is working fine, http://localhost is ...
69
votes
7answers
160k views

Global Installation of Composer (manual)

I followed composer manual (global installation of composer (manual)) to install composer on Ubuntu. $ ll /usr/local/bin/ total 4760 drwxr-xr-x 2 root root 4096 2012-03-29 08:29 ./ drwxr-xr-x 10 ...
14
votes
2answers
32k views

php5-imap on Ubuntu 14.04 is not enabled

After apt-get install php5-imap I still have to manually do php5enmod imap which seems odd and inconsistent. Is there any particular reason for this?
1
vote
1answer
226 views

Why isn't Composer updated?

I'm using Ubuntu 16.04 LTS amd64. I have installed LAMP (php5.6, apache2, mysql) and Composer. I downloaded my laravel project from github. I would like to update Composer to start the local server ...
0
votes
1answer
365 views

PHP upgrade from PHP 7.0.4 to PHP 7.0.8 Ubuntu 16.04 LTS

I have to upgrade PHP version PHP 7.0.4 to PHP 7.0.8 in order to install third party software which only supported on PHP version 7.0.6 or later. root@A# php -v PHP 7.0.4-7ubuntu2.1 (cli) ( NTS ) ...
0
votes
0answers
20 views

Why isn't the process running on background?

I am having a problem running a script (.conf file) as a background process. The script I am using which will call my php file looks like this: # Info description "Runs the Chat Web Socket" author ...
0
votes
0answers
17 views

How to install php 3

How to install php 3 ? i know it's old but i want to use Mysql to test some scripts i don't want to get this problem again Deprecated: mysql_connect(): The mysql extension is deprecated and ...
0
votes
1answer
51 views

Phpmyadmin Access denied

When I go on localhost/phpmyadmin it returns me this : Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should ...
0
votes
1answer
6k views

Error in apache configuration

Initially my PHP was running well and after that when I installed perl CGI modules in order to run my CGI programs, there was problem. From the local host, I am not able to compile my PhP files nor ...
0
votes
1answer
33 views

PHP not executing

I'm running Ubuntu 14.04 with Apache2 and PHP7. For some reason,probably after I updated the PHP version,it is no longer executing. This is the output of php -v: PHP 7.0.8-3+deb.sury.org~trusty+1 (...
0
votes
0answers
23 views

how to completely remove phpmyadmin and reinstall [duplicate]

I have a few problems with phpmyadmin on my Ubuntu, so I would like to uninstall it completely (with all configurations and that stuff) to restart a new full installation from scratch. I tried a lot ...
1
vote
1answer
26 views

Annoying access problem on /var/log/nginx

On my system (14.04), I'm not using www-data as the owner of nginx and php-fpm, using web instead. (for the curious: 1. because www-data is a ugly name, 2. for not using a user that everyone knows is ...
0
votes
0answers
41 views

How to ssh from XAMPP to local machine

This may be a strange/stupid question but I'm new to this sort of stuff! I was wondering if I can setup a ssh connection using keys between my XAMPP local server and my actual local machine? I need to ...
0
votes
1answer
41 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 ...
3
votes
2answers
468 views

Vagrant ssh (terminal freezes)

I have virtual machine with vagrant and ansible, when i connect to virtual machine with vagrant ssh, the terminal always freezes if i don't type something, the terminal is freezed. I can't type ...
1
vote
1answer
53 views

Gedit PHP syntax highlighting

Does anyone know how to fix this issue? I have PHP inline to HTML. There's an opening quotation and the inline PHP also has a quote, but Gedit thinks it's the closing quote for the HTML. Add this to ...
0
votes
0answers
15 views

HowTo : Set up PhPVirtualBox to manage remote VirtualBox instance

I am struggling to get PhPVirtualBox to manage a remote VirtualBox instance. This is all in a testing environment security is minimal and likely not the problem. IE: my username/password for vbox are ...
0
votes
0answers
13 views

apache2 and libapache-mod-php5 not fully installed?

When my computer is finishing sudo apt-get upgrade, it returns No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered ...
0
votes
0answers
31 views

Install Php 5.5 & PHp 5.6 twice on same ubunutu Machine

i have Ubuntu 14.04 installed on my PC , i have installed lamp on it by default it install latest php version available which is 5.5 , in fact i need to run php 5.4 or 5.6 so i wonder if there's a way ...
0
votes
2answers
5k 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 ...
5
votes
3answers
7k views

How can I get the `bcmath` plugin in php5 in Ubuntu?

I've seen a PHP BC-MATH installation for YUM but not apt-get. Does one know of a working apt-get solution? Unfortunately, from this SO thread, apt-get install php5-bcmath gives the error Unable to ...
-1
votes
0answers
17 views

connect from ubuntu server to pgsql in windows [closed]

I have a website that is on Ubuntu server but my database is in windows and i have config file too. how can I connect these one together? this my config file : * PostgreSQl : pgsql * MySQL : ...
1
vote
1answer
86 views

What's the difference between the php7.0-sqlite and php-sqlite3 packages?

When you use apt-get, what's the difference between the php7.0-sqlite package and the php-sqlite3 package? I'm trying to get a php PDO package
0
votes
1answer
75 views

PHP5 versus PHP7.0 [closed]

I have two programs written in PHP that have been running fine in Ubuntu Linux 12.04 LTS with PHP5. Now I am trying to run them on a new installation of Ubuntu Linux 16.04 LTS with PHP7.0. Each asks ...
0
votes
0answers
22 views

Unable to use expect_popen() after upgrading from PHP 5.5.9 to 5.6

Some PHP code I wrote requires syntax which is only available from PHP5.6 onwards. I decided to upgrade my Ubuntu 14.04 LTS server to PHP version 5.6, but unfortunately I encountered a problem doing ...
0
votes
1answer
59 views

Ubuntu Server unable to create directory in PHP

I have setup a little Ubuntu Server for developing some web apps. I have a little script that uses mkdir() to create a directory, but i am getting a permission denied, its a simple command mkdir($...
0
votes
1answer
41 views

Apache does not load php files

Everything working fine until I upgraded php version to php5.6. I have installed php5.6 using composer. when I restart apache2 server and start it again, server stopped loading php files.help please, ...
0
votes
0answers
253 views

PHP Warning: PHP Startup: Unable to load dynamic library

I got error like PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_intl.dll' - /usr/lib/php/20151012/php_intl.dll: cannot open shared object file: No such file or ...
0
votes
1answer
62 views

Limited size of MySQL INSERT

I am inserting data from .csv to MySQL database using PHP but I can't INSERT more than 922 lines. Every time the number of the lines is different, usually it is 841 or 837 but after restart my mysql-...
1
vote
1answer
21 views

Is libsqlite3-0 installed by default?

I'd like to know if libsqlite3-0 is installed by default, or if it is installed when running apt-get install phpmyadmin. I am currently running Ubuntu 16.04 I'd like to know what it is and why I can'...
84
votes
14answers
27k views

What's the easiest way to set up a LAMP stack?

I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be ...
1
vote
1answer
6k views

mbstring is missing for phpmyadmin in ubuntu 16.04

When I installed phpmyadmin in Ubuntu 16.04 LTS, it gives me an error mentioned below. The mbstring extension is missing. Please check your PHP configuration then I tried to install php-mbstring, ...
0
votes
0answers
14 views

bWAPP installation ERROR

I am trying to install bWAPP on my ubuntu gnome 16.04 computer. With this tutorial. When I try out number 6 I get an error 500. My guess is that I didn't set up php correctly. But it could be ...
0
votes
0answers
40 views

Eclipse Error Ubuntu 16.04: “Could not create the view: Plug-in org.eclipse.php”

Fellows, I have installed the eclispe via repos. I also installed the PTD tools for php development. But When I start it I get the following error: "Could not create the view: Plug-in org.eclipse....
70
votes
2answers
281k 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
5k views

Cannot install php5-fpm, Error: No Installation Candidate

I am unable to install php5-fpm from sudo apt-get install php5-fpm. It says: No installation candidate. No .deb repository link available. Does anyone have a solution?
1
vote
2answers
21 views

Using logrotate to manage logs generated by PHP

My PHP scripts generate log files and I am trying to use logrotate to manage them. File /etc/logrotate.d/php-logs: /srv/cache/*.log { daily notifempty size 800K rotate 5 missingok ...
0
votes
1answer
35 views

How to give permissions to user www-data (apache+php) to access media/user/sd card slot?

I have a php script that runs from apache2 call that needs to read files in a SD card. The SD card appears mounted in /media/user/name of SD card partition. I tried to read this answer Default file ...