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)

2
votes
1answer
3k views

Mongo Driver PHP - Can't install [sasl.h not found!]

I can't install mongo driver into my ubuntu development system. When I run the command sudo pecl install mongo I got this error: configure: error: sasl.h not found! ERROR: ...
0
votes
1answer
244 views

Postfix installed, by mail() in PHP not working

I have a new server. Just installed Postfix (apt-get install mailutils), and configured postfix as "Internet site". Works fine when I'm logged in as regular user on the command prompt and use mail ...
1
vote
1answer
1k views

Why did /usr/lib/php5/sessionclean run 50 times simultaneously on my 14.04 system?

When I sat down at my Ubuntu 14.04 system this morning, the root cron job /usr/lib/php5/sessionclean was running over 50 times at once, producing 50+ copies of the following commands: root 8147 ...
0
votes
1answer
53 views

Quick way to dump a Wordpress database without digging through configuration files?

I've got a load of Wordpress sites to move around and modify this afternoon. Yay. Like any good developer, I want to back up things before I Hulk-out and break everything. The site's files are mostly ...
0
votes
1answer
331 views

Can't access uploaded image to generate thumbnail in PHP [duplicate]

I had trouble fixing the file uploading, but then I ran chmod a+w /var/www and it worked - files were being uploaded to my specified directory. However, my script also generates a thumbnail ...
0
votes
4answers
4k views

Laravel loading error in Ubuntu 14.04

When I tried to access my laravel after successfull updation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this, sudo ...
0
votes
1answer
118 views

Laravel loading error in Ubuntu 14.04

When I tried to access my laravel after successfull installation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this, ...
-1
votes
1answer
206 views

how to add string to a specific line of file [closed]

