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
2k views

Install PHP5.3 on Ubuntu 14.4

How can I install PHP5.3 on my ubuntu 14.04 server? apt-cache showpkg php5 shows no 5.3 versions. I tried to install them using the example from this post (using 3.13 for my ubuntu version) but ...
0
votes
2answers
41 views

MOODLE slow on client side

Running kubuntu 14.04. MOODLE is very slow. I get server messages telling me I've timed out. However, on my VISTA antique MOODLE runs quite well. The MOODLE docs pages weren't much help.
0
votes
1answer
246 views

PHP - How to install php-curl without downgrading PHP version

I'm trying to install the php5-curl package, but I'm getting the dependency error: The following packages have unmet dependencies: php5-curl : Depends: phpapi-20090626 Depends: ...
0
votes
1answer
68 views

configure remote server's apache and php to locate a website [closed]

I need to locate website files to remote machine which runs CentOS with no graphical user interface. My machine runs ubuntu. Is there a way to check configuration of installed apache and php or how to ...
1
vote
1answer
935 views

Mongo Driver PHP - Can't install [sasl.h not found!]

I can't install mongo driver into my ubuntu development system. When I run the command sudo pecl install mongo I got this error: configure: error: sasl.h not found! ERROR: ...
0
votes
1answer
55 views

Postfix installed, by mail() in PHP not working

I have a new server. Just installed Postfix (apt-get install mailutils), and configured postfix as "Internet site". Works fine when I'm logged in as regular user on the command prompt and use mail ...
0
votes
1answer
309 views

Why did /usr/lib/php5/sessionclean run 50 times simultaneously on my 14.04 system?

When I sat down at my Ubuntu 14.04 system this morning, the root cron job /usr/lib/php5/sessionclean was running over 50 times at once, producing 50+ copies of the following commands: root 8147 ...
0
votes
1answer
32 views

Quick way to dump a Wordpress database without digging through configuration files?

I've got a load of Wordpress sites to move around and modify this afternoon. Yay. Like any good developer, I want to back up things before I Hulk-out and break everything. The site's files are mostly ...
0
votes
1answer
69 views

Can't access uploaded image to generate thumbnail in PHP [duplicate]

I had trouble fixing the file uploading, but then I ran chmod a+w /var/www and it worked - files were being uploaded to my specified directory. However, my script also generates a thumbnail ...
0
votes
4answers
1k views

Laravel loading error in Ubuntu 14.04

When I tried to access my laravel after successfull updation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this, sudo ...
0
votes
1answer
70 views

Laravel loading error in Ubuntu 14.04

When I tried to access my laravel after successfull installation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this, ...
1
vote
0answers
60 views

PHP Mysql connection works but no data can be displayed

I wrote this simple php script that just to import basic information from mysql table. As a result, not even a error message, but a blank screen. Something to do with the PHP - Mysql connection, but ...
-1
votes
1answer
71 views

how to add string to a specific line of file [closed]

