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
1answer
6k 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 ...
4
votes
2answers
7k 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
10k 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
2k 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 libapache2-mod-...
1
vote
1answer
584 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
266 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
1k 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
145 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
459 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. ...
2
votes
1answer
3k 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 ...
4
votes
1answer
24k 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 ...
5
votes
3answers
27k 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?
3
votes
1answer
10k 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 5.3.10-...
-1
votes
1answer
2k 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
2k 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
96 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
2k 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
443 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
82 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
521 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 ...
4
votes
1answer
759 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
410 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
273 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
3k 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 ...
18
votes
3answers
44k 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
238 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
61 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"; } I'...
0
votes
1answer
102 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
917 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
13k 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 ...
0
votes
3answers
2k views

Ubuntu-Lampp PHP path issue

I use Ubuntu 13.10 and Lampp. When I try to run sudo php artisan job-daemon I get the above message. But when I run php artisan job-daemon it works just fine. php -m gives me the following: [PHP ...
0
votes
2answers
419 views

Is it Good Practice to Change Apache's /var/www/ (Default Root Directory)?

When you install Apache, PHP's default folder is /var/www/ by default. Some developers find it necessary to change the root directory to something like: /home/public_html/ (many shared hosting ...
0
votes
1answer
565 views

Gearman problem when trying to run PHP cli

When I run the following command in terminal: php somePHPfile.php The following error happens: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gearman.so' - /...
0
votes
1answer
6k views

Error in apache configuration

Initially my PHP was running well and after that when I installed perl CGI modules in order to run my CGI programs, there was problem. From the local host, I am not able to compile my PhP files nor ...
0
votes
1answer
8k views

Ubuntu 13:10 - Downgrade php 5.5.3 to 5.4

Can someone give me step my step instructions on how to do this? Will I have to worry about and data/databse loss doing this. Thanks! sudo apt-get remove --purge dpkg -l | grep php | grep -w 5.5 |...
0
votes
1answer
735 views

Ubuntu 12.04, Php5-fpm, Apache2, Postfix: impossible to send a mail with PHP

Resources I followed I followed several howtos and questions on askubuntu: https://help.ubuntu.com/community/Postfix How to configure apache / php / postfix website emails when using vhosts? ...
0
votes
1answer
2k views

Timezone error in php.ini on lamp

I am trying to learn SOAP(Simple Object Access Protocol) following an example mentioned here downloaded the SOAP library , including the file lib/nusoap.php which gives a warning which is Warning: ...
0
votes
1answer
4k views

How can I find and edit the php.ini file?

I am trying to find the php.ini file on Ubuntu server with the command: sudo vim /etc/php5 However, this tells me that the file does not exist. How can I find and edit the php.ini file?
0
votes
1answer
111 views

Http 500 while running .php code [closed]

I'm trying to create a VirtualBox that I can recycle across multiple projects, using a shell script to install all packages I need. I got Apache2, MySQL and PHP5 installed regularly and running a page ...
1
vote
0answers
330 views

Executing pdftk with php exec on Ubuntu 12.04.3

exec("cd /var/www && PATH=$PATH:/usr/bin/ pdftk 1.pdf 2.pdf 3.pdf 4.pdf output final.pdf"); I'm trying to execute this command on Ubuntu 12.04.3, it's working fine when I'm connecting via ...
0
votes
2answers
1k views

Ubuntu server sending mail from www-data

I am running a server with Ubuntu 12.04 and three wordpress installations, some ftp server and a basic postfix to send mails with wordpress. additionally I am using webmin to administrate this system. ...
2
votes
2answers
478 views

Wordpress alias problem

I have configuration like this: Alias /blog /usr/share/wordpress Alias /blog/wp-content /var/lib/wordpress/wp-content <Directory /usr/share/wordpress> Options FollowSymLinks ...
1
vote
1answer
2k views

Debugging PHP in Ubuntu (Xdebug)

PHP Vim Debugger: Configuring Apache I am trying to install Vdebug to debug PHP in Vim. Unfortunately, when I press F5 this message appears after a few seconds Waiting for a connection (Ctrl-C to ...
0
votes
1answer
119 views

Apache configure file: how to edit it

I need to edit the Apache configure file because I wish to set the debugger port in my VirtualHost section as it says below. How can I do it? I searched in Google but it is not clear for me what I ...
5
votes
2answers
9k views

PHP-FPM eating memory & Creating many Pools

I set up my nginx with php-fpm. each vhost has its own unix-socket and separate POOL. But the problem is that php-fpm is creating 7 thread for each config pool that I created in /etc/php5/fpm/pool.d/ ...
2
votes
1answer
1k views

is this malcious traffic?

I was reviewing my server logs, when I came across several thousand this gem: from a multiple IP addresses: My question is what is all this junk? what is this trying to execute? I am pretty sure that ...
1
vote
1answer
2k views

Can't install php5-curl, getting “404 Not found” errors

My problem when trying to install php5-curl on my virtual box linux server. I did ifconfig eth1 up: err http://nl.archive.ubuntu.com/ubuntu/ precise-updates/main php5-curl amd64 5.3.10-1ubuntu3.8 ...
0
votes
1answer
1k views

Run X11 GUI application from browser (apache - php)

The same way as Running Gui App with PHP, I need to run a X11 application (VLC) from a php page on Apache server. I need to open the VLC application on the server, not on the remote system. I'm ...
1
vote
0answers
374 views

How do I save an uploaded file in PHP?

In PHP, I'm trying to save a file to the /var/www/upload directory, but whatever I try, it doesn't work. I've tried giving www-data ownership of /var/www and subdirectories. I've tried modifying the ...
0
votes
1answer
131 views

My server is making me download the code instead of running it

I am running an ubuntu server 12.04 but unfortunately I am not being able to make the interpreter run the code exactly. I am using nginx encrypted lvm and here is the conf.d (main part): server { ...