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
1answer
824 views

Can't use PHP extension Solr in Ubuntu 13.10 (Apache)

After I upgraded to Ubuntu 13.10, the local development version of my website stopped working with a PHP warning: include(SolrQuery.php): failed to open stream: No such file or directory I checked ...
15
votes
2answers
27k views

Can't use PHP extension Mcrypt in Ubuntu 13.10 (Nginx, PHP-FPM) [duplicate]

I installed a fresh Ubuntu 13.10 on my laptop. Like I usually do, I install the packages I need for Web development, which are nginx, php5-fpm, mysql, php5-mysql, php5-mcrypt and a few others. After ...
0
votes
0answers
20 views

Can't remove phpmyadmin [duplicate]

I am having great difficulty trying to remove this so I can then start over building a forum. But I made some errors and so have removed some stuff but yet to remove this. This is one of the error ...
0
votes
1answer
138 views

Process not running in background

<?php while(true) { set_time_limit(2); $reas ="wake up from sleep!!!!!!!!!! \n "; echo $reas; sleep(5); // $readlen = 0; } ?> I try to run this code. In foreground, ...
3
votes
4answers
31k views

how to correctly install apache2, php5, mysql and phpmyadmin

What is the most correct method of installing apache 2 server, php5, mysql and phpMyAdmin? I installed it this week, and I had a lot problems without solutions, so now that I reinstalled Ubuntu 13.04 ...
1
vote
0answers
526 views

Disable Zend Optimizer PHP 5.4

I am trouble-shooting an installation of Anahita, which requires APC to be installed and Zend Optimizer to be disabled. I have PHP 5.4 running on a Ubuntu 10.04.4 LTS server. I've been trying changes ...
0
votes
1answer
2k views

Internal server Error while accessing a php page in apache2

After install apache2 it work fine, but if reinstall php5 that the server doesn't work, if I try to access http://127.0.0.1 a give the error 500, or a file of www folder, if I try to access a folder ...
0
votes
1answer
441 views

How to update libpango and install Cairo in Ubuntu?

I want to install "php gtk", but I get the following error message: `libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed I downloaded the latest pango from ...
12
votes
2answers
48k views

Find the correct php.ini file

I am currently trying to locate the correct php.ini file to edit it and restart apache so the changes will take place and I'm stumped. What I have done... I have found three different php.ini files ...
0
votes
2answers
4k views

How can I connect to a Microsoft Access database using PHP?

I tried to connect to MS Access database using PHP PDO from my ubuntu webserver but couldn't. I got this error: Connexion Access échouée : SQLSTATE[IM002] SQLDriverConnect: 0 [unixODBC][Driver ...
0
votes
1answer
637 views

Why doesn't php (cli) have a default memory limit?

After coming across a server that had an Out of Memory issue from a commandline php-script, I discovered that default (vanilla 12.04 LTS server install) the cli php.ini does not have a memory limit ...
1
vote
1answer
2k views

php5-fpm : Depends: php5-common (= 5.3.10-1ubuntu3.8) but 5.4.6-1ubuntu1.4 is to be installed

I want to set up PHP behind Nginx with FastCGI but I stuck on the sudo apt-get -f install php5-fpm what i've tried: sudo apt-get -f install php5-fpm Reading package lists... Done Building ...
1
vote
1answer
2k views

Install and Configure XHProf

Problem I'm trying to configure and use XHProf. I've managed to get it installed and running on my server but I get a blank page when I try to access localhost/xhprof_html This is the general post ...
0
votes
0answers
167 views

Connecting android app to SQL server on Ubuntu server

Maybe I should ask this question in the Ubuntu section instead, but don't really know where the problem is so I'm trying here first. I'm trying to learn how to use SQL database through a webserver, ...
9
votes
5answers
24k views

Cannot get mcrypt for PHP5

I've done this many times: sudo aptitude install php5-mcrypt sudo apache2ctl restart aptitude says mcrypt is installed. I've reinstalled it 3 times already. I've restarted apache about 20 times ...
0
votes
0answers
14 views

/var/www - not parse php code [duplicate]

I added php file to /var/www/ but not working (not parse PHP code): http://site.com/a.php <?php echo "work"; ?> How to fix it?
0
votes
1answer
720 views

Editing php5.conf

I am trying to edit /etc/apache2/mods-enabled/php5.conf but when I try to do vi /etc/apache2/mods-enabled/php5.conf it just comes up as <IfModule mod_php5.c> <FilesMatch ...
3
votes
1answer
9k views

Install php extensions on Ubuntu 12.04

I want to install the latest versions of curl, php5-xmlrpc and php5-intl extensions for php 5.4. I have the latest version of php 5.4 (installed via ppa:ondrej/php5-oldstable) so the default precise ...
1
vote
2answers
171 views

Does an upgrade from 12.10 to 13.04 will effect the version of PHP/other packages installed?

My work laptop is running Ubuntu 12.10 (32-bit). Due to the need to be able to test our code in the same versions of PHP, Memcache, and a few other modules; I need to keep the PHP version right where ...
0
votes
1answer
46 views

Can you place a variable in command line

I have a command running in cron sudo snmpbulkwalk -v 2c -c public -0Xsq 10.0.0.98 .1.3.6.1.2.1.1.2> textfile 10.0.0.98 is a variable and i would like whichever value is placed there to be read ...
1
vote
1answer
1k views

I cant copy a file in the var/www directory

I am a noob with Ubuntu and that's why i ask dumb questions :D So my question is this: I installed mediawiki on a Lubuntu virtual machine which is running on virtualbox. I configured and installed ...
10
votes
1answer
5k views

How to set environment variable before running script inside hooks/install?

I am create a simple charm to get my symfony2 webapp from git and deploy it on ec2. After getting the source from git, I want to run composer to resolve dependencies but I keep getting this error: ...
17
votes
2answers
40k views

Update server php version to 5.4.10 via the command line

Im setting up a vps for the first time from scratch, the host has a one click LAMP installer which took out allot of the leg work, but running phpinfo(); i found im running 5.3.10. So id like to ...
1
vote
0answers
274 views

Setting up Virtualmin with PHP 5.4 or 5.5

I've tried various ways of getting a later version of PHP than 5.3 with Virtualmin. Each time breaking the server. I've tried adding ppa:ondrej/php5 and installing 5.5 both before and after installing ...
0
votes
1answer
947 views

Running a php script in apache webserver

I have created a php script and saved it as script.php, located in the /var/www directory. I also have index.html file which has a form which requires the user to enter a value and submit with the ...
0
votes
1answer
106 views

Linking a PHP script to an HTML document [closed]

I would like to run a php script which is the forr action in an html document. The HTML code i have is as follows <html><head><title>Using PHP</title></head> ...
1
vote
0answers
301 views

Problem after installing phpmyadmin

I installed apache, mysql, and php on my Ubuntu 12.04 server but after logging in all I see is a white screen displaying a forward slash. Is there something else I need to configure or enable? / ...
0
votes
1answer
469 views

Can't install php5-fpm after upgrade to 12.10

I upgraded to 12.10 from 12.04 and began getting gateway errors when I accessed phppgadmin via nginx. After looking around I realised that the required program php5-fpm wasn't running and further what ...
3
votes
2answers
163 views

How to know what version of PHP is shipped in a release version?

Is there a page or Wiki listing for each Ubuntu release what is the default associated PHP version ? 10.04 LTS => PHP 5.3.2 And so on...
4
votes
1answer
60 views

How can one call programs that are not “rooted” in the operating system

I am currently trying to install a php extension on my computer. I am in the process of developing a new site and I am using LAMPP. I used PECL to install the syck YAML extension so that I can parse ...
5
votes
3answers
1k views

Unable to Execute VLC from PHP

I am running uBuntu 12.04.3, 32 bit OS on a 8 CPU, 8GB RAM 64-bit Intel Xeon machine. I have installed all backports as well. I have this problem which is eating my head for the last 3 days. I ...
0
votes
1answer
125 views

PHP API not matching

I need to enable a module installed on my system. I have installed PHP 5.4 from ondrej's repository couple of months ago ago and now I have compiled ODBTP module from the source. Unfortunately, if ...
1
vote
1answer
316 views

Why did my PHP5.5 upgrade fail?

I have a relatively new install of Ubuntu 12.04. The php version is 5.3, so I just followed this question to upgrade to 5.5: How do I install latest PHP in supported Ubuntu versions (like 5.4.x in ...
0
votes
1answer
431 views

(Ubuntu 12.04 LTS) PHP 5.4 offline install

I searched but didnt find solution to our problem... We have offline (intranet) Ubuntu 12.04 LTS installation. We made local offline Ubuntu 12.04 repo mirror (updating once in a week) and I can ...
0
votes
1answer
597 views

How to configure apache2 in Ubuntu 13.04

I installed apache using ubuntu software center, and now it shows the following text on the page upon entrance of localhost in the addressbar of Firefox It works! This is the default web page for ...
1
vote
3answers
2k views

How To Install GraphViz For PHP On Ubunutu

What I want to do is install GraphViz for PHP on Ubuntu. I tried pear install Image_GraphViz, it installed but does not work for me. Then I tried downloading the file from here. File name : ...
1
vote
2answers
2k views

Problems with installation from ppa:ondrej

The server is running Lucid and I am trying to upgrade the PHP to 5.5 stable. I followed the intructions on this question: How do I install latest PHP in supported Ubuntu versions (like 5.4.x in ...
-1
votes
1answer
2k views

Cron job every second

How can I run a PHP script every few seconds in Ubuntu Server? (bonus: How can I run random within the cron script, e.g. every 3 seconds + random(3 seconds) )
1
vote
0answers
288 views

Need PHP5.3, lamp server is PHP 5.4.9

So I installed Ubuntu and installed lamp-server however this gave me PHP 5.4.9 and I want 5.3.25 to mirror a production server. I managed to use the dotdeb repos and get 5.3 installed, however its ...
1
vote
0answers
88 views

PHP files are not running after installation of apache2 [closed]

I am new to ubuntu 11.10. So please help me. I had lampp instlled in /opt directory and I tried to install apache2 for running cgi scripts. apache2 installed properly and i am able to run cgi ...
0
votes
1answer
795 views

Setting up websites with Ubuntu 13.04 server and Nginx

I'm trying to setup 2 websites on my server ---> A_website and B_website I don't have a domain name registered and I just want to use the site privately so I'll be accessing it via the static IP ...
1
vote
0answers
426 views

Website + LDAP + TeamPass, how to configure?

Got a small issue using my web server where I host a TeamPass website (http://www.teampass.net). I am using Ubuntu 13.04 Server and installed LAMP and I have a Windows 2008 R2 with Active Directory ...
2
votes
2answers
2k views

Ubuntu 12.04 php PEAR package problem

I am using LAMP server on my Ubuntu 12.04 system. Before this time I have installed prestashop without any issues. But after a long time when I tried to install prestashop today, it really showed me a ...
0
votes
2answers
1k views

Changes for upload_max_filesize, memory_limit & post_max_size in the php.ini aren't affect

I'm trying to increase the upload_max_filesize etc in order to import bigger files with PHPMyadmin. I have changed the php.ini and restart Apache. I can see the changes on the PHPMyadmin import ...
1
vote
1answer
3k views

Warning: date(): It is not safe to rely on the system's timezone settings - What just happen?

Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of ...
0
votes
1answer
477 views

XAMPP(LAMPP)'s phpmyadmin throwing error #2002

I have just installed XAMPP(LAMPP) about a hour ago and I am continously searching for the error I am getting on while opening http://localhost/phpmyadmin(phpmyadmin). The screen of the error is as ...
0
votes
1answer
173 views

Browser is not displaying the php output

I have installed lamp over Ubuntu 12.4. I am able to work with mysql through Command prompt and User Interface, but when I try to execute the php script which include HTML and MySQL statements, the ...
0
votes
1answer
233 views

Custom install of PHP

I have always used the code below to install my PHP environment: sudo apt-get install -qqy php5 sqlite php5-gd php5-sqlite libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql php5-intl php5-curl ...
3
votes
3answers
862 views

How to see output from a php script

I am new to php programming and i have installed it on Ubuntu server, the server is a LAMP server. As i was doing my introductory lecture, i created first.php file but i understand it cannot be ...
0
votes
1answer
238 views

How do I setup php and mysql cronjobs on ubuntu 12.04 server?

just made a lamp install adn got sftp working. My question now is how do I setup cronjobs in ubuntu server? I need to make some cronjobs for my php/mysql application. Look for un-activated users in ...