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
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
272 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
393 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
291 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
345 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
564 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
291 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
415 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
354 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
556 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 - ...
1
vote
1answer
344 views

Custom php version when installing LAMP

Does anyone knows how do we force a php version to be installed when installing lamp via command line? For example I want to php5.1 when installing LAMP.
1
vote
1answer
1k views

Why do apache2 upgrades remove and not re-install libapache2-mod-php5?

We repeatedly see that when an apache2 update arrives and is installed it causes the libapache2-mod-php5 package to be removed and does not subsequently re-install it automatically. We must ...
0
votes
2answers
1k views

php change uploaded file owner [closed]

I installed php5 , mysql and apache2 without any error. Everything is working fine. apache2's Root directory is /var/www (permission is 775). Problem is when i upload a file using php code it change ...
1
vote
2answers
567 views

FFmpeg converting to flv but with 0 file size

I'm having problems regarding conversion of video to flv format. Below is my command for conversion, but it seems to convert the video to flv but the file size remains 0 KB, what could be the problem, ...
4
votes
1answer
2k views

How to install php 5.3.8 and mysql 5.5?

What is the best way to install mysql 5.5 with php 5.3.8 (latest version)? as most of common repositories have only older versions.
3
votes
2answers
11k views

Call a shell script from PHP, run as root

I'm running ubuntu 11.10. I want to be able to call a shell script from php and run that script as root. When my php attempts to call the shell script as root --like this: $output = shell_exec('sudo ...
5
votes
3answers
23k views

How to install 32-bit version of libstdc++.so.6 on a 64 bit machine

I need to install the 32-bit version of libstdc++.so.6 on a 64 bit Ubuntu 8.04.2 server. when i tried apt-get install ia32-libs, it says root@devserver:~/downloads# apt-get install ia32-libs ...
4
votes
1answer
2k views

How to setup sudoers for Apache web service?

# User privilege specification root ALL=(ALL:ALL) NOPASSWD: ALL apache ALL=(ALL:ALL) NOPASSWD: ALL me ALL=(ALL:ALL) NOPASSWD: ALL In Fedora both works: http://localhost/test echo ...
8
votes
1answer
22k views

How do I enable the mod_rewrite Apache module for Ubuntu 11.04?

In other linux like CentOS, it works but i am not getting it running in Ubuntu 11.04. /var/www/html/folder/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module ...
0
votes
2answers
915 views

Terminal says 'Broken package' when using apt-get to install phpMyAdmin

I have tried to install phpMyAdmin using the sudo apt-get install phpmyadmin command> The terminal says that there are "uninstallable" dependencies, therefore the package is broken.Perhaps the ...
2
votes
1answer
847 views

PHP using different libxml2 version, than the one installed in /usr/lib/

I tried to install Mediawiki, which told me to update my libxml2 to at least version 2.7.3. So I've checked that and found /usr/lib/libxml2.so.2.7.6 to be installed. xml2-config --version also returns ...
0
votes
1answer
1k views

apache userdir and permissions to write public_html (suPHP)?

I have set ubuntu 10.10 server with LAMP. I use USERDIR mod for apache, but when I install some CMS systems for user like Concrete5, I need to set chmod 777 to some directorys to write data with CMS. ...
0
votes
2answers
1k views

How do I install an older version of the php5-mhash package?

I have my PHP Version pinned at 5.2.x, Here is the command line output php -version PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10) Copyright (c) 1997-2009 The PHP ...
5
votes
3answers
8k views

Downgrade PHP to PHP5.2?

I want to install PHP 5.2 in Ubuntu 11.04 , I had some script that did that thing good but only on Ubuntu 9, anyone has a script / instructions how to do it?
2
votes
2answers
914 views

Server error everytime there is a php error

I keep getting HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request. Whenever there is something wrong with my php ...
2
votes
1answer
2k 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.
10
votes
4answers
37k views

How to compelety remove php?

I need to clean up my server from PHP 5.3 packages (there are plenty of them) in order to be able to compile PHP 5.2. I am wondering what is the easiest/safest method to get rid of them all? Thanks
11
votes
3answers
42k views

PHP not working in Apache2 after system upgrade

Recently upgraded my system from Karmic to Lucid. This involved Apache and PHP being updated I believe. Now my server is unable to handle PHP files, any navigation to them is triggering downloading ...
10
votes
2answers
1k views

Can a server handle simultaneous shell commands?

I'm writing a very simple browser based MP3 player in PHP. Part of this project requires that every MP3 file is converted to a WAV file. There's a function in PHP called shell_exec that allows you to ...
2
votes
1answer
2k views

php5-fpm incomplete install - no config file

I've set up a server with Ubuntu 11.04 and Nginx+PHP-FPM+Varnish+APC+MySQL+Memcached+WordPress. Everything runs pretty nice, but there is a tiny problem with the PHP-FPM service. Install goes OK after ...