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
4answers
2k views

After upgrading to 12.04 from 10.04, can't login to PHPMYADMIN

I just can't login to PhpMyAdmin anymore, it says bad logins. PHP works perfectly. Please help. Thank you. 2002 Cannot log in to the MySQL server Language Log in Username: Password: Connection for ...
1
vote
1answer
672 views

How do I stop a distribution upgrade from upgrading PHP?

I have just upgraded my Ubuntu server to 12.04 - it was completed with just one "problem". PHP has been reinstalled to 5.3.10 from Ubuntu's repos. and I wanted to keep my php package from ...
0
votes
1answer
551 views

Can I use the PHP DOTNET function?

I'm a .NET developer and usually I wrote apps/services that can run under Linux using Mono. Today I started using DOTNET php function and I was able to use it on Windows/Apache: <?php try{ ...
2
votes
1answer
328 views

User in www-data group can not find command

I have installed a new application, and I wish to run it by a php script(system and exec function), so that others can run it through their browsers. I tried to run that php script in my terminal at ...
3
votes
2answers
4k views

Can't add repository due to 'missing' fingerprint

I am trying to install nginx with php but when I am following a guide, like this one: http://www.justincarmony.com/blog/2011/10/24/setting-up-nginx-php-fpm-on-ubuntu-10-04/ I am always told to add ...
0
votes
1answer
3k views

Missing php.ini after apt-get install php5

I just installed php5 as root via apt-get install php5, and for whatever reason I can't find my php.ini file. Running locate php.ini or ls /etc/ | grep php.ini both yield no results. Is there ...
43
votes
5answers
94k 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 ...
1
vote
1answer
719 views

Facebook application apache setup

I'm trying to setup the dev environment for facebook apps and I was following official Hiroku guide for setting up everything for local development ...
16
votes
5answers
65k views

How to downgrade from PHP 5.4 to 5.3

Recently I upgraded PHP to 5.4, but it seems to be failing on me because APC isn't working with it, however this gave me no choice but to downgrade to 5.3, how can I do this? I executed apt-get ...
-2
votes
1answer
12k views

How do I run Apache as root?

Ok I need to run my Apache web server as root. For this I typed echo whoami; in terminal. It gives me output: root. But when I check my apache server running as a root user or not by executing ...
0
votes
1answer
193 views

Destroy guest OS using php

I am using libvirt-php to manage my virtual machines, and I need to shutdown/destroy domU. For this I used the following php script: < ? php $conn=libvirt_connect("xen:///"); ...
0
votes
2answers
1k views

Ubuntu 11.10 LAMP is very slow

My lamp stack on a local machine is too slow. I have successfully installed wordpress but any request (e.g login,add new post) is too slow. How can i resolve what's wrong ? Thank you in advance!
16
votes
1answer
28k views

Ubuntu php5-fpm unix socket

I have Ubuntu 11.10 and installed php5-fpm and I want to configure nginx. I want to use unix sockets instead of tcp sockets but I couldn't find the /var/run/php5-fpm.sock I have looked also ...
0
votes
3answers
556 views

How much RAM will my PHP application have access to on a 32bit server?

I have a 32bit 10.04 server has 32gb ram I am running opencart e-commerce sites (php) Max How much ram can use by opencart? (32gb or 4gb?)
2
votes
1answer
953 views

How to debug a server that crashes once in a few days?

One of my servers crashes once in a few days. It does low traffic static web serving + low trafic dynamic web serving (PHP, local MYSQL with small data, APC, MEMCACHE) + some background jobs like XML ...
0
votes
1answer
464 views

How can I run PHP scripts without prefixing my scripts with sudo?

I'd like to be able to run PHP scripts without needing to use sudo in every command. My user is not root obviously. How can I accomplish this feat? I'm new to Linux, and I have a little knowledge ...
1
vote
1answer
1k views

How to Install libvirt-php?

I am trying to install libvirt-php on my ubuntu server 11.10. Could any one tell me what are the simplest steps to install libvirt-php ??
0
votes
1answer
460 views

Cannot install package `libxerces27-dev` when installing `phc` php compiler