my code is, <?php $data = file_get_contents('file.conf'); $rows = explode("\n", $data); $rcount = count($rows); echo $rcount; for ($l=0; $l<$rcount; $l++) { $rowss = $rows[$l]; if ...
0
votes
0answers
30 views

Apache HTTP on UbuntuServer 13.10. No permissions to enter site from another computer

I've installed Apache, PHP5, MySQL and phpmyadmin on my 13.10 Server. Created folder /public_html and a file index.php in there like tutorial I read said. I gave chmods for these (folder and .php ...
0
votes
1answer
60 views

How to upgrade php in ubuntu 14.04 ?

My current version is php5.4 , I want to upgrade from 5.4 to 5.5. I'am a new to linux so Ubuntu.
5
votes
2answers
12k views

Installing PHP 5.3 in Ubuntu 14.04

I've just installed Ubuntu 14.04 and am trying to install php 5.3. But when I run apt-get install php5 it's installing php 5.5.9-1ubuntu4. I need to use php 5.3 in the system because the ...
1
vote
1answer
404 views

MySql Not starting even when status is ok ubuntu lampp

I am a Newbie to Ubuntu. I just installed the xampp Linux version through xampp-linux-1.8.3-4-installer.run file. Following are the commands that I used: cd /home/sammy/Downloads sudo chmod +x ...
9
votes
7answers
8k views

Mcrypt extension is missing in 14.04 server for mysql

The php mcrypt extension on ubuntu 14.04 shows that it is installed properly, but phpmyadmin says: The mcrypt extension is missing. Please check your PHP configuration. My current php config is ...
1
vote
1answer
856 views

NGINX and PHP downloades index.php instead of processing it

I have been banging my head for 2 days now. The issue is that the index.php is downloaded instead of being processed. I'm using Ubuntu 14.04 , Nginx, php5. The nginx/site-available/default is as ...
2
votes
1answer
192 views

What are the best practices when setting files and folder permissions as a php developer under ubuntu?

I have created and set the permissions to some files and folders under /var/www/mywebsite. For files 644 and for folders 755. I am the owner of those files and folders, since I created them ...
1
vote
1answer
70 views

Ubuntu and phpmyadmin

I've installed Ubuntu 14.04 in my VM Virtual Box, installing phpmyadmin in the process using the command sudo apt-get install phpmyadmin I configured phpmyadmin with Apache2 and advanced options, ...
1
vote
1answer
490 views

php zlib gzopen not exists

I'm using Ubuntu 14.04 and php 5.5.9-1ubuntu4 (cli) (built: Apr 9 2014 17:08:27) var_dump(extension_loaded('zlib')); => true var_dump(function_exists('gzread')); => true ...
0
votes
0answers
15 views

Installing two versions of PHP in ubuntu 14.04 [duplicate]

How to install two versions of PHP in Ubuntu 14.04. Help me, please. I need test the app of my client in PHP 5.3 because the server run in this version, but I can not uninstall the PHP 5.5 of my ...
2
votes
1answer
183 views

How to know if there are updates available?

I am running a 12.04 LTS ubuntu server. And I think it would be nice if I could be informed when updates are available. But I can't find how to know... I have tried looking at apt-get man page. From ...
3
votes
1answer
1k views

Download of “pecl/xdebug” succeeded, but it is not a valid package archive

I tried to install the xdebug in Ubuntu 14.04, but when I execute the following command: sudo pecl install xdebug it returns the error: Download of "pecl/xdebug" succeeded, but it is not a valid ...
1
vote
2answers
95 views

PHP Memcache Extension Incomplete on Ubuntu 12.04

The issue is this. I have several servers all running the php5-memcache extension on Ubuntu 12.04. The PHP documentation (on php.net) has several functions like cas that are not part of the default ...
0
votes
0answers
105 views

Running PHP scriipt as Daemon. System_Daemon or init?

I am relatively new to Linux, and was trying to find a way to run a php script as a Daemon. I have now found 2 ways to do this (Using an init script, or PHP/Pear System_Dameon class). I was wondering ...
0
votes
2answers
261 views

Installing php5-fpm but missing www.conf

I am installing php5-fpm on my ubuntu system but could not able to find www.conf file under pool.d directory. In my /etc/php5/fpm folder, there are only 2 directories - conf.d and pool.d Command ...
3
votes
3answers
10k views

Downgrade PHP Version from 5.5 to 5.4 on Ubuntu 14.04

First time I've ever needed to ask a question here that I don't think has already been answered. I've recently been working on transferring over a vBulletin site I run to a new server. Thinking that ...
0
votes
1answer
66 views

PHPmyAdmin with MySQL on the other host

How can I install PHPmyAdmin with MySQL on the other node? I actually have OpenStack cloud deployed and want to have installed Apache and PHP on one node and MySQL on the other node. Now I want to ...
0
votes
2answers
114 views

upload PHP script to var.www

I created a PHP file and would like to upload it to var/www folder to Apache2. I use Eclipse and Bluefish for uploading files. It looks like the program does not have root rights. I would like to ...
1
vote
1answer
1k views

Error installing OCI8 on Ubuntu 14.04

I've just upgraded my VM to Ubuntu 14.04, and my OCI8 PHP driver has stopped working. I've tried to install/upgrade it, but it doesn't work. That's the error messages I get: ...
2
votes
1answer
527 views

How to enable event MPM Apache 2.4 on Ubuntu 14.04 with thread safe PHP?

I upgraded to Ubuntu Server 14.04 expecting the default apache installation would use the new event MPM, but instead I find the old memory-eating prefork. I've successfully set up event MPM in Arch ...
0
votes
0answers
20 views

Eclipse for php and java packages

I installed Eclipse for PHP and Java projects. I tried to create a project and files and realized that there are no packages for developing PHP and Java. Is there any way to install those packages for ...
0
votes
3answers
738 views

installing XAMPP error

I followed these instructions: http://ubuntuportal.com/2013/12/how-to-install-xampp-1-8-3-for-linux-in-ubuntu-desktop.html I already installed lampp in to my directory files under the opt. I am ...
0
votes
1answer
18 views

Setting up a debug/profiling environment for remote site

I'm having some issues with profiling a site that is loading slowly (close to 2 minutes). It is developed in PHP, Smarty and MySQL (using nginx as the web server), and I've been wanting to use Xdebug ...
0
votes
0answers
203 views

How to restore deleted PHP files using scalpel

I upgraded 13.10 to 14.04. After the upgrade finished, unfortunately found out that /var/www/ folder has been deleted (I didn't know that upgrade does the same as fresh install!!!). I have searched a ...
0
votes
0answers
30 views

Weird behavior of apache2 on Ubuntu with php.ini file

I am trying to solve ultimate problem of why session variables are not saved when I run my php script. After researching for a while I went on to check session.cookie_lifetime value which is set to 0 ...
0
votes
1answer
50 views

Access MySQL and PHP after installation

After I installed Apache2, MySQL, MySQL Client, phpMyAdmin and PHP on my Ubuntu 13.10, I tested the Apache2 using 127.0.0.1 and it works. I would like to learn how I can access MySQL and create PHP ...
3
votes
1answer
2k views

php-pear is not working after upgrading to Ubuntu 14.04 [closed]

After upgrading to Ubuntu 14.04 php-pear is failing to install any packages. sudo pear install --alldeps --force pear.phpunit.de/PHPUnit downloading PHPUnit-4.0.17.tgz ... Starting to download ...
1
vote
3answers
6k views

Install PHP in Ubuntu 14.04 LTS

I have ubuntu 14.04 LTS(32bit). I want to install php5.5. I installed apache server and I see default apache server index page on localhost correctly. But, when I try to install php5 with apt-get ...
1
vote
1answer
266 views

php not executing on apache server

I have just reinstalled apache and php5 but when I visit my doc root it just downloads a "download" file and when I try documentroot/index.php it just downloads the php, I have php installed but it ...
0
votes
1answer
2k views

Apache shows index of/ instead of default index html [duplicate]

I installed apache2 on my Ubuntu 13.10 and it works without any problems. I can see the default index page (which is located in /var/www/index.html) by typing localhost/ in the address bar Today, ...
0
votes
0answers
16 views

Can't get Apache to work on Ubuntu

I installed a LAMP stack on Ubuntu 13.10 using tasksel. For some strange reason, when I head to localhost/foldername it produces a 404 every time. The folder exists in /var/www/ and has r/w ...
0
votes
1answer
299 views

Can't get latest PHP or Pear in Ubuntu 12.04 LTS

I'm attempting to install PEAR, and other components.. but getting the following. $ sudo apt-get install php5 libapache2-mod-php5 php5-mysql Reading package lists... Done Building dependency tree ...
0
votes
0answers
16 views

sendmail doesn't work anymore

i've installed sendmail to send mails from php, but after some messing with some virtualhosts the mail(); function in php doesn't work any more. How can I get the mail(); function to work again? ...
0
votes
4answers
150 views

Unable to open PHP files on Linux platform on Ubuntu

I've copied over my files over to a new directory which I have created: /var/www/worm/data.php. I tried opening it by a few ways: Double clicking the file but nothing comes out Typing ...
1
vote
1answer
33 views

Is there a man page for php pear from php-pear package?

I'm searching for man page documentation or alternatives for the php-pear package on Ubtunu 13.10. Concretely I'm stuck with the following issues (besides not finding the man page where I believe to ...
0
votes
3answers
1k views

Php doesn't work on Apache server

I installed LAMP sudo tasksel install lamp-server I can run my site, but the php code is just displayed as text. I have tried this solution, but it didn't help me. When I try to run php script ...
1
vote
2answers
83 views

index.php is downloading instead of displaying

I have set a local website from following here, I have followed everything as it is but when I access my site via Mozilla Browser, it asks me where to download and save instead of displaying the ...