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)

0
votes
1answer
133 views

Where do I get PHP-CGI binaries for Ubuntu?

I want to set up an Nginx or Apache server which is PHP-capable. In order to use multiple PHP versions in parallel I need to use CGI. I can set up the CGI stuff, but where do I get PHP binaries from? ...
0
votes
1answer
62 views

Laravel serves a phtml file

I tried running Laravel php framework from my own custom folder (not in '/var/www'). I've set up vhost, and permissions and it seems to work correctly, but Instead of seeing the laravel welcome page, ...
1
vote
2answers
60 views

Is the latest provided php5 package in an LTS distribution secure?

I need to update php5 on a 12.04 LTS production server. The latest candidate provided is 5.3.10-1ubuntu3.9. Is that version patched to be secure for use in a production environment? PHP is up to ...
1
vote
0answers
722 views

Apache: New files and folders does not get correct permissions

This is what i'm working whit. Ubuntu Server 13.10 /w Kubuntu Desktop 3.11.0-17-generic Apache/2.4.6 (Ubuntu) PHP 5.5.3-1ubuntu2.1 (cli) Module SuPHP Enabled My issues: I can install Joomla, and ...
0
votes
1answer
253 views

Weird behaviour of PHP SOAP Webservice on Ubuntu and apache2

We got a SOAP Webservice written in PHP. We also got PHPUnit Tests for this Webservice. Till last week we used Xampp on Ubuntu 12.04.4. Using Xampp the Webservice worked fine. Then last week we ...
2
votes
1answer
949 views

Upgrade php5-gd on 12.04

I'm aware there's already a post with the same title, but my question is different: as I explain it in a Stack Overflow post, I need to use a more recent version of php-gd in my 12.04 Ubuntu than the ...
0
votes
1answer
355 views

how to install several php versions on ubuntu 13.10?

I switched to Ubuntu 13.10 and PHP version is 5.5. But the CMS I use is so far based on php versions 5.3 or 5.4. I tried phpfarm, phpbrew, php-version - nothing works !! I want to know how to ...
-2
votes
1answer
715 views

installing codeigniter on ubuntu 13.10 [closed]

i have a running apache mysql php xampp server on ubuntu 13.10 my path /opt/lampp/htdocs/xampp/www the correct path or directory inside /opt to unzip CI files
1
vote
1answer
93 views

Catch output from “nginx -t” with php [closed]

I'm trying to make a simple control panel for my webserver running nginx with php-fpm. I've managed to catch result of service php5-fpm restart and service nginx reload, but the output from nginx -t ...
4
votes
1answer
3k views

apt-get doesn't install latest PHP 5.4 from oldstable sources [closed]

I have two servers running 13.04, and at some point I added the oldstable package sources for PHP 5.4. For some reason I'm not able to update it anymore though — one server doesn't upgrade from 5.4.23 ...
0
votes
1answer
187 views

HTML doesn't show php script on Uuntu 12.04 ( PHP5, Apache2, mysql) all are installed properly

But info.php in /var/www/ does show the info. Only PHP embedded in html doesn't show the script. please help me.. I have tried the previous askubuntu questions and didnot get anything useful so ...
1
vote
1answer
1k views

Ubuntu 12.04 - Installing PHP with -fastcgi

Does anyone know how to install PHP on Ubuntu with fastcgi enabled? I've installed my PHP from the following site: http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/ ...
2
votes
2answers
569 views

Browser tends to download PHP files instead of displaying them, while using XAMPP for Linux

I am using XAMPP for Linux, but when I try to open a PHP file saved in a folder saved in home directory, the browser downloads the PHP file instead of displaying it. What could be the problem? XAMPP ...
1
vote
1answer
631 views

object not found in lampp ubuntu 13.10 [closed]

I am a newbie linux user. I have installed xampp 1.8.3-2(lampp) on Ubuntu 13.10 and configured it. I paste my www folder to Ubuntu 13.10 in /opt/lampp/htdocs. Now that the owner of www folder is ...
1
vote
1answer
45 views

Getting issue with file permissions in Ubuntu 10.04

I've a development desktop having Ubuntu 10.04, Apache2 & PHP 5.3.2 installed. I've given 0777 permissions to my web application root folder and Apache2 is also running under current username. But ...
0
votes
1answer
157 views

How to set up PHP mail on Ubuntu Server? [closed]

