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
14 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
4 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
0answers
26 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
0answers
14 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
2answers
171 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
1answer
30 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
1answer
49 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
23 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
1answer
65 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
30 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 ...
0
votes
0answers
24 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
2answers
47 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
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
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
33 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
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 ...
1
vote
1answer
38 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
0answers
20 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
1answer
50 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
2answers
107 views

I'm unable to install PHP5 in Ubuntu 16.04

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 ...
2
votes
1answer
39 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 ...
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);
0
votes
0answers
23 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 ...
0
votes
1answer
79 views

14.04 Cleanly upgrade to ppa:ondrej/php from ppa:ondrej/php5-5.6

I went through my usual server package upgrades today and discovered that ppa:ondrej/php5-5.6 has been depreciated and we must now upgrade to ppa:ondrej/php. The basic provided instructions are to ...
0
votes
1answer
191 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 ...
-1
votes
0answers
25 views

After adding php code whole website is blank [closed]

Im begginer so bear with me. I set up my LAMP on ubuntu and started to learn some php. I created a small form to learn how to make CRUD operations with MySql. Whenever I add php code, my whole website ...
0
votes
1answer
347 views

PHP 7 not working on Ubuntu 16.04 [duplicate]

I installed LAMP in my Ubuntu 16.04 but it doesn't recognize php code apparently. I created this test code: <?php echo "<h1>Teste</h1>"; phpinfo(); ?> When I access ...
0
votes
1answer
79 views

PHP Package installation error

When I install PHP this error occurs: Package 'php5-gd' has no installation candidate Additional output: Reading package lists... Done Building dependency tree Reading state ...
-1
votes
1answer
82 views

How to install LAMP server in Ubuntu 16.04 and add www document root to user's home? [duplicate]

How to install LAMP server in Ubuntu 16.04 and add www document root to user's home
0
votes
1answer
32 views

PHP not running on Apache ARM

I have installed ubuntu on a Beaglebone black. apache2 -v Server version: Apache/2.4.18 (Ubuntu) Server built: 2016-04-15T18:00:57 php -v PHP 7.0.4-7ubuntu2 (cli) ( NTS ) Copyright ...
0
votes
1answer
1k 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
1answer
21 views

Netbeans project doesn't run on localhost

I set up my ubuntu enviroment correctly, installed apache2 which is running, localhost from firefox gives Apache2 Ubuntu Default Page but whenever i try to access my website i created using netbeans I ...
0
votes
0answers
27 views

PHP5: upload_max_filesize/post_max_size security concerns [closed]

The default values of those settings are very low: < 10M (my guess is: they stem from ancient times and are not up-to-date). Hence I massively increased them to make them fit my needs. But the ...
1
vote
1answer
34 views

access my PHP application from antoher computer in the network

I use my Apache server for PHP development on my computer, but I would like to access stuff I have made outside of my computer. I usually run it of 192.168.0.55/ and the default apache page shows up. ...
0
votes
1answer
44 views

php file not running in apache 2

I am trying to run php with netbeans, when i try to run it, the echo in php is not comming in the browser, but the html file is working My code <html> <head> <meta ...
0
votes
3answers
94 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 * * * * ...
0
votes
2answers
20 views

php5-common package unmet dependency

I went to update the distribution of Ubuntu so I ran Terminal, entering apt-get dist-update and got this error: php5-mysql depends on php5-common (= 5.6.21+dfsg-1+donate.sury.org~precise+1); ...
0
votes
1answer
62 views

PHP 7 version is not working in Ubuntu 12.04

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) ...
0
votes
0answers
20 views

How do I setup multiple memcached instances running on different ports?

I am running Ubuntu 15.10 and already have memcached installed on my system. My current project requirement is to run two instances of memcached on the same server but with different ports. I start ...
0
votes
0answers
8 views

Simple softlink to apache root

I have noticed that when I open a file via a desktop shortcut, the path that gets used by the application (sublime3) is the one via the desktop rather than the actual location of the file. This is ...
0
votes
1answer
48 views

how to configure wordpress to run with PHP 7

I have a dev wordpress instance and want to test compatibility of WP and plugins with php 7. I installed php 7 using ppa:ondrej/php. Now I have two PHP installations and Wordpress is still using php ...
0
votes
0answers
19 views

Apache2 URL not found mystery

I've been running a LAMP stack on a 15.04 dev machine for about a year without a problem. I have some sites running on localhost and others resolving from virtual hosts. No problems at all. ...
2
votes
0answers
36 views

Error after attempting to update php lampp and reinstall lampp

I tear my hair, it's been almost one day I try to reinstall lampp but it doesn't work. It's been almost one day I try to reinstall lampp on my ubuntu 14.04 LTS in vain. I installed first lamp with ...
0
votes
1answer
17 views

How do I upgrade php from php 5.5.3 to php 5.5.9 in ubuntu 13.10? [closed]

I want to upgrade my php from php 5.5.3 to php 5.5.9 in ubuntu 13.10. I tried this: How do I upgrade PHP version to the latest stable released version? But couldn't get through.
-1
votes
4answers
98 views

Any good alternatives to Notepad++ for code editing in Lubuntu? [duplicate]

what are the good alternatives to Notepad++ for code editing in Lubuntu? I'm a web designer mostly wanting a good editor for php, html and css editing. I've been using Notepad++ on Windows so ...
0
votes
1answer
39 views

php.ini per-directory won't parse (using FastCGI)

Ubuntu 12.04 Apache 2.2.22 PHP 5.3.10 [running as libapache2-mod-fcgid] [trying to match a development server vs. my web host] I managed to get fcgi to work using a wrapper and have registered the ...
0
votes
1answer
23 views

php include file extension

I often see examples in PHP that use .inc files to include but I can't connect to my mysql server in Ubuntu 14.04 using lamp. I have also used .php in my file to include but it does not still connect. ...
1
vote
1answer
222 views

E: Unable to locate package php5-imap

I am trying to install PHP imap on Ubuntu Server 16. Following the steps on: php5-imap on Ubunut 14.04 is not enabled $ sudo apt-get install php5-imap E: Unable to locate package php5-imap
0
votes
0answers
13 views

Using Sendmail for local testing of php mail()

I want to catch the contents of a php mail() call in a text file on a local system with no internet connection using sendmail. I have set the sendmail path in php.ini to 'cat > ...