my code is, <?php $data = file_get_contents('file.conf'); $rows = explode("\n", $data); $rcount = count($rows); echo $rcount; for ($l=0; $l<$rcount; $l++) { $rowss = $rows[$l]; if ...
0
votes
1answer
81 views

How to upgrade php in ubuntu 14.04 ?

My current version is php5.4 , I want to upgrade from 5.4 to 5.5. I'am a new to linux so Ubuntu.
8
votes
2answers
58k views

Installing PHP 5.3 in Ubuntu 14.04

I've just installed Ubuntu 14.04 and am trying to install php 5.3. But when I run apt-get install php5 it's installing php 5.5.9-1ubuntu4. I need to use php 5.3 in the system because the ...
1
vote
1answer
3k views

MySql Not starting even when status is ok ubuntu lampp

I am a Newbie to Ubuntu. I just installed the xampp Linux version through xampp-linux-1.8.3-4-installer.run file. Following are the commands that I used: cd /home/sammy/Downloads sudo chmod +x ...
47
votes
8answers
99k views

Mcrypt extension is missing in 14.04 server for mysql

The php mcrypt extension on ubuntu 14.04 shows that it is installed properly, but phpmyadmin says: The mcrypt extension is missing. Please check your PHP configuration. My current php config is ...
4
votes
2answers
10k views

NGINX and PHP downloades index.php instead of processing it

I have been banging my head for 2 days now. The issue is that the index.php is downloaded instead of being processed. I'm using Ubuntu 14.04 , Nginx, php5. The nginx/site-available/default is as ...
2
votes
1answer
652 views

What are the best practices when setting files and folder permissions as a php developer under ubuntu?

I have created and set the permissions to some files and folders under /var/www/mywebsite. For files 644 and for folders 755. I am the owner of those files and folders, since I created them ...
1
vote
1answer
105 views

Ubuntu and phpmyadmin

I've installed Ubuntu 14.04 in my VM Virtual Box, installing phpmyadmin in the process using the command sudo apt-get install phpmyadmin I configured phpmyadmin with Apache2 and advanced options, ...
1
vote
1answer
1k views

php zlib gzopen not exists

I'm using Ubuntu 14.04 and php 5.5.9-1ubuntu4 (cli) (built: Apr 9 2014 17:08:27) var_dump(extension_loaded('zlib')); => true var_dump(function_exists('gzread')); => true ...
0
votes
0answers
23 views

Installing two versions of PHP in ubuntu 14.04 [duplicate]

How to install two versions of PHP in Ubuntu 14.04. Help me, please. I need test the app of my client in PHP 5.3 because the server run in this version, but I can not uninstall the PHP 5.5 of my ...
4
votes
1answer
2k views

How to know if there are updates available?

I am running a 12.04 LTS ubuntu server. And I think it would be nice if I could be informed when updates are available. But I can't find how to know... I have tried looking at apt-get man page. From ...
5
votes
1answer
2k views

Download of “pecl/xdebug” succeeded, but it is not a valid package archive

I tried to install the xdebug in Ubuntu 14.04, but when I execute the following command: sudo pecl install xdebug it returns the error: Download of "pecl/xdebug" succeeded, but it is not a valid ...
1
vote
2answers
677 views

PHP Memcache Extension Incomplete on Ubuntu 12.04

The issue is this. I have several servers all running the php5-memcache extension on Ubuntu 12.04. The PHP documentation (on php.net) has several functions like cas that are not part of the default ...
0
votes
2answers
997 views

Installing php5-fpm but missing www.conf

I am installing php5-fpm on my ubuntu system but could not able to find www.conf file under pool.d directory. In my /etc/php5/fpm folder, there are only 2 directories - conf.d and pool.d Command ...
6
votes
4answers
25k views

Downgrade PHP Version from 5.5 to 5.4 on Ubuntu 14.04

First time I've ever needed to ask a question here that I don't think has already been answered. I've recently been working on transferring over a vBulletin site I run to a new server. Thinking that ...
0
votes
1answer
427 views

PHPmyAdmin with MySQL on the other host

How can I install PHPmyAdmin with MySQL on the other node? I actually have OpenStack cloud deployed and want to have installed Apache and PHP on one node and MySQL on the other node. Now I want to ...
0
votes
2answers
183 views

upload PHP script to var.www

I created a PHP file and would like to upload it to var/www folder to Apache2. I use Eclipse and Bluefish for uploading files. It looks like the program does not have root rights. I would like to ...
2
votes
2answers
3k 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: ...
3
votes
1answer
3k views

How to enable event MPM Apache 2.4 on Ubuntu 14.04 with thread safe PHP?

I upgraded to Ubuntu Server 14.04 expecting the default apache installation would use the new event MPM, but instead I find the old memory-eating prefork. I've successfully set up event MPM in Arch ...
0
votes
3answers
3k views

installing XAMPP error

I followed these instructions: http://ubuntuportal.com/2013/12/how-to-install-xampp-1-8-3-for-linux-in-ubuntu-desktop.html I already installed lampp in to my directory files under the opt. I am ...
0
votes
1answer
25 views

Setting up a debug/profiling environment for remote site

I'm having some issues with profiling a site that is loading slowly (close to 2 minutes). It is developed in PHP, Smarty and MySQL (using nginx as the web server), and I've been wanting to use Xdebug ...
0
votes
1answer
82 views

Access MySQL and PHP after installation

After I installed Apache2, MySQL, MySQL Client, phpMyAdmin and PHP on my Ubuntu 13.10, I tested the Apache2 using 127.0.0.1 and it works. I would like to learn how I can access MySQL and create PHP ...
7
votes
1answer
5k views

php-pear is not working after upgrading to Ubuntu 14.04 [closed]

After upgrading to Ubuntu 14.04 php-pear is failing to install any packages. sudo pear install --alldeps --force pear.phpunit.de/PHPUnit downloading PHPUnit-4.0.17.tgz ... Starting to download ...
1
vote
3answers
6k views

Install PHP in Ubuntu 14.04 LTS

I have ubuntu 14.04 LTS(32bit). I want to install php5.5. I installed apache server and I see default apache server index page on localhost correctly. But, when I try to install php5 with apt-get ...
5
votes
2answers
10k views

php not executing on apache server

I have just reinstalled apache and php5 but when I visit my doc root it just downloads a "download" file and when I try documentroot/index.php it just downloads the php, I have php installed but it ...
0
votes
1answer
11k views

Apache shows index of/ instead of default index html [duplicate]

I installed apache2 on my Ubuntu 13.10 and it works without any problems. I can see the default index page (which is located in /var/www/index.html) by typing localhost/ in the address bar Today, ...
0
votes
1answer
581 views

Can't get latest PHP or Pear in Ubuntu 12.04 LTS

I'm attempting to install PEAR, and other components.. but getting the following. $ sudo apt-get install php5 libapache2-mod-php5 php5-mysql Reading package lists... Done Building dependency tree ...
0
votes
4answers
2k views

Unable to open PHP files on Linux platform on Ubuntu

I've copied over my files over to a new directory which I have created: /var/www/worm/data.php. I tried opening it by a few ways: Double clicking the file but nothing comes out Typing ...
1
vote
1answer
58 views

Is there a man page for php pear from php-pear package?

I'm searching for man page documentation or alternatives for the php-pear package on Ubtunu 13.10. Concretely I'm stuck with the following issues (besides not finding the man page where I believe to ...
0
votes
3answers
6k views

Php doesn't work on Apache server

I installed LAMP sudo tasksel install lamp-server I can run my site, but the php code is just displayed as text. I have tried this solution, but it didn't help me. When I try to run php script ...
1
vote
2answers
320 views

index.php is downloading instead of displaying

I have set a local website from following here, I have followed everything as it is but when I access my site via Mozilla Browser, it asks me where to download and save instead of displaying the ...
0
votes
2answers
504 views

Not able to install CURL on Ubuntu 12.04 [duplicate]

When I am trying to install the following error is coming sudo apt-get install php5-curl Reading package lists... Done Building dependency tree Reading state information... Done You might want ...
1
vote
1answer
178 views

er errors Given when installing libssh2-php

Hi I'm trying to install a mail server on my ubuntu 13.10 machine, I have LAMP server installed, and works great, I want for my computer to be able to send emails (working as a server) so I decided to ...
3
votes
4answers
20k views

Run PHP from the command line

I have installed XAMPP v1.8.3 for my PHP development. I am new to Ubuntu, so I don't know how to set environment variable for PHP which is located at /opt/lampp/bin/php. I can run PHP scripts from ...
0
votes
1answer
337 views

Error installing two PHP Versions Ubuntu 12.04 with Plesk 11.5

I'm trying to install a additional PHP Version (5.5.10) on a Root Server running Ubuntu 12.04 but I keep running into errors during configure. It keeps giving me the following error: error: Cannot ...
0
votes
1answer
106 views

Can I install PHP 5.3/5.4?

I'm moving my vBulletin boards to a new server and after going through the regular steps to install LAMP, it seems it has installed PHP 5.5 which vBulletin apparently cannot work with. Can I install ...
0
votes
1answer
201 views

execute permission problem with php file

When I create a php file it have not permission execute so I can't run php file. I need to set permissions of that file. I want that all created php files have execute permission. new creation file ...
0
votes
0answers
67 views

ubuntu 12.10 install ispconfig

Hey guys I am currently working on this installation tutorial for Ubuntu 12.10 with ISPconfig/BIND/dovecot. I am currently stuck on page 4 the section where you you are attempting to start php-fpm. ...
0
votes
2answers
1k views

pecl install zip giving error ubuntu 12.04

I am trying to install zip using this command pecl install zip but I am getting below error running: make /bin/bash /tmp/pear/temp/pear-build-root9LqSPb/zip-1.12.4/libtool --mode=compile cc -I. ...
2
votes
1answer
280 views

How to develop application for OpenStack

I have installed OpenStack and everywhere I see tutorials about installing and deploying but no example about how to develop a simple app on OpenStack? using PHP Can anyone guide me?
0
votes
0answers
260 views

gpgkeys: HTTP fetch error 7: couldn't connect to host [duplicate]

I am trying to upgrade my PHP version 5.3 to 5.4 but it is throwing the error I am using Ubuntu 10.04 LTS - the Lucid Lynx Please help me to resolve this root@shanmugam-desktop:~# sudo ...
1
vote
0answers
350 views

Subdirectories Show 404 Not Found on 13.10 web server

I recently set up a web server on Ubuntu 13.10 and when I enter the external IP it works fine showing the index file of var/www/ but whenever I try to add a folder, say one called test, and I go to ...
1
vote
1answer
336 views

How to connect to SQL SERVER using php?

I have Microsoft SQL Server 2008 on Windows PC but my PHP is on Ubuntu, hosted by webfusion. I haven't configured anything at all but I want PHP to connect to SQL Server. What drivers do I need and ...