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
3answers
9k 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
320 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
10k 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
620 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
76k 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
2k 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
497 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
707 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
605 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 ...
0
votes
1answer
989 views

Running PHP-CLI server

Good day everyone, I recently got interested in the WebSocket technology. I built myself a server using PHP which I ran on Windows using the PHP CLI. That was fine for development, but now I need to ...
3
votes
4answers
16k views

Upgrade PHP version to 5.3 on Ubuntu

How can I do a version upgrade from 5.2 to 5.3? php update/upgrade is saying I'm using the latest version. I'm using Ubuntu Server 9.04
6
votes
3answers
26k views

Default file permissions for php user www-data

I have a php installed on my ubuntu machine. The web root is /var/www I set the permissions for this folder like so: sudo chown -R ftpuser:www-data /var/www ftpuser is the user I set up so I ...
2
votes
3answers
5k views

How to fix phpMyadmin login?

I've isnstalled phpMyAdmin with apt-get install phpmyadmin. When I open "http://localhost/phpmyadmin/", enter "root" as the user name and my MySQL root password and press go, then if I use Firefox, I ...
4
votes
3answers
1k views

Chrome mistakenly downloads localhost/wordpress pages, but Firefox doesn't

I have Wordpress installed at http://localhost/wordpress When I try and view a page in Chrome, it downloads the PHP file rather than showing the page. When I view in Firefox, everything works fine. ...
4
votes
1answer
8k views

Broken Packages: php-apc: Depends: phpapi-20090626+lfs

I need to install php-apc on Ubuntu 10.04 and Ubuntu 9.04 First of all, can I just install this package to make it work with php 5.2 + lighttpd on these Ubuntu versions ? I've tried to install it on ...
3
votes
1answer
853 views

Installing APC on lighttpd + php 5.2

I've found this tutorial to install APC on servers with lighttpd + php 5.2 on Ubuntu 10. However, when I run sudo pecl install apc the package is just downloaded and is not installed. (i.e. I'm not ...
1
vote
0answers
472 views

Good php editor [duplicate]

Possible Duplicate: What are some good PHP editors? i have seen through other questions on the topic but most are a bit old. I looking for a good editor for developing on PHP in ...
0
votes
2answers
185 views

Web developing- Strange happenings

As I'm teaching myself PHP and MySQL during break, I'm experimenting coding in a Ubuntu virtual machine where Apache, MySQL and PHP have been installed and configured to a shared folder. I'm not a ...
1
vote
1answer
9k views

How do I enable a user to sudo without password?

I have a php script with this: <?php #echo exec('whoami'); $output = shell_exec('bash /usr/local/svn/bash_repo/make-live'); echo "$output"; ?> The make-live script contains this: ...
4
votes
4answers
373 views

How to work on *.php pages without LAMP

I am learning PHP, which means I'd have to install LAMP on my laptop and I think LAMP would degrade my battery life which is already very low, So is there substitute to the LAMP so that I can see how ...
36
votes
3answers
95k views

Where are the Apache and PHP log files?

I've installed Apache, PHP, and MySQL on Ubuntu 10.10 desktop edition, and it's working fine. Except I have no clue where to look for Apache or PHP log files.
9
votes
2answers
3k views

What does .: mean in php include_path?

I'm trying to install Zend on a machine running xampp. Zend's help file says that in order to set up the command-line tools, I need to make sure that the contents of the /library directory are placed ...
0
votes
3answers
10k views

Installing phpMyAdmin from repository, 403 Forbidden error

I have installed phpMyAdmin from the repositories, but I get 403 forbidden when I access http://localhost/phpmyadmin/index.php Apache is running fine, and so is PHP (I'm using apache2-mpm-worker with ...
4
votes
1answer
5k views

Debugging php with gdb

I am attempting to debug a SIGSEGV on PHP on my Ubuntu 9.10. I've installed php5-dbg to have the debug symbols available, however, when I start gdb, it shows the following output: Reading symbols ...
1
vote
3answers
4k views

How to use VirtualBox as a SQLServer Host?

I installed Windows server 2008 and SQL Server 2008 on VirtualBox, now I want to remotely connect to it via php. I don't know what kind of network connection is needed, how to set it and...
1
vote
4answers
7k views

Apache alias not working correctly

I have added these lines in my 000-default virtual host file: Alias /antoniocs/project "/home/antoniocs/www/project" <Directory "/home/antoniocs/www/project"> Options Indexes FollowSymLinks ...
8
votes
1answer
9k views

How to set up PHP with Nginx, APC and PostgreSQL?

I use Ubuntu Server 10.10 and I would like to set up a web server environment with NginX, PHP 5.3.3, PostgreSQL and preferably APC and PHP Suhosin. I have already set up PostgreSQL with apt-get ...
76
votes
5answers
138k views

How do I install curl in php5?

I currently have PHP 5.3 installed with Apache in 10.04 Lucid. How can I add the PHP Curl libraries? Do I need to install any other dependencies for curl?
0
votes
2answers
378 views

After upgrade to 10.10, mediawiki on postgres is broken

I upgraded to Ubuntu 10.10 from 10.04. 90% of the upgrade was ok but my Ubuntu-apache2-postgres-8.4 - mediawiki1.16 does not work anymore. Is there a bug in the postgres client or in php5 pg?
3
votes
1answer
1k views

Webmin seem to think Apache isn't started when it really is, how do I fix this?

I performed a sudo apt-get install lamp-server^ on my Ubuntu 10.10 desktop for development purposes and then installed Webmin. Now, Webmin doesn't seem to think Apache is running when it really is, ...
1
vote
1answer
544 views

Should I use spawn-fcgi or dotdebs php5-fpm?

I am setting up an Ubuntu server with nginx, php and mysql. I have found two options for fast-cgi php. Firstly I can use the spawn-fcgi package and make some startup scripts, similar as done here ...
23
votes
10answers
26k views

What are some good PHP editors? [closed]

I'm currently using PhpStorm by Idea JetBrains, but its buggy and I'm really looking for something that will allow me to get work done without too much hassle. Please limit one IDE/Editor an answer.
4
votes
1answer
3k views

Custom php.ini for VirtualHost

Is there a way to use a different php.ini file foreach VirtualHost in apache? I know that there are the php_admin_values <Location /stat/> php_admin_value safe_mode off </Location> ...
4
votes
4answers
8k views

http://localhost/ not working

I've just done a fresh install of Ubuntu (10.04.1) plus LAMP (via sudo tasksel install lamp-server) and everything is working fine. However, it does so until I need to work on localhost when I do not ...
0
votes
3answers
798 views

How to install php-gtk?

I can't find it in the repositories.I am using Maverick.
3
votes
2answers
789 views

How do i create my own php 5.3.3 package/ppa?

I really would like to create a package for php 5.3.3 and then make a ppa for it (I would like the php-fpm support but inside the newest release), however this question goes further than this. I ...
9
votes
4answers
5k views

How to rollback to PHP 5.2?

I have just installed a 10.04 LTS on my development server but the system that I need to run on it (Magento ecommerce) is not compatible with PHP 5.3 which ships with the newest version of Ubuntu. Is ...