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
410 views

New PHP5.3.10 update error

After receiving the latest announcement about security vulnerabilities of PHP5 (Ubuntu Security Notice USN-2254-1) I decided to upgrade my server, but I ran into some problems. The new packages listed ...
1
vote
2answers
499 views

File Permission In www/html Directory For Security

How can I give permission to directories and files in www/html for security. This files have an .js , .php , .sh extensions.They execute in www/html by apache's user(mine is www-data). When I give ...
5
votes
1answer
8k views

“This account is currently not available” error when trying to ssh

An error occurs when I try to make SSH connection: $ ssh -p 22 www-data@x.x.x.x This account is currently not available
1
vote
2answers
2k views

Permission Denied When Create New File

I could create file with php fopen(..) when I used the ubuntu 12.04. But now I can't create file with php, because I pass ubuntu 14.04. I can open existing file to read or to write. But I can't ...
0
votes
2answers
5k views

Downgrade from PHP 5.5 to 5.3 on Ubuntu 14.04

I need to downgrade to PHP 5.3 to use some older scripts. I've tried phpfarm and phpbrew, but I couldn't get either of them to work. I've also tried the solutions listed here: Installing PHP 5.3 in ...
9
votes
1answer
11k views

php5-imap on Ubunut 14.04 is not enabled

After apt-get install php5-imap I still have to manually do php5enmod imap which seems odd and inconsistent. Is there any particular reason for this?
1
vote
2answers
1k views

PhpStorm theme installation folder not found

I am new to ubuntu and I am trying to install theme for PhpStorm. this question point out the folder ~/.WebIde50/config/colors but I am unable to find ~/.Webide50 folder.
0
votes
1answer
1k views

Ubuntu Server 14 MySql php connect problem

I have ubuntu server 14.04 installed along side Apache, PHP5 and MySQL server all together. I can gain access to the server using putty and the mysql database using Heidi Sql remotely. On my laptop, ...
0
votes
1answer
266 views

Run PHP (in console) with Geany

Don't tell me I need a server, because I can manually go to terminal and write "php filename.php" and it will run it successfully for me. I just need to know how I can do it from Geany. Proof: ...
2
votes
2answers
3k views

Unable to install php5-mcrypt on Ubuntu 14.04

I can't install php5-mcrypt on ubuntu 14.04. I'm doing this: $ sudo apt-get install php5-mcrypt And getting this: Reading package lists... Done Building dependency tree Reading state ...
2
votes
1answer
3k views

php5-ffmpeg not available in 14.04's repos, what now?

I know that from now on, Unbuntu only supports libav instead of ffmpeg. But as for ffmpeg-php, I am not aware of any similar tool. So how developers are supposed to do? Is there any option beside ...
0
votes
1answer
634 views

PPA with latest PHP 5.3.x branch for 12.04

Is there a PHP 5.3.x PPA for 12.04?
6
votes
2answers
6k views

Nginx downloading PHP file only if .php is in the URL

I know this is a popular question but I haven't found anyone with my similar issue. I can serve PHP files as long as the .php extension is not in the url. For example: If I go to localhost I am ...
0
votes
1answer
207 views

Ubuntu 12.04 — php-config5 points to 5.3 instead 5.4

I have a problem installing a php extension (Phalcon framework) due to having upgraded from php 5.3 to 5.4 some time ago. I upgraded using ondrej-php5-precise repository. Everything is working ok and ...
0
votes
1answer
9k views

Apache doesn't load .php files

First, sorry for my English and asking something that it's quite answered all over the web. I've read a lot of post about this problem but I still can't find the solution. I'm a web developer who ...
1
vote
0answers
2k views

Apache Timeout (Problem loading page) on localhost

I am running a php script locally in my Firefox web browser. After exactly 300 seconds I get an error page. "Problem loading page. The connection has timed out. The server at localhost is taking too ...
2
votes
1answer
3k views

Apache2 + Php + Pthreads HowTos

04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl install pthreads. ...
0
votes
1answer
36 views

Oxwell does not load graphics on webpage