I have tried to set up sendmail or postfix so many times, but never got it to work. I have Ubuntu Server 13.04 and I wont that server to send mail throw my mail-acount on One.com that is a ...
2
votes
1answer
264 views

Install both libmemcached10 and libmemcached6 ubuntu 12.04

Just wondering if someone can help me here, I'm still quite new to Ubuntu an Linux in general and seem to be having a problem with two packages: libmemcached10 is required for php5-memcached but ...
1
vote
1answer
4k views

Running PHP Cron Job with Arguments

Im trying to run a PHP script, once a day, on ubuntu 13.10 server with php5. I have cron jobs set up, via ajenti control panel, verified with crontab -l, for this command. php /path/script.php ...
2
votes
1answer
2k views

How can I get the `bcmath` plugin in php5 in Ubuntu?

I've seen a PHP BC-MATH installation for YUM but not apt-get. Does one know of a working apt-get solution? Unfortunately, from this SO thread, apt-get install php5-bcmath gives the error Unable to ...
0
votes
2answers
3k views

Problems with the /var/www folder

I am new to Ubuntu, I've installed 12.04. I used to use wamp server on Windows, and after changing OS I moved some files from www folder to /var/www on Ubuntu. But when I try to view that folder in a ...
0
votes
1answer
983 views

How can I repair my PHP installation?

I try to test my php installation on a ubuntu server without gui. Therefore I follow the 3rd this howto for LAMP(!). This includes to install php5 et al. with sudo apt-get install php5 ...
1
vote
1answer
118 views

How to make PHP run on other folders?

I have a PHP project in /var/www/myproject I am wondering if I want to have my projects in /home/myusername/Projects/myproject and be able to run PHP on it, what should I do with Apache? What if I ...
0
votes
1answer
202 views

Problems with instalation of Zend-framework

When I type this command: apt-get install zend-framework I am getting this error: dpkg: error processing zend-framework (--configure): dependency problems - leaving unconfigured Errors were ...
0
votes
1answer
665 views

How can I install different versions of PHP in xampp

I installed the latest version of xampp i.e. 1.8.3-2 in ubuntu 12.04. I found that it include php 5.5.6 and I want the lesser php version to work on my site. How can i install the new version or ...
0
votes
1answer
83 views

upgrading pdftk 1.41 to 1.44 how can I check for breaking changes?

I have the wonderful task of finding out what ( if any ) breaking changes are if we upgrade from PDFTK 1.41 to 1.44 Here is our use-case We use PDFTK on the command line from a PHP application ...
0
votes
1answer
335 views

Can't run PHP script accessing my Mysql databse

I've created LAMP server in my ubuntu desktop. I've also made a sample database in Mysql having 6 columns. I can access it through the terminal. I've also created a php script for accessing the same. ...
1
vote
1answer
2k views

Ubuntu 12.04 PHP5.3 opcache.so installtion problem

