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
vote
2answers
719 views

unoconv cannot connect or start listener without sudo

I'm working on a website for school on the school server. My website uses unoconv. It was working up until today for some reason. Basically what is happening is that if i run this command in the ...
-1
votes
0answers
23 views

Starting a new CodeIgniter project [on hold]

I am trying to start a new project on CI. The default CI page works but when I try to start a new project it shows error stating: An uncaught Exception was encountered Type: RuntimeException Message: ...
0
votes
0answers
16 views

Upgraded PHP from 5.4 to 5.6 but phpinfo still shows 5.4

My Ubuntu 12.04 LTS server was using PHP 5.4. I then upgraded to PHP 5.6 using this How do I upgrade PHP version to the latest stable released version? instruction. No errors shown during installation ...
0
votes
0answers
15 views

index.php not executing as default index

Not long ago, I updated from Ubuntu 15.10 to 16.04. Afterward I needed to resurrect some PHP code quickly ... and discovered Ubuntu 16.04 no longer supports PHP 5 easily. Since my target environment ...
0
votes
1answer
463 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 ...
3
votes
2answers
210 views

How to know what version of PHP is shipped in a release version?

Is there a page or Wiki listing for each Ubuntu release what is the default associated PHP version ? 10.04 LTS => PHP 5.3.2 And so on...
0
votes
2answers
19 views

On localhost the file is downloading properly from ftp but not in Ubuntu server

On localhost I tried to get the ftp file from server and the local file is successfully created. But when I'm trying in Ubuntu server it's displaying there was a problem and file is not downloading ...
0
votes
3answers
3k views

PHP is not working with Apache on Lamp server

I have lamp server on ubuntu, The apache2 is successfully installed and local host is working. But I have no way to create/copy to the www folder, also my phpmyadmin is not working.
2
votes
2answers
3k views

How do I install the SSH2 extensions of PHP?

I want to be able to run PHP functions like ssh2_connect. But, those functions are not available on my machine. What do I need to do to install them? I am using Ubuntu 8.04 Hardy Heron.
9
votes
2answers
59k views

How to install PHP `mbstring` extension in Ubuntu?

What is PHP mbstring extension ? What is the perfect way to install this extension on Ubuntu 14 ? Thanks, Regards
2
votes
2answers
4k views

Permission denied while writing a file in var/www inspite of adding me to user group

I gave permissions to read and write files in /var/www to the working user(me) through the steps given in Whats the simplest way to edit and add files to “/var/www”?. It works fine when I try to ...
5
votes
3answers
299 views

change text-color of my output on command prompt?

Suppose i've a php file and i want to change text-colour of my output for a console based application... <?php $prompt = "What Is Your Name: "; echo $prompt; $answer = "You Entered: " . rtrim( ...
0
votes
1answer
43 views

phpmyadmin shows weird code

after setting up apache and everything working correctly i tried to go to localhost/phpmyadmin and now instead of showing me the login page it's showing me this weird stuff: here is one line of it. it'...
0
votes
1answer
79 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 ...
1
vote
1answer
21 views

How can I install php5-mcrypt

When I try to use sudo apt-get install php5-mcrypt to install php5-mcrypt, I receive the following error. I used sudo apt-get install lamp-server^ to install the php5 ahmad@ubuntu:/var/www/html$ sudo ...
0
votes
1answer
24 views

Install older version of LAMP in Ubunutu 16.04 LTS

I recently installed Ubuntu 16.04 LTS (I used to have 14.04 LTS and I had to reinstall everything), since I'm still working with PHP 5.6 I must install lamp environment that'll work with that, ...
34
votes
2answers
42k 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 ...
0
votes
2answers
354 views

Install pear on php 5.6

I'm trying to install pear using the following: sudo apt-get install php-pear When I execute that command however, it offers me to download and install the following: php-cli php-xml php7.0-cli ...
0
votes
0answers
27 views

Granting write permission on www-data for /var/www/[username] [duplicate]

I am new to this www-data concept, please do explain in simple words. I have a directory in the path /var/www/orbitcode. I want orbitcode to have www-data write permission. How to do this? I am ...
0
votes
2answers
26 views

What are the actual risks of giving www-data sudo nopasswd access?

I have a server that I just installed apache on. I have a php script on the server that I would like to run a sudo command from. I've been scouring the web on why giving www-data sudo nopasswd access ...
1
vote
2answers
7k views

How to run a php file after installing LAMP in ubuntu 11.10?

I installed lamp on ubuntu. Apache2 and Mysql are working fine. The folder apache2 is in /etc and contains: apache2.conf envvars magic mods-enabled sites-available conf.d ...
1
vote
1answer
4k views

Call to undefined function sqlite_open() in CLI mode

12.04 AMD 64 apt-get install sqlite php5-cli php5-sqlite php -r '$x = sqlite_open();' PHP Fatal error: Call to undefined function sqlite_open() in Command line code on line 1
0
votes
1answer
28 views

problem with .htaccess

The content file .htacces: RewriteEnergie on RewriteRule ^(.*)$ index.php?p=$1 The content file 000-default.conf: the error
0
votes
0answers
5 views

How to install php with our desired version [duplicate]

I am using ubuntu 16.06lts. Whenever i try installing php using sudo apt-get install php, php7.0 is getting installed. But i want php5.0 to work. I tried using sudo apt-get install php5.0 and it ...
0
votes
1answer
3k views

Ubuntu apt-get upgrade error on ubuntu 12.04

I am trying to use command sudo apt-get upgrade command on mu ubuntu 12.04. But is is showing me the error .This is after i upgraded my php 5.4 to php5.5. You might want to run 'apt-get -f ...
1
vote
2answers
600 views

How to handle missing package php5-cgi on Ubuntu Xenial?