Im running Ubuntu server 10.4.4 with lamp installed. I have setup Oxwell by creating a folder in /var/www/oxwell and unzipping contents. I have also chmod -R 777 /oxwell for testing. Opening a ...
0
votes
1answer
1k views

php5-curl on upgraded ubuntu 14.04

I have a vps with ubuntu 14.04 installed ( was ungraded from 12.04 LTS ) and LAMP stack. the problem I have is I can't install php5-curl extension as it always gives me this error message : ...
0
votes
1answer
494 views

How to run php with Eclipse and XAMPP?

I'm using eclipse kepler on ubuntu 14.04, and I want to know how do I run a php project? I already installed the plugin in eclipse for php and when command run the project, the page does not load in ...
-1
votes
1answer
762 views

php amqp error while running make

I'm trying to install php amqp according to this answer http://stackoverflow.com/a/9997263/2271028 but at the make command i see following: /bin/bash /var/www/rabbitmq-c/amqp-1.4.0/libtool ...
0
votes
1answer
240 views

best setup for lamp stack development

I currently have ubuntu 14.04 with lamp stack running in virtualbox under win 8.1. I use PhpStorm inside the virtualbox. Virtualbox is running fine except for some flickering and screen refresh issues ...
-1
votes
1answer
242 views

php5, mysql, phpmyadmin not working in ubuntu14.04

I have already installed lampserver in ubuntu 14.04. when i try to run http://'127.0.0.1', it shows it works. but it does not work when i try to run http://'127.0.0.1'/test.php. I have already created ...
2
votes
0answers
107 views

404 not found error on apache2 [duplicate]

I have installed apache2, actual php version, mysql server and vsftp on my new Ubuntu server. I also installed wordpress and gave the user www-data all rights for /var/www/* and put it to 755. I ...
0
votes
1answer
289 views

Compile PHP by source. Stuck at phar.phar

I am trying to install PHP (Version - 5.5.11) by source since I need php installation with enable-debug and enable-maintainer-zts options. Downloaded the package ./configure --enable-maintainer-zts ...
-1
votes
2answers
471 views

my localhost default page welcome me on nginx

hi all wrt my last post, again i am getting frustrated by nginx server, i am trying to install laravel in my /var/www/project folder but when i delete my default HTML dir from my /var/www/html it ...
0
votes
1answer
239 views

How do I install WordPress.org?

I learnt recently that the WordPress software in the Software Centre is WordPress.com, I want WordPress.org as it's more feature-full. I have downloaded the zip file and extracted its contents but ...
1
vote
0answers
644 views

PHP 5.1.6 on Ubuntu

I want to install PHP 5.1.6 on Ubuntu in order to work on legacy PHP application. How can I install PHP 5.1.6 on Ubuntu. I have tried to install 11.10 and followed many online resources to get it ...
0
votes
1answer
2k views

Change Folder Permissions and All Sub-Folders

I'm working on a PHP website at the moment and I'm doing a LOT of writing to files and directories. Whenever these files are made, they're automatically owned by Daemon and I have to go into Terminal ...
0
votes
2answers
3k views

ERROR 1064 (42000) creating table MySQL

I try to build my own website, and at my website I ask people to enter their name and write a little story. When they are done, they hit submit, and it sends the information to my database. I work ...
2
votes
1answer
126 views

Charset with driver for Microsoft-SQL

I have got a form on a PHP website on an Apache on an Ubuntu-Server, to write data in a Table of a Microsoft SQL-Server. The Charset of the Website is UTF-8 and the Charset of the SQL-Server is ...
-1
votes
2answers
7k views

Install PHP5.3 on Ubuntu 14.4 [duplicate]

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
109 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
754 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
461 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 ...
2
votes
1answer
4k 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
257 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 ...
1
vote
1answer
1k 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
57 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
356 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
4k 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
123 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
votes
1answer
229 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
1answer
84 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.
8
votes
2answers
62k 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
3k 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 ...
49
votes
8answers
109k 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 ...
4
votes
2answers
10k 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
661 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
107 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, ...