I got this error when i call php -v Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory PHP 5.3.10-1ubuntu3.9 with Suhosin-Patch (cli) (built: Dec 12 ...
3
votes
1answer
13k views

How can I install and configure an SMTP server?

How can I go about setting up an SMTP server to send email as *@mydomain.com? How can I then use this SMTP server with a PHP script that grabs data posted from my website's contact form and send it ...
4
votes
3answers
15k views

How to install php IMAP for php5-fpm?

I'm trying to install Vtiger CRM on ubuntu. This require IMAP. How to install PHP IMAP for php5-fpm?
1
vote
0answers
227 views

PHP session_start() does not stop loading page [closed]

I'm running Ubuntu and Apache2 . In a test.php script I've created, I use the session_start() function and the page does not seem to stop loading ( behaves as if it is running in an infinite loop ) . ...
3
votes
1answer
9k views

Why php5-fpm is depending of a “sury.org” version of php5-common?

I try to install php5-fpm package but I have this information: The following packages have unmet dependencies: php5-fpm : Depends: php5-common (= 5.5.7+dfsg-1+sury.org~quantal+1) but ...
-1
votes
1answer
1k views

phpmyadmin not longer working after updating to php5.5 on LTS12.04

After i upgrade to PHP5.5 like in this thread How do I install latest PHP in supported Ubuntu versions (like 5.4.x in Ubuntu 12.04)? my phpmyadmin is not working after i try to access to over my ...
0
votes
3answers
1k views

upgrade php - php5 is already the newest version. - but it is not

Followed steps on Update server php version to 5.4.10 via the command line and finnaly I get message that it is newest. But it is 5.36 - its far from newest. I want at least 5.37 so my laravel ...
0
votes
1answer
76 views

php and mysql issues

I've recently read Wallace Wang's “Beginning Programming for Dummies, 7 books in 1” and found it to be very enlightening, as it highlighted various differences between the three main operating systems ...
0
votes
2answers
6k views

How to remove or delete single cron job using linux command?

I have created cron jobs for my site which is listed below and they are working fine.I print all cron job by using this command $cronfiles=exec('crontab -l',$output); echo "<pre>"; ...
0
votes
2answers
1k views

Apache permission problem in ubuntu 12.04

i am new to ubuntu , i have install ubuntu 12.04 install in my system i have install localhost(lamp) in my system . i was trying to import a data base with more size so dor that i need to change the ...
11
votes
1answer
367 views

Strange POST requests to my Ubuntu server - am I in trouble?

I have an Ubuntu Server 12.04 installed on a VM. This server has apache2-mpm-prefork and libapache2-mod-php5 installed. I was looking through the logs and recently came across these rather ...
0
votes
1answer
54 views

How to create new files or modify existing files in a sym link?

I am new to the LAMP environment. I wanted to create files directly in my home directory instead of always copying it to /var/www. I created a sym link using the following command : ln -s /var/www ...
1
vote
1answer
332 views

ubuntu 12.04 - fuser high cpu

The problem is fuser high cpu and server load high. root 20 0 7580 840 692 D 10 0.0 0:00.31 fuser 16061 root 20 0 7580 844 692 D 10 0.0 0:00.31 fuser 16062 root ...
3
votes
1answer
383 views

Can't purge libapache2-mod-php5, corrupt registry

I can't purge libapache2-mod-php5. Give me this error. ucfr: Corrupt registry: Duplicate entries for /etc/php5/apache2/php.ini libapache2-mod-php5 /etc/php5/apache2/php.ini libapache2-mod-php5 ...
1
vote
1answer
241 views

I can send mails from shell with PHP, but I can't send from the PHP web page

I'm trying to send mails from a contact form in a page on my server. I followed this post. My PHP file /var/www/my_project/test.php is this: <?php $myemail = "my_mail@gmail.com"; $subject = "my ...
-1
votes
1answer
187 views

Cannot load module after updating php to 5.5

after updating php and restarting the apache2 i get this error: Cannot load /usr/lib/apache2/modules/mod_R.so into server: /usr/lib/apache2/modules /mod_R.so: undefined symbol: ap_log_rerror This ...
-1
votes
2answers
2k views

Php broken, “held broken packages” error on install [duplicate]

I've completely destroyed everything and now php wont install. I had php5.4 and everything was great. I then needed to run Magento locally which wasnt working. I saw one of the requirements was ...
6
votes
2answers
16k views

Install PECL packages on ubuntu

I've tried it a 100 times I'm really new to Ubuntu and ended with a bunch of error that I don't even understand can any one please help me?? Here is what I did: I installed PHP I installed libcurl ...
2
votes
1answer
126 views

sendmail & MySQL

I had MySQL and PHP working good in the nginx server. For mailing purpose I installed sendmail. Now all I get is Your PHP installation appears to be missing the MySQL extension which is required by ...
0
votes
1answer
35 views

Mysql/php connection

I'm a newbie to ubuntu,and im trying to connect the mysqlworkbench(database) with php5.3 if (function_exists('mysql_connect')) { echo "Good<br />\n"; } else { echo "Bad.<br />\n"; } ...
0
votes
1answer
86 views

Impossible to install php5

I had php5 installed today, and, I don't remember how, but I guess it not installed anymore ... When I try something like that: aptitude install php5-cli It tells me that no version of package ...
1
vote
0answers
740 views

nginx with hhvm - Not found

I'v set up nginx with hhvm but, any file .php returns me "Not found" except index.php that returns me Running on HHVM version 2.3.2. Some of my configurations /etc/nginx/sites-enable/default ...
3
votes
1answer
6k views

How to enable OpenSSL for PHP Cli?

There is no major difference in the php.ini files located at /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini. But <?php phpinfo(); ?> when accessed from a browser says OpenSSL support ...
10
votes
5answers
53k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...