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

Could Not Connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I am new to Ubuntu and using Ubuntu Server 14.40 LTS. I am trying to connect my mysql database to show database data on a php file but I am not able to connect it. I am getting error Could Not ...
1
vote
1answer
330 views

Unable to get error stack trace or error log while using php-fpm + nginx on Ubuntu 14.04

I am using php-fpm 5.5.9 along with nginx 1.4.6 on my Ubuntu 14.04 machine. I have installed them using apt-get package manager. I am unable to get a stack trace of the error that my index.php script ...
2
votes
2answers
111 views

sending email from cron with correct format

I am stuck when sending email in correct format from cron jobs executing my php script which fetches records from mysql database. i have a php script which fetches records from database and renders ...
0
votes
2answers
79 views

PHP is not working with Apache on Lamp server

I have lamp server on ubuntu, The apache2 is successfully installed and local host is working. But I have no way to create/copy to the www folder, also my phpmyadmin is not working.
2
votes
1answer
1k views

How to install PHP mbstring extension in Ubuntu?

What is PHP mbstring extension. What is the perfect way to install this extension on ubuntu 14. Thanks Regards, Rohit
0
votes
1answer
151 views

setresuid operation not permitted when calling via php

I've got following Problem: my Apache and PHP script are running as user www-data. I want to call a script that can only be executed as root, so I added a new File to /etc/sudoers.d to allow this ...
0
votes
2answers
116 views

SuPHP: PHP 403 ErrorDocument in Apache won't work

I am trying to set up an 403 error document in Apache, using a PHP file, like this (via .htaccess): order deny,allow deny from all allow from [MY_IP] ErrorDocument 403 /err403.php but it doesn't ...
1
vote
0answers
45 views

Why the php statement “require” shows in the browser the content of the PHP file after upgrading my Ubuntu server from 10.04 to 14.04? [SOLVED] [closed]

In my old web server everything worked properly. After upgrading to Ubuntu 14.04,the PHP statement "require" displays in the browser the content of the PHP file pointed, instead of read it and load ...
0
votes
1answer
100 views

add-apt-repository throws python error

Trying to install the latest PHP5 packages and so I add the repo ( sudo add-apt-repository ppa:ondrej/php5) I need and this is the outcome: Traceback (most recent call last): File ...
1
vote
1answer
1k views

How do I correctly enable PHP 5.5's OPCache in Ubuntu 14.04?

I'm setting up a local server to test configurations; it's a clean 14.04 LAMP server, as selected during OS install. If I understand correctly, OPCache comes with PHP 5.5 (php -v confirms this) but ...
0
votes
2answers
126 views

I got Apache working on localhost (“it works!”), but now how do I get it to work on the internet?

I can see my "website" locally but how do I get it to show up online? Does it need a domain name per se or can't I just get DNS somehow to pick up my IP address and put it online or something, I don't ...
0
votes
0answers
268 views

Lubuntu 14.04: Php5 not working with Apache2

Lately I have been messing around with Lubuntu and today I decided to try to setup a web server (Apache2) with PhpMyAdmin and MySQL Server. This was going great until I attempted to use my test page. ...
2
votes
2answers
161 views

Is securing phpMyAdmin with .htaccess considered sufficient?

