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)

4
votes
1answer
5k views

Connection failed to open the DB connection: could not find driver

I am newbie for ubuntu and I was trying to run lamp. I installed mysql, and pdo extensions. when i show config(with phpinfo()): Configuration File (php.ini) Path: /etc/php5/apache2 Also I see mysql ...
0
votes
1answer
406 views

SVN privilege for newly created user

I am required to create a new user and then svn co into the newly created user's home directory by calling a bash script from a php page. The below example is a line from the sudoers file which I saw ...
1
vote
3answers
8k views

How do I get php5 running?

I have just installed php5 on Ubuntu, but it's not running. How do I get it running? Or more generally, how do I start an application software that doesn't have an entry in init.d?
5
votes
2answers
15k views

apache2 - php5 file upload and post max size

I've installed from the official repos the LAMP server. Into the file /etc/php5/apache2/php.ini i've changed post_max_size = 8M to post_max_size = 32M and upload_max_filesize = 2M to ...
0
votes
1answer
3k views

how to find the PHP folder when configure one software?

When I want build-mapserver with php/mapscrit module, I should use the ./configure --with-php= ../php-4.3.11(the dir of PHP), but I do not know the PHP dir on my OS. I apt-get install the PHP and I ...
0
votes
1answer
476 views

xdebug 2.2.1 installed but not working with cgi

I've installed (via pecl) xdebug. It is installed (as phpinfo() output indicates), but it doesn't seems to work with CGI (with CLI it works). I've restarted apache, without result. Any ideas? Some ...
0
votes
1answer
652 views

Mail Delivery System and GMAIL error

After following the following tutorial: http://blog.seeit.org/2010/08/php-mail-with-ubuntu-desktop-and-gmail/ in order to send email through Gmail. I get the following error: Mail Delivery System ...
1
vote
2answers
2k views

How do I create a new text file with a new name from a phpscript everytime it is executed

I use a Php script which is actually for sending sms from the terminal using an online sms service 160by2 What it does is opens the terminal,asks for the number then the sms and it is sent... Now i ...
2
votes
1answer
461 views

How to compare two package version numbers

I'm writing a script in PHP that needs to compare two package version numbers to determine which is newer. PHP has a handy function called version_compare(), but it gets really confused with some of ...
1
vote
2answers
4k views

How to run a php file after installing LAMP in ubuntu 11.10?

I installed lamp on ubuntu. Apache2 and Mysql are working fine. The folder apache2 is in /etc and contains: apache2.conf envvars magic mods-enabled sites-available conf.d ...
0
votes
1answer
822 views

I can't reach phpmyadmin

I have installed php,apache and mysql. After phpmyadmin using this code: sudo apt-get install phpmyadmin I can see any problem when i'm installing phpmyadmin. But I can't reach. I fellow ...
5
votes
3answers
7k views

Downgrade form php5 5.3.10 to php5 5.3.2 in ubuntu 12.04

i wanted to install php5 5.3.2, so first deleted all the php5 files sudo apt-get purge php5 php5-cli php5-common php5-mysql and also delete the deb files form /var/cache/apt/archives so now ...
3
votes
2answers
3k views

How do I install the ClamAV extension for PHP 5?

I'd like to automatically scan uploaded files for viruses with php. There was an extension called php-clamavlib in earlier versions of ubuntu, but on Natty I get E: Unable to locate package ...
0
votes
3answers
2k views

Installing php4 in a php5 environment

While there are many answers about running php5 and php4 together I haven't found answers that address my specific scenario. I setup a new Ubuntu 12.4 server installed apache 2 and PHP 5.3. I have a ...
10
votes
1answer
19k views

Nginx/PHP-FPM “Access denied.” error

