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)

7
votes
1answer
20k 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
887 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
837 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
907 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.
7
votes
4answers
33k 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
40k 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 ...
1
vote
0answers
123 views

Override pear channel in debian/pearrc to package php-savant3 [closed]

I'm packaging php-savant3 using dh-make-pear in Lucid, which makes use of CDBS's pear.mk. Savant uses its own pear channel, which I cannot configure in the build chroot (be it pbuilder, sbuild or ...
1
vote
1answer
735 views

Upgrading PHP version from 5.3.3 to 5.3.6 [closed]

I'm trying to upgrade the version of PHP installed on an Ubuntu server 10.10 from 5.3.3 to 5.3.6 I followed the instructions from here and all seemed to go well, but when I run phpinfo() it's still ...
1
vote
1answer
1k views

php not working under directory of mod_userdir (~/user)

My php code not working under directory of mod_userdir (~/user) but working fine at /var/www/ , how I can dealing with this problems ? when I open a php file under ~/user my browser prompt to ...
2
votes
1answer
552 views

Eclipse PDT plugin gives me trouble

Editor of PDT plugin jumbles the code and doesn't take responses in. I tried many things but didn't help at all. I was wondering what you guys are using to develop PHP applications for I am new to ...
5
votes
3answers
2k views

How to create a new file with content using Ubuntu One API and PHP

I'm having some problems when i try to create a new file with some content (or overwrite the content of an existing one) using Ubuntu One API and PHP. I can easily create and empty file or folder ...
3
votes
4answers
500 views

Looking for code editor software with following functionalities

I am looking for a text editor with the following functionalities for php, html and css coding: code folding based on indentation (best example is EditPlus) start at an indentation level and stop ...
3
votes
1answer
337 views

Login to Ubuntu One from iFrame

I am creating a private portal (a private website where I automatically auto-log to all my favorite website). Every website is loaded in an iframe. I am looking for a way to autologin to ubuntuone. I ...
8
votes
4answers
2k views

Ubuntu One Oauth login from PHP

I have searched the whole internet trying to find a simple example that could point me in the right direction, but no luck, so here comes my questions: I want to log into Ubuntu One and sync (or ...
0
votes
2answers
1k views

Having problems getting LAMP installed

Okay, this is like my fifth time trying to get LAMP set up on Ubuntu, and yes, that includes using XAMPP. (All I want to do is practice my PHP so I can write WordPress plugins! sob Why does the ...
3
votes
2answers
8k views

PHP Mail function and Sendmail

I'm trying to get the PHP mail() function to work. But it fails to send emails. I run Ubuntu 11.04. I installed sendmail. I opened the php.ini and set ; For Unix only. You may supply arguments as ...
0
votes
1answer
1k views

.php files are downloaded instead of being parsed by Apache

I have Xampp on Ubuntu 11.04. .php files are downloaded instead of parsed by Apache! How do I get Apache to parse them?
0
votes
1answer
553 views

Is there a binary package for php5-sqlite3 with fts3 enabled?

I would like to have PHP with SQlite with FTS3 extension enabled, as noted in Manual:SQLite - MediaWiki. I'm somewhat confused about FTS3 support in the default Ubuntu packages; from Bug #229003 ...
1
vote
0answers
833 views

recover php, html and css files using photorec [closed]

I need to recover only the above mentioned files from an ntfs partition, but i don't find these files in file opts menu of the photorec (included in testdisk 6.12). Please suggest how to go about it. ...
4
votes
2answers
332 views

Have lampp use PHP code in a directory not under /opt/lampp

I have my lampp installed in the default /opt/lampp directory and the PHP code is in the htdocs folder. Now, to edit any of the files I have to use sudo permissions and have to type my password (or ...
0
votes
1answer
261 views

Install and Run PHP in Ubuntu 9.04 Desktop edition in Live mode

my system runs on Windows XP, i need to run a PHP project in Ubuntu, but dont want to install Ubuntu on the HDD. So need to run it in Live mode, now please guide me to install PHP on Ubuntu so i can ...
20
votes
5answers
25k views

How to have two version of PHP installed and switch easily?

I want to have both PHP 5.2.17 and PHP 5.3.5 installed on my Ubuntu machine and switch as per my necessity. How can I achieve this?
1
vote
3answers
10k views

Make does not run with “sudo pecl install pdo”, why?

Here is the log file, make does not run. I followed the instructions by Ronald Bauman here. Below you can find the point where it fails. How can I debug this? /bin/bash ...
3
votes
1answer
326 views

Error while trying to install MSGPACK

I'm trying to install MSGPACK to be used with PHP, by following the wiki guide. But when I run sudo ./configure I get this error: checking PHP version... configure: error: need at least PHP 5 or ...
6
votes
2answers
11k views

Manually Start LAMP Server

I setup a LAMP server on my desktop Ubuntu install for testing web applications. How do I set it to only run when I tell it to rather than at startup? It is not used as a production web server but ...
0
votes
1answer
2k views

$_SERVER['PHP_AUTH_DIGEST'] empty with mod_auth_digest enabled

The output from sudo apachectl -t -D DUMP_MODULES Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_prefork_module (static) http_module (static) ...
1
vote
3answers
637 views

DevHelp php-doc is not available

I've been using Devhelp but find that it is too much towards python, and Gnome development. Other documentations (such as php-doc) are left out as of now. Is there a simple way to add php-doc into ...
26
votes
5answers
79k views

How to have my PHP Send mail?

I installed Ubuntu 11.04, LAMP using tasksel. I find that PHP mail() does not work. I suppose I need to enable it or something? How do I do that?
1
vote
1answer
3k views

How to I do install DB2 ODBC?

I have been trying, with no success, to install a IBM DB2 ODBC driver so that my PHP server can connect to a database. I've tried installing the db2_connect and get all sorts of problems, I tried ...
2
votes
0answers
428 views

How to setup LAMP environment? [duplicate]

Possible Duplicate: What's the easiest way to set up a LAMP stack? I have been using XAMP in windows for a long time. Recently I have moved to Ubuntu and now want to have a similar ...
3
votes
1answer
6k views

How to install and configure sendmail for php

I am running LAMP on my Ubuntu 10.04 Desktop linux and using it as a development machine. I need to send emails from my php pages, but it seems that the sendmail php command needs sendmail installed ...
2
votes
3answers
3k views

How do I save files in /var/www in netbeans?

http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/ I followed that site and installed php on my ubuntu 11.04. I'm using net beans 7 rc1 to develop programs. A small problem ...
2
votes
1answer
500 views

Problem when installing pear packages for php

When trying to install pear packages I get the following error: sudo pear install validate [sudo] password for nicolas: PHP Fatal error: Call to undefined method PEAR::raiseErro() in ...
1
vote
2answers
4k views

Unable to locate php5

when I gave the sudo apt-get install php5 command it responds with and error message "unable to locate php5"
1
vote
6answers
9k views

PHP upgrades from 5.3.2 to 5.3.6

I am using Ubuntu 10.04. And I want to upgraded my php version. When i am upgrading my PHP version(5.3.2 to 5.3.6) but After every updation Its show PHP version 5.3.2.. Edit:: I have checked "Ubuntu ...
1
vote
1answer
2k views

How to check if a user is logged in?

how do i check from within a php script, if a user is logged in? My current way is, to get the output of w | grep <username> and check, if there is output. It works, if a user is logged in ...
0
votes
2answers
3k 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
1answer
714 views

PHP-FastCGI start command not found

I have set up Nginx on my server, and now want to allow it for php files too, i followed http://library.linode.com/web-servers/nginx/php-fastcgi/ubuntu-10.04-lucid step by step. But for ...
2
votes
2answers
2k views

How to install older version on PostgreSQL and PHP5?

Because of differencies in package versions between my development machine and my provider's server, I have to downgrade packages installed on my computer. In Ubuntu 10.04 LTS default PostgreSQL ...
2
votes
3answers
2k views

What PHP & Xdebug based Editors do people use other than Eclipse, Netbeans (anything java based) or VIM

What editor do people here use in linux? I want Xdebug support but I don't want something java based (eclipse, netbeans, etc) nor do I really want to use VIM. Any native GTK based editor/sdk that ...
3
votes
5answers
3k views

Install php 5 on a fresh installation

I have a fresh installation of Ubuntu 10.10 and I'd like to get PHP to work. I've tried sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo ...
8
votes
2answers
610 views

Can I use a desktop install as a server?

I'm new to Linux and Ubuntu is my first distribution. I have chosen Ubuntu because I want to learn more about Linux. I'm under time constraints and need to setup a server as soon as possible. I have ...
0
votes
1answer
6k views

Where is the DOM XML package for PHP 5?

Is there any DOM XML package available for php5 as php4-domxml in the case of php4?
3
votes
6answers
2k views

How to upgrade to a specific version of PHP?

I have an Ubuntu 10.04 Server installation with PHP 5.3.2 installed, I want to upgrade it to PHP 5.3.5. I'm led to believe that apt-get upgrade will only install security updates, we're on this LTS ...