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)

-1
votes
0answers
15 views

connect from ubuntu server to pgsql in windows

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 : ...
0
votes
0answers
14 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
35 views

PHP5 versus PHP7.0

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 ...
1
vote
1answer
29 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
1
vote
1answer
19 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'...
0
votes
1answer
34 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
9 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
21 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....
0
votes
0answers
10 views

Adding extensions to PHP installation

I want to add the pthreads extension to my existing vagrant Ubuntu 14.04 installation. For that to work, PHP needs to be configured with --enable-pthreads=static --enable-maintainer-zts. What is the ...
0
votes
1answer
27 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 ...
0
votes
0answers
23 views

PHP Scripts doesn't executed

I installed LAMP server successfully.But,I didn't have permission to save my php scripts in var/www/html folder.Then I ask it from this forum and fix it. Now what happen is I can save my phps scripts ...
1
vote
2answers
16 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
41 views

You don't have permisission necessary to save the file,PHP Apache [duplicate]

I just installed LAMP server, which works fine. But when I code a PHP script and try to save it in /var/www/html, it says: You don't have permisission necessary to save the file Help me! How do I ...
-1
votes
1answer
26 views

Symfony2 variable does not pass to twig [closed]

I am trying to pass variable to the twig with this function in the controller public function profileAction(Request $request) { $items = $this->getDoctrine()->getManager()->...
0
votes
0answers
19 views

drush status error

I am a newbie to Linux. I need to install drush on my Ubuntu 14.04. Application is built with PHP 5.3 and Drupal 6 (my version is 5.3.29, PHP was installed with phpbrew and then switched to 5.3.29). ...
0
votes
1answer
52 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($...
-2
votes
1answer
33 views

chmod not assigning permissions properly?

We are testing osTicket which is an open source ticketing system and have set everything up, but when we try to connect to the page we get blank results with the following error logs: [:error] [pid ...
0
votes
1answer
33 views

14.04 php5-mcrypt openCart

I have a problem with php5 extension mcrypt. The command php5 -m | grep mcrypt Outputs: mcrypt But during openCart install I see extension mCrypt not installed. I've restarted apache with: ...
0
votes
0answers
28 views

PHP errors in /usr/sbin/a2query

I am new to Ubuntu, currently on 14.04, I develop on Windows but want to do same on Linux(Ubuntu) I tried to open a PHP file from localhost, I get a blank page. I checked if the PHP module is loaded I ...
0
votes
0answers
32 views

How do I fix: PHP Fatal error: Call to undefined function Illuminate\\Encryption

PHP Fatal error: Call to undefined function Illuminate\Encryption\mcrypt_get_iv_size() in /var/www/html/application/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php on line 303 I am ...
0
votes
0answers
27 views

fastcgi cache in nginx is not caching the same page for all users

I'm using Ubuntu 14.04 server, and I just found out that fastcgi cache is not caching the same page for everybody. I thought it did. I ran some new PHP GeoIp code that displays the user's country name,...
0
votes
2answers
164 views

502 Bad Gateway nginx php7 fpm

I tried to install nginx and PHP7 with fpm using this tutorail https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04 When i try to access any php file I get 502 Bad ...
0
votes
0answers
19 views

Problem with non-root users crontab and CLI PHP

I'm stuck with the following problem and cannot seem to resolve it and would like some help if possible... I have created a user (lets call it user) and have edited the crontab for that user and have ...
0
votes
0answers
29 views

Cannot access phpmyadmin on xampp on 16.04 LTS

Every time I try to access phpmyadmin on my XAMPP I get this message: Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ...
0
votes
1answer
24 views

Could not find driver error

When I try to run index.php using this command - php -S localhost:8080 I get "could not find driver" error. But php files not using mysql runs correctly. What may be the issue and how do I fix ...
1
vote
1answer
115 views

Ubuntu 16 php5.6 gd extension

I'm running ubuntu 16 and I'm trying to install php5.6 extension GD. I understand that php5.6 isn't available anymore in the default ubuntu repo's. I followed How can I downgrade from PHP 7 to PHP 5....
0
votes
1answer
69 views

Ubuntu 16.04 phpinfo shows blank Page

After installing MYSQL APACHE2 and PHP7 when I go to see phpinfo page it shows a blank page. During installation process I am not able to install libapache2-mod-php7 in Ubuntu 16.04. It give error ...
0
votes
1answer
36 views

Lampp (xampp) stop after reboot, not work autostart on Ubuntu

I am working with Ubuntu Server 15.04, I have a problem at some point in the night the computer restarts or shuts off the power goes out or simply stops working the lampp (Xampp) apachefriends, I ...
0
votes
0answers
24 views

url with controller and action name not working

I am new to Ubuntu. I installed php, mysql and apache successfully. Now when I type http://localhost/my_project_name/, it works properly but when I type http://localhost/talentrack/my_project_name/...
0
votes
0answers
19 views

Can I use one phpMyAdmin per virtualhost?

I worked on ubuntu 16.04 server, I will host multiple domains on my ubuntu server with apache virtualhost, my question is how to make phpmyadmin show only database created on my virtual host ? For ...
0
votes
0answers
28 views

website displaying php code instead of running it

5 and ioncube to run GameCP but when i go to the installer page it comes up with the whole php code it's self it doesn't run the php to install what am i missing?? if you have any idea please help i ...
0
votes
0answers
28 views

localhost host files not running ..its downloading..? [duplicate]

While clicking or running a project in http://localhost in my ubuntu machine,... its just downloading a file..? why.?
0
votes
2answers
94 views

Can't install php 5.4 on Ubuntu Server 16.04

I'm trying to install php5.4 but i can't find it in the packages, I added also paa or ppa repository and nothing... I specifically need 5.4 cause all the php files aren't working so well on latest ...
0
votes
0answers
25 views

DNS lookup failed

I have an ubuntu VPS running apache2 with all php5 packages, mysql and phpmyadmin installed. I was following a tutorial to set up something and a required command was "a2enmod rewrite". After I ...
0
votes
1answer
71 views

unable to apt-get -y build-dep php5 php5-mcrypt

when I try to do "apt-get -y build-dep php5 php5-mcrypt" the resault is : Reading package lists... Done Picking 'php-mcrypt' as source package instead of 'php5-mcrypt' Reading package lists... Done ...
0
votes
1answer
30 views

403 with php in lighttpd

ubuntu server 16.0.4 LTS, MySQL, lighttpd, php, phpMyAdmin followed the instructions in https://www.howtoforge.com/tutorial/installing-lighttpd-with-php7-php-fpm-and-mysql-on-ubuntu-16.04-lts/ html ...
0
votes
0answers
52 views

Problem with installing php on Ubuntu 16.04

Entering this into the terminal: sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql gives me this output: it@it-Latitude-E6410:~$ sudo apt-get install php7.0 php-pear ...
1
vote
0answers
38 views

PHP not working after updating from 5 to 7

I updated PHP 5 to PHP 7, but I noticed the old version was still configured in my Apache server, so I uninstalled it. Then everything got messy and being all this confusing as this is unless you're ...
0
votes
0answers
138 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
0answers
35 views

Apache Installation Validation

I install apache for web server by following method and this Question is for Validate my installation sudo apt-get update sudo apt-get install libapache2-mod-fastcgi php5-fpm apache2-mpm-event ...
0
votes
1answer
50 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-...
0
votes
0answers
18 views

Ubuntu ufw external url calling

I got a Network firewall related issue While calling one external(third party web service) URL from Ubuntu server. It showing one warning in Apache logs as follows file_get_contents failed to open ...
0
votes
1answer
85 views

Uncaught PDOException: could not find driver after upgrading to ubuntu 16.04

After upgrading my php automatically upgraded to php7.but phpinfo(); shows no value on PDO section. and P.S pdo is showing Uncaught PDOException: could not find driver
0
votes
2answers
58 views

PHP-APC error please help

I am trying to install php-apc plugin and I am getting an error. sudo apt-get install php-pear php5-dev libpcre3-dev Reading package lists... Done Building dependency tree Reading state information.....
0
votes
0answers
48 views

Can't get correct permissions for /var/www/html/

I've read several threads here talking about this issue and tried all the solutions provided, none of them are working. Whenever I try composer install I get a bunch of errors saying cannot install [...
1
vote
1answer
213 views

E: Unable to locate package php5-intl Ubuntu 16.04

I try to update composer but got this error: Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested PHP extension ext-intl * is missing from your ...
0
votes
0answers
13 views

laravel 4.2 environment not working with homestead on ubuntu

I created this question in stackoverflow too. Anyhow I know there's a post in ubuntu with the same question and they mentioned upgrade vagrant but I am already using 1.8.1 but no luck. How to make ...
-1
votes
0answers
28 views

apache2 problem

I've installed apache2, php, mysql and wordpress. After some time I deleted all of them (purged). Now when I fresh installed them again (this time without wordpress), my localhost isn't showing ...
0
votes
0answers
40 views

how to install php7-java bridge in ubuntu

When i give php -v in terminal i am getting this result mukund@mukund-ThinkPad-Edge-E431:/var/www$ php -v PHP 7.0.6-9+donate.sury.org~trusty+2 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group ...
0
votes
0answers
14 views

Problems with PHP and / or quexf

first of all: I am a newbie. I wanted to set up a localserver with apache on Ubuntu 14.04, which worked quite well so far. --> I received the "It works" page. So I went on with installing stuff for ...