I'm trying to set up a freshly installed Ubuntu (12.04) server, but I can't get PHP files running through php-fpm. No matter what I do, I always get a "Access denied." page (plain text, not html or ...
1
vote
2answers
155 views

How can I help Ubuntu as a developer?

I am intermediate Java/Python/PHP developer, but I really would like to help build something for Ubuntu for free. How can I do that?
1
vote
1answer
2k views

mod_rewrite not working

For some reason I can't get mod_rewrite to work. I have it enabled and it is visible under phpinfo() and I have the appropriate permissions enabled. What's going on? 000-default: <VirtualHost ...
1
vote
2answers
959 views

How to access apache log file via php (Not parsing Log file)

Is there a way that I can access Apache Log files from my PHP page. Normally the apache will not allow access to outer folders. Is there any alternative way to access log files? If I get those logs I ...
0
votes
1answer
556 views

Libvirt-php Creating Domain

Could you tell me how to create a new domain? From PHP API Reference guide: http://libvirt.org/php/api-reference.html I have seen these functions: (i) libvirt_image_create($conn, $name, $size, ...
1
vote
1answer
254 views

/build folder used by PEAR

I've just noticed a root directory (/build) which I can't seem to find any information for. It looks like it's some sort of staging ground for PEAR (PHP). There are only two folders of different php ...
0
votes
1answer
496 views

Cronjob not working

I have added a new line to my crontab file, but this line won't work. This is the code of my crontab file: # Music scrobbler # Every 5 minutes */5 * * * * php -f /var/www/Music/scrobble/index.php # ...
11
votes
3answers
19k views

Installing APC. Use pecl or apt-get?

I have seen guides that use apt-get install php-apc and guides that use pecl install apc. Is one method better then the other? Or is just two different methods of installing the same thing? What is ...
0
votes
3answers
1k views

MySQL and PHP problems

I'm new in server-side programming. I need lampp and mysql running on my computer. I have installed mysql using tasksel lamp-server, and then install php with apt-get install libapache2-mod-php5 ...
9
votes
2answers
15k views

How do I install PHP-FPM 5.4 on 12.04?

I would like to install PHP 5.4 with FPM on a 12.04 virtual machine. The popular PPA solution for installing PHP 5.4 doesn't seem to include the php5-fpm package. What's the best way to install this ...
1
vote
1answer
384 views

Downgrading LAMP's PHP?

i'm somewhat new to Ubuntu. I am a web developer, and I've been trying to install LAMP properly so I can test my creations. Here's my issue, I use PHP 5.2.5 to program as I find it to be the superior ...
3
votes
1answer
371 views

Upgrading a live 8.04 LTS server to More uptodate version

Running Apache, MySQL, PHP with Moodle 1.9.9 running as a school based CMS. All possible updates for 8.04 have been applied. Moodle 2.x from Versions 2.1 onwards needs Php version 5.3.2 which is ...
1
vote
1answer
1k views

I want to install php 5.3.9 in ubuntu 12.04 via apt-get - what repository should I add?

I want to install php 5.3.9 in ubuntu 12.04 via apt-get. apt-cache show php5-fpm only lists 5.3.10-1ubuntu3.1 and 5.3.10-1ubuntu3. There is a critical bug in 5.3.10 ( ...
0
votes
1answer
1k views

Why isn't this simple CRON job working?

I am on Ubuntu server and would like to send an email to myself every 10 minutes (as a test). The code for that is in this file: /var/www/cron-test.php To set up the cron I typed: crontab -e ...
0
votes
1answer
38 views

Bash error suppresion

I'm using PHP script from cli, the script calls exec() few times. There are some minor errors sometimes, which are handled by php script. I'm suppressing the errors by appending 2>/dev/null to the end ...
0
votes
3answers
858 views

Shell Scripting for Linux Server Administration

I recently started learning Linux(Ubuntu), and i'm aware that Linux has it's own form of language i.e Shell Scripting. What i'll like to know is that is this language enough to administer a Linux ...
2
votes
2answers
1k views

Web Development on Ubuntu

I recently started learning Ubuntu, and i'll like to know if it is possible for me to practice and develop Web Applications with PHP/MySQL and HTML/CSS on Ubuntu, develop Linux based Applications/GUI? ...
8
votes
2answers
20k views

I cannot save php.ini in ubuntu 12.04

I want to change the upload_max_filesize = 2M to 50M, then I started edit on php.ini, but when try to save it, it displays error message below Could not create a backup file while saving ...
2
votes
1answer
257 views

How to get the procedural interface back?

Setting up a new machine, I just discovered the procedural interface to SQLite3 seems to be gone: PHP Fatal error: Call to undefined function sqlite3_open() Is there any way to get that back again? ...
3
votes
1answer
2k views

Make `php` recognized as a command in terminal [closed]

I have XAMPP installed and my PHP is: /opt/lampp/bin/php-5.3.8 Every time I need to execute a PHP file I need to do this: /opt/lampp/bin/php-5.3.8 testando.php Is there another way to execute it ...
1
vote
1answer
2k views

Incompatibility between WP super cache and PHP APC?

I'm using the "WP super cache" WordPress plugin on a Ubuntu 12.04 server and found it is incompatible with php APC. After installing and activating the WordPress plugin, the blog was down and users ...
1
vote
2answers
958 views

Is there a PHP 5.3.x PPA for 10.04?

I currently have an OpenVZ VPS system running 10.04LTS, which I need a newer build of PHP 5.3 on. This is because I use PHP-FPM for all the virtual sites it hosts, and the Lucid build doesn't include ...
0
votes
1answer
2k views

Trying to set a variable in PHP.ini file under ubuntu 10.10

I'm trying to set a variable in PHP.ini file under ubuntu 10.10. Namely the sendmail_path. On my system there are 4 php.ini files: php.ini at /etc/php5/cli/ php.ini-productions ...
0
votes
1answer
176 views

xamppp lampp unistall and error

Today I installed xampp from their website and just downloaded and extracted on my linux os (using tar xvfz) command and I started it using /lampp start. everything started perfectly and I wanted it ...
0
votes
1answer
756 views

MySQL access via PHP doesn't find database

I installed apache2, php5, mysql-server, php5-mysql, phpmyadmin in that order on Ubuntu 12.04 with the Software Center. Apache and PHP works fine, no problems. Also, if I try to work with MySQL via ...
63
votes
2answers
96k views

What is the easiest way to enable PHP on nginx?

What is the easiest way to enable PHP on nginx on Ubuntu 12.04? Best solution is the one that request minimal work, ideally just a package installation :)
4
votes
1answer
5k views

PECL extension in Ubuntu 11.10

I was installing Mediawiki on my local development machine and in the configuration, it told me that I will have to make do with slower loading tradition php pages because I dont have a PECL extension ...
1
vote
1answer
255 views

Does the apache/php5 package include Zend?

I'm loading up a fresh development computer for one of my new hires. As a standard, I put in a very basic LAMP server on all of our development computers. The one I'm currently loading is running ...
4
votes
3answers
8k views

SQLite stopped working after upgrade

As many of you did, I upgraded from Lucid to Precise this week and almost everything seems to work find. everything except… SQLite, which was working well before but not anymore. I checked ...
2
votes
1answer
2k views

LAMP Server not working on Precise

I've installed Ubuntu 12.04 LTS Precise a few days ago. I tried installing LAMP Server as I've been done in last four Ubuntu versions, simply by using these commands: sudo apt-get install ...
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
680 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
567 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
337 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 ...