I have just installed Linux / Ubuntu for the first time in order to learn, and to get some experience with LAMP servers. I also installed phpMyAdmin and used an .htaccess file (stored in ...
0
votes
0answers
23 views

Geany browser PHP execution

From another question, someone said I had to write php -S localhost:8080 -t "%p" -e & sensible-browser localhost:8080/"%f" as the script to run. It doesn't work, gives this: yes, that's on ...
1
vote
0answers
61 views

XAMPP (LAMPP) on Ubuntu Touch

Can I install and run XAMPP (LAMPP) on Ubuntu Touch on a Nexus 10 in order to host a local website (that needs PHP and MySQL)?
0
votes
1answer
94 views

Ubuntu 12.04 - upgraded to PHP5.4 - error on PHP Suhosin

I have a Linode VPS with Ubuntu 12.04. I had PHP5.3.10 installed and I just upgraded to PHP5.4.30 - by following the instructions given at ...
0
votes
1answer
194 views

PHP Startup Unable to load dynamic library

I'm getting this error in my apache error log while trying to get cURL to work on PHP: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/curl.so' - ...
1
vote
1answer
280 views

Extract Error Which Is About Installing Pear Email Packages On Ubuntu 14.04 [closed]

I want to send e-mail with smtp send function in php. So that ı should install pear email packages.But When I install these packages on terminal I get an error.The error is about extracting .tar.gz ...
0
votes
0answers
286 views

Apache/PHP generates blank pages and a 500 internal server error (Ubuntu 12.04 PHP 5.3.10)

I'm having troubles with my PHP. When I open a file on localhost, it generates a blank page. I looked at my browser's console and it is giving a 500 Internal Server Error. The page I try to open ...
0
votes
0answers
47 views

Install php 32 bits on ubuntu 64 bit

I'm currently upgrading servers and I have a nasty bug with php and a database driver. Long story short using the 32 bit version of php should fix the issue. I'm unable to install php5-common:i386. ...
0
votes
1answer
25 views

Apache is not even starting after updating

sudo apache2ctl start [Tue Jun 24 17:53:38 2014] [warn] NameVirtualHost *:80 has no VirtualHosts httpd (pid 4924) already running After running the above command to start apache2, I get this error. ...
2
votes
5answers
206 views

How to completly remove php libraries?

I use zsh. when I try to upgrade the system, some packages related to php pop up, I want to remove them sudo apt-get upgrade Reading package lists... Done Building dependency tree ...
0
votes
1answer
205 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 ...
0
votes
0answers
181 views

ubuntu 14.04 LTS apache 2.4 - 403 access forbidden

hey there i just made a website (more like a file manager) and hosted it on apache 2.4 on ubuntu 14.04 LTS but i can't seem to access the icons folder in var/www/html/icons, what i get is a 403 access ...
0
votes
0answers
11 views

php5 behaving oddly

I have an ubuntu server 12.04 running php5. Some of the php scripts work and others fail. For example, I can write files and use case statements, print, and echo, use the date commands. but, i cant ...
1
vote
1answer
113 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 ...
1
vote
2answers
978 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
0
votes
0answers
188 views

Sending Email With PHP (SMTP) By Apache's User

I could send e-mail with php in ubuntu 12.04. The apache user (in ubuntu 12.04) didn' t make problem. But I can't send e-mail when I pass the ubuntu 14.04. The apache user(ın ubuntu 14.04) make ...
1
vote
2answers
496 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
1k 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 ...
0
votes
0answers
56 views

Silex in Ubuntu 14.04

I'm working off a fresh Ubuntu 14.04 install. I installed a LAMP Stack appropriately and it all seemed to be working. I'm trying to learn how to use Silex, the PHP framework. So I followed the ...
1
vote
1answer
551 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
71 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
130 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
0answers
450 views

Can't install apache2-2 on Ubuntu 14.04

I just upgraded (after a lot of fighting) my Ubuntu distro from 13.04 to 13.10 and then from 13.10 to 14.04. I managed to make everything work, except for one thing: I can't find a way to Install ...
0
votes
1answer
53 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
420 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 ...
1
vote
1answer
503 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
0answers
145 views

Apache 2.4.7 won't work, even after root directory changing

I recently installed Ubuntu 14.04 and Apache 2 on my computer. When I try to run test.php (I already changed the root directory to /var/www and placed test.php there) it only prints phpinfo(). Then ...
0
votes
1answer
84 views

PPA with latest PHP 5.3.x branch for 12.04

Is there a PHP 5.3.x PPA for 12.04?
3
votes
1answer
1k 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
93 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
483 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
707 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 ...
0
votes
0answers
51 views

How to export Observium data?

Trying to figure out how to export the data from Observium to see the throughput of a network, and save it to a file. Any help would be great.
1
vote
0answers
434 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
0answers
11 views

Qiime softwares not recognized by PHP. How to configure extentions for it?

I have a script in bash that calls some python functions installed from Qiime packge. I put a echo "end of bash script" only for control. If I call this bash script from terminal it works good. But ...
0
votes
1answer
26 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
0answers
77 views

Global proxy for ubuntu

is there a way to setup a global proxy fro Ubuntu? For example, I have some php code which is an 'off the shelf' product ( I don't want to change the source code to this ), I have some php code which ...
0
votes
0answers
38 views

libmcrypt - How to compile and install from source in 14.04

How can I compile and install libmcrypt from source in 14.04 I used instructions to another version of ubuntu, and I have failed.