To install phc following this guide in Ubuntu Oneiric 11.04, I get error saying that the package is not available as below screenshot. Searching for the package at ubuntu's package search page result ...
154
votes
2answers
191k views

How do I install latest PHP in supported Ubuntu versions (like 5.4.x in Ubuntu 12.04)?

I am trying to update to php 5.4 in Ubuntu 12.04, and I can only get 5.3.6 using official repositories (using apt-get). I'm not really sure how to do a manual update – I'm sorta new to ubuntu, but I ...
4
votes
1answer
13k views

Easiest way to upgrade php to latest version? [duplicate]

I'm seeing info on how to upgrade from a specific version to another, and that is what I want to do (currently 3.3.6), but is there a simple command to do this? I'm a complete ubuntu/linux noob so I ...
1
vote
1answer
2k views

Updating PHP to the latest version in Ubuntu 10.04 server edition

Please explain to me why Ubuntu 10.04 LTS Server version don't release the latest version of PHP. The PHP version is still in version 5.3.6-13 while the updated version is already at 5.3.10. Will this ...
0
votes
1answer
3k views

php5 libxml2 no version information available error

I keep getting half hourly email messages from the root cron relating to php startup error messages: Subject: Cron <root@hostname> [ -x /usr/lib/php5/maxlifetime ] && [ -d ...
2
votes
2answers
277 views

How to run Firefox without a display?

I have written a script in php that requires a browser such as Firefox to run since it contains javascript bits. I do not need any output from the process, I just need it to trigger the page, run the ...
2
votes
1answer
399 views

Memcached/APC will not start with PHP

I've compiled PHP 5.3.9 and NGINX 1.0.11 and want to use APC and Memcached with PHP. I keep getting this error when attempting to load the APC/Memcached modules: Unknown(0) : Warning - PHP Startup: ...
1
vote
1answer
3k views

How can I install php 5.2 in 11.10?

I wish to install a "legacy" php application (magento commerce 1.3) into a oneiric server. All the ppa's I've found hold packages for previous ubuntu versions. I've tried to recompile php myself but ...
0
votes
1answer
130 views

Will there be a security fix for php in 10.04 LTS?

Is there already a security fix available for the latest critical PHP vulnerability in 10.04 LTS? If not when will it be available? ...
11
votes
4answers
26k views

How to update to PHP 5.3.10 in 10.04?

I'm new to Linux and have only the basic experience with Ubuntu and installing LAMP Server. I've successfully installed all using the "apt-get install" method. My problem is I want to update PHP 5.3.2 ...
0
votes
1answer
121 views

Can I run Apache2 as my user on my Ubuntu for development purposes? [duplicate]

Possible Duplicate: Whats the simplest way to edit and add files to “/var/www”? Should I as a developer use var/www in conjuction with apache? I've gone and re-installed ...
3
votes
2answers
5k views

PHP compiler/interpreter

How to install PHP Compiler/Interpreter on ubuntu 11.04 I have latest version of PHP, but I want to learn PHP from terminal. Is there a PHP interpreter available that will run PHP programs inside ...
1
vote
0answers
87 views

How can I run php 5.2 on 10.04? [duplicate]

Possible Duplicate: How to downgrade PHP from 5.3.x to 5.2.x For drupal servers, I used to install 10.04 (lucid) + php 5.2 (karmic). Now that karmic is gone, I don't know where to take php ...
3
votes
2answers
3k views

PHP-FPM Constantly Restarting Pools - Zombie's Everywhere!

Ok so after a recent incident in which I ran "chown -R root:root" on my entire /var directory on accident (XO.. I know...) I've been dealing with php-fpm issues. I've tried fixing permissions in a ...
0
votes
2answers
3k views

How do I install Apache and PHP on 11.10? [duplicate]

Possible Duplicate: What's the easiest way to set up a LAMP stack? I would like to install Apache and PHP on my new machine, running Ubuntu 11.10, but I can't see either of them listed ...
1
vote
1answer
3k views

PHP shell_exec() in ubuntu

I am using ubuntu with libreOffice. I have installed unoconv for convert a *.odp file to *.pdf. When i run the command unoconv -f pdf myfile.odp from terminal then it works very fine. I want to do the ...
1
vote
3answers
11k views

How can I get php scripts to run locally in a browser?

I'd like to use php includes to streamline the process of making a few web pages. The problem with that, however, is that I can't seem to test them locally. They work fine on the server, but my ...
6
votes
3answers
2k views

Can I run Rails and PHP servers from same machine?

I have a Ubuntu box 10.04 that already has a LAMP stack configured on it. I would like to play around with Rails on this machine as well. Is there a way I can install Rails without messing up the PHP ...
3
votes
2answers
293 views

How often is php updated?

I am using ubuntu 10.04. I had installed php with the following command if that makes a difference: sudo apt-get install php5 libapache2-mod-php5 The PHP version on my computer is 5.3.2-1. Will ...
1
vote
2answers
2k views

Installing php5 gives an error for some unment dependencies!

When I try yo install php5 using sudo aptitude install php5 I get the following error. The following packages have unmet dependencies: apache2-mpm-worker: Conflicts: apache2-mpm which is a ...
0
votes
1answer
354 views

Executing adb from php

I am trying to run adb from PHP using: exec( 'adb devices', $output, $return_val ); but I get 126 error. I think the problem is that php is running as 'www-data' user and does not have permissions ...
1
vote
2answers
565 views

configure phpmyadmin for php4

i am new to linux and i am using ubuntu(11.01) and through google i installed php5.3, mysql apache2 and phpmyadmin each were working smooth, but i needed php4.4.9 i google and download the php4.4.9 ...
0
votes
1answer
292 views

Why do I get these strange errors when running PHP scripts?

I installed PHP and the SQLite extension using: sudo apt-get install php5-cli php5-sqlite However, each time PHP starts up, I get the message: PHP Warning: PHP Startup: Unable to load dynamic ...
1
vote
3answers
3k 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 ...
7
votes
2answers
16k views

Sending mails with PHP, LAMPP and PostFix

I've been trying for 2 whole days now, and I just can't get the most simple thing to work. The problem: Sending eMails from PHP to my eMail address does not work I've been working with Windows and ...
6
votes
2answers
3k views

Keep getting mails about xdebug

I'm running Oneiric as a LAMP development server, and have xdebug installed. It works fine, but since I set up my email so that root mails are forwarded to my gmail, I keep getting the following: ...
1
vote
2answers
418 views

Xampp PHP File Permissions with NTFS Hdd's as additional media storage

I have 4 drives in my (yes, physically in the box, sata connected) Ubuntu 10.10 system with xampp installed at the /opt/lampp/ dir on the OS drive. The OS drive (ssd, lets call it drive1 for sanity) ...
1
vote
1answer
1k views

How to open php files on Eclipse PDT Indigo

Since I have downloaded and installed the Eclipse PDT Indigo, I want to make it opens automatically files with .php extension. Before Oneiric's release, simply right clicking on any .php file, ...
3
votes
0answers
640 views

Create my own unity lens [duplicate]

Possible Duplicate: How do I start developing a lens for Unity? Is there any easy way of creating a unity lens without any big programming knowledge? I can code in php, mysql, html and all ...
2
votes
10answers
15k views

How to downgrade PHP from 5.3.x to 5.2.x

I need to downgrade my PHP to 5.2.x from 5.3.x Certain software I currently use requires it. I found all these link explaining how to do it but they no longer work because they show you how to use ...
1
vote
1answer
363 views

Open Eclipse in elevated privileges

I'm trying to run a php site using eclipse pdt. I set it up to copy the files to var/www/. It gives no error but only opens localhost/myProjName in its browser. So I'm assuming I need to give eclipse ...
0
votes
2answers
1k views

500 Error on index.php file. All other php files are working well [closed]

I've successfully installed LAMP and created some virtual hosts. Everything is working fine except index.php files. When I try access them, browser returns 500 Error, regardless of their content. ...
0
votes
2answers
558 views

Accessing Sqlite3 via php not working?

my local web server on one machine running Ubuntu 11.04 works fine using php5 to access sqlite3 - however on a new machine running Ubuntu 11.10 the same code, same structure, does not work at all - ...