apt-get install php5-cgi says: Package php5-cgi is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from ...
0
votes
0answers
12 views

PHP 5.6 sending errors through email regarding mysqli

After struggling to set up mysql and mysqli on my Ubuntu (16.04) server (PHP insisted on loading .dlls that did not exist and that were not requested in any of the configuration files), I finally got ...
0
votes
0answers
19 views

youtube-dl-php opensll not found error

I'm writing a php page that converts YouTube videos.I found one github. Github link : https://github.com/norkunas/youtube-dl-php I've completed the installation process but when debug mode is active....
2
votes
1answer
41 views

Apache can't be accessed externally

I have Ubuntu server with pre-installed apache2, mssql, php5. I install vTiger CRM and it's available on my localhost and internal IP. But i can't reach it using my external IP. I checked all setups ...
0
votes
0answers
283 views

When installing php from source configure: error: Cannot find OpenSSL's <evp.h>

I am trying to build php from source but ./configure gives error configure: error: Cannot find OpenSSL's my openssl version returns OpenSSL 1.0.2f 28 Jan 2016 and which openssl /home/nexusstar/...
-2
votes
0answers
19 views

dpkg: error processing package libapache2-mod-php5 [closed]

root@MP100RK6:/home/satishkumargupta# sudo apt-get install php Reading package lists... Done Building dependency tree Reading state information... Done php is already the newest version. 0 ...
2
votes
2answers
1k 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
3
votes
3answers
13k 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 ...
2
votes
2answers
11k views

Unable to get error stack trace or error log while using php-fpm + nginx on Ubuntu 14.04

I am using php-fpm 5.5.9 along with nginx 1.4.6 on my Ubuntu 14.04 machine. I have installed them using apt-get package manager. I am unable to get a stack trace of the error that my index.php script ...
0
votes
0answers
36 views

OwnCloud getting 404 after install on fresh Ubuntu 16.04

I am trying to install OwnCloud on a Ubuntu 16.04 server with apache2 and php7.0-fpm. My PHP is setup fine, I have phpMyAdmin running good. When I try to install OwnCloud, I am downloading the zip, ...
1
vote
2answers
177 views

Make Ubuntu acknowledge that a custom built version of PHP is installed

I'm trying to install PHP from source code on my Ubuntu 12.04 VPS. I'm using these parameters in the configure command: --enable-intl --with-openssl --without-pear --with-gd --with-jpeg-dir=/usr --...
0
votes
1answer
87 views

How to install pdo_mysql extension for Php7 [closed]

I am total newbie on Linux so may be I will have weird questions. So as I found out I have two instalaions of php on my Linux Mint. When I tried to use php in terminal I fouded out this php has no ...
0
votes
3answers
4k views

php does not parse using nginx & phpfm

I am setting up a VPS and followed the nginx, PHP, MySQL instructions for WordPress from this tutorial http://tutspundit.com/howto-install-nginx-php-fpm-mysql-php533-wordpress-ubuntu-part-1/ and then ...
0
votes
2answers
1k views

How can I install different versions of PHP in xampp

I installed the latest version of xampp i.e. 1.8.3-2 in ubuntu 12.04. I found that it include php 5.5.6 and I want the lesser php version to work on my site. How can i install the new version or ...
0
votes
1answer
13 views

PHP extensions installed through apt are not working

When I try to install PHP curl extension through apt, I get a message saying I already have the newest version installed. However, it doesn't get loaded into PHP. What are possible reasons for this? ...
0
votes
1answer
26 views

nginx 1.9 cannot start other port than 80

I installed phpmyadmin, removed apache2 then configured in /etc/nginx/sites-available/phpmyadmin as below ## # You should look at the following URL's in order to grasp a solid understanding # of ...
8
votes
2answers
25k 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 ...
1
vote
1answer
4k views

How to run php files in ubuntu?

I installed apache2, php5 and mysql. http://localhost/ url in browser shows it works. I saved a php file in /var/www/ as testphp.php. Code in the file is.. <?php phpinfo(); ?> Now on entering ...
0
votes
1answer
6 views

php version on server 12.04LTS

Php 5.3 is end of life and not receiving security updates. Can someone confirm that 5.5 or 5.6 will work properly on Ubuntu Server 12.04? Thanks.
47
votes
6answers
92k views

How to install PHP 7?

PHP 7 came out yesterday and I would like to give it a try. PHP 7.0.0 comes with a new version of the Zend Engine, numerous improvements and new features such as Improved performance: PHP ...
2
votes
1answer
16 views

disk space issues on Amazon Ubuntu?

I have an Ubuntu 12.04 server running on Amazon, it's a well seasoned instance that's been running for several years. This is not a shared hosting system, the whole thing is ours. We just started ...
0
votes
0answers
23 views

Python and PHP in Apache - 403 Error

I am doing some work on some servers. I added in python into my php, apache2, and mysql server. Now I just get 403 forbidden errors. I am using an online cloud workspace called cloud9. Here is my ...
0
votes
0answers
99 views

Install Php 7.0 and Laravel 5 offline Ubuntu 12.04.3 LTS

I have computer with Ubuntu 12.04.3 LTS with no internet(use as server) and I need to install Laravel 5. I tried to install Php 7.0 that I downloaded from here. But still something is not right, ...
0
votes
1answer
251 views

cannot find a way to install php's pecl bbcode exentsion

Is there an easy way to install php's pecl bbcode extension on ubuntu? When using it on LAMP?
0
votes
0answers
23 views

Ubuntu - PHP Multibyte Extension

I have installed the PHP mutlibyte extension for PHP 5.6 on Ubuntu server 14.04 however the application that requires it says it is uninstalled, the application is IPS. Running php -m shows mbstring ...