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
4answers
3k 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
0answers
7 views

How to use this phpcgi apache tempalte to run php 5.2

From vestacp documentation (the CP I use) "phpcgi - tempalte to run php as cgi. can be useful to run php4 or php5.2" here is the source of the template ...
2
votes
10answers
14k views

How to downgrade PHP from 5.3.x to 5.2.x

I need to downgrade my PHP to 5.2.x from 5.3.x Certain software I currently use requires it. I found all these link explaining how to do it but they no longer work because they show you how to use ...
-1
votes
0answers
13 views

createing a folder in phpmyadmin rootfolder got apache

I am new to ubuntu and recently i installed and working with it(13.04). i've installed phpmyadmin successfully but connected it with mysql . i want to create a folder. so that i can access it as ...
0
votes
1answer
44 views

Ubuntu 14.04 Remote shutdown teamviewer or php script

when I try to remotely shutdown with teamviewer my Ubuntu 14:04 pc turns off uncompletely because of the teamviewer team advice appear on the desktop (wine supported). I solved by running the coomand ...
6
votes
4answers
20k 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 ...
-1
votes
1answer
119 views

Downgrade PHP from 5.5.9 to 5.2.4

I want to downgrade PHP for testing purpose. How i can safely do it? I have Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty
0
votes
1answer
19 views

Why does my web site have to specify the .php extension in the URI

Was running a 12.04 ubuntu lamp setup. Built a new one using 14.04 ubuntu. These are both instances on AWS. On the old site, a php script named "info.php" could be displayed with the URL ...
0
votes
1answer
35 views

How to allow the shutdown of computer using web server?

I have a web server under apache2 and php5. I want to shutdown a computer using web server but to shutdown the computer a current user should be 'root' user because command for the turning off of PC ...
1
vote
1answer
3k views

How to run a php file after installing LAMP in ubuntu 11.10?

I installed lamp on ubuntu. Apache2 and Mysql are working fine. The folder apache2 is in /etc and contains: apache2.conf envvars magic mods-enabled sites-available conf.d ...
0
votes
1answer
47 views

“APC does not appear to be running”

Help! I'm a Linux newbie. I have a VPS with Ubuntu 12.04.5 on it. It came with PHP 5.3. I've successfully installed PHP 5.4.37 as additional PHP handler following this tutorial: ...
0
votes
0answers
34 views

Accept headers: application/rss+xml, text/rss+xml, text/xml

I have a Ubuntu with Apache and PHP running a web server and a full working web site on it. My problem is that recently I also added an API to it and the client fails with 'Error 406' My website ...
1
vote
1answer
53 views

PHP.ini display_errors Off but Errors Still Outputted to Browser

I have an issue on one of the web servers where display_errors is set to off in the php.ini file in /etc/php5/apache2/php.ini: ; This directive controls whether or not and where PHP will output ...
2
votes
1answer
2k 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: ...
71
votes
11answers
12k views

What's the easiest way to set up a LAMP stack?

I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be ...
0
votes
1answer
61 views

UID of script “/var/www/html/phpinfo.php” is smaller than min_uid

My Apache works and I get the default page when I access it from a browser. But when I created a PHP test script phpinfo.php and placed it in /var/www/html I get the following error occuring in ...
0
votes
0answers
37 views

Running multiple php version using php-fpm

Following on from the configuration given in the answers here: How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal? How do you then use this configuration to use a different ...
0
votes
1answer
27 views

How to recover PHP 5 fpm www.conf? [duplicate]

accidentally deleted the PHP 5 www.conf file located at: /etc/php5/fpm/pool.d/www.conf Is there any way to get a copy of the original file back? I suppose I could simply purge PHP and reinstall ...
0
votes
1answer
76 views

Why the PHP software is not getting updated to the latest stable released version?

I'm using LAMP on my local machine which runs Ubuntu 12.04. Currently I'm using PHP 5.5.20 on my machine. Following is the command I run from the terminal and below that is the output: ~$ php -v ...
-1
votes
1answer
52 views

class SQLite3 not found

After struggling through a lot of pages and answers i am still unable to use sqlite with php. i am using fresh install of Ubuntu, Apache 2, SQLite3 and Php5. I am still getting class SQLite3 not ...
-1
votes
1answer
162 views

Ubuntu 14.04 Error when compile PHP 5.6.3

I did everything right with the installation of all dependencies for Apache2 and PHP i think. First I installed a clean Ubuntu 14.04 with all actual updates. Then I installed with "apt-get build-dep ...
0
votes
1answer
29 views

Problems with Nginx and php5-fpm

I have the next config for nginx, url /website/blog/index.php works but url /website/blog/ doesn't works server { listen 80; root /var/www/site; index index.html index.htm index.php; ...
0
votes
0answers
62 views

Problem installing apache 2.2.22 after upgrading to php 5.5

Previously I had php5.5.3 and apache 2.2.22. I upgraded PHP using this command sudo add-apt-repository ppa:ondrej/php5 sudo apt-get update sudo apt-get install php5 php5-gd php5-mysql php5-curl ...
0
votes
0answers
34 views

issues with installing php5-curl

I am trying to download the curl extension for php5. I have php5-common downloaded but I am getting this error: php5-curl : Depends: php5-common (=5.5.9+dfsg-1ubuntu4) but 5.5.9+dfsg-1ubuntu4.5 is ...
2
votes
3answers
4k views

I can not find /usr/share/php5/php.ini-development file

I install LAMP according this link. But I cannot find /usr/share/php5/php.ini-development file . My php is PHP Version 5.3.10-1ubuntu3.6 . Apache is Apache/2.2.22 (Ubuntu) . I use ubuntu 12.04 amd64. ...
2
votes
1answer
6k 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,
37
votes
5answers
80k views

Global Installation of Composer (manual)

I followed composer manual (global installation of composer (manual)) to install composer on Ubuntu. $ ll /usr/local/bin/ total 4760 drwxr-xr-x 2 root root 4096 2012-03-29 08:29 ./ drwxr-xr-x 10 ...
0
votes
1answer
33 views

How do I get the last file (based on date) in a directory? [closed]

I am connecting to a remote CentOS server and I need to get the date of the most recent file in a specific directory using PHP I have the bellow command that will give me a complete list of files: ...
0
votes
0answers
39 views

test.php 500 internal error after installed suphp

I'm new to PHP but with some Ubuntu experience. I was trying to install LAMP on Ubuntu 13.10, through following the ubuntu LAMP wiki page. I successfully installed apache2, PHP and mysql. And ...
2
votes
1answer
254 views

Laravel and apache2: 403 forbidden

I am trying to deploy my Laravel app in apache2 locally, however when trying to browse to http://myapp.localhost.com/ I am getting the following error: Forbidden You don't have permission to access ...
27
votes
5answers
80k views

How to have my PHP Send mail?

I installed Ubuntu 11.04, LAMP using tasksel. I find that PHP mail() does not work. I suppose I need to enable it or something? How do I do that?
0
votes
0answers
38 views

Start a VirtualBox VM from a PHP script

I can start a VM from the console like so... vboxmanage startvm --type headless UbuntuVB64 But when I try in PHP, I have issues: vboxmanage startvm --type headless UbuntuVB64 gives: VBoxManage: ...
0
votes
1answer
86 views

phpMyAdmin 4 configuration for multiple users (Ubuntu 14.04, Apache2, PHP5)

I am asking for the configuration for phpMyAdmin so that multiple users can access their own databases with full rights but cannot see, edit or remove other databases. I installed phpMyAdmin like ...
0
votes
0answers
37 views

php application asking intl but already installed

My (Symfony) application currently crashs telling ("The Symfony\Component\Intl\Collator\Collator::__construct() method's argument $locale value 'fr' behavior is not implemented. Only the locale ...
9
votes
3answers
36k views

How to solve the phpmyadmin not found issue after upgrading php and apache?

Recently I have install the PHP, Apache, MySQL, phpMyAdmin, python in my Ubuntu Desktop 12.04.3 LTS to use it as a LAMP server. The commands I used to install these are given below: 1: sudo passwd 2: ...
0
votes
1answer
23 views

Adding a standard to PHP_CodeSniffer

I'm using Ubuntu 14.04 and I'd like to check compatibility of our code as we upgrade to PHP-5.4 e.g. deprecated functions and other things that will break scripts. I install codesniffer like so ...
0
votes
0answers
53 views

Ubuntu apache www-data and php permissions

I got Ubuntu to learn Linux and set up a local server to demo my sites on. I'm having quite a bit of trouble just running a php script that uploads a image to the server though. I'm not sure what ...
0
votes
2answers
408 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
0answers
145 views

Not able to get “Welcome to CodeIgniter!” page issue on LAMP: 404 Not found

I am having an issue with installing CodeIgniter 2.2 issue on LAMP: 404 Not found error when I access to base URL in config.php. I set my base URL to http://localhost/ci/ and I attempted to access to ...
2
votes
2answers
6k views

Mcrypt PHP extension required. Laravel, Xampp error

I'm having trouble with Ubuntu 14.04, Xampp and Laravel. I'm getting Mcrypt PHP extension required. Script php artisan clear-compiled handling the post-install-cmd event returned with an error when ...
0
votes
0answers
53 views

“[Client] DTD are not supported by SOAP” error while running test file in remote server?

<? $client = new SoapClient('http://*****/api/soap/?wsdl'); $session = $client->login('admin', '*****'); $apicalls = array(); $i = 0; $ii = 0; $filters = array('sku' => ...
0
votes
0answers
9 views

Loravel framework mcrypt missing

Just created a loravel project using composer but when trying to enter 127.0.0.1/loravel/public is says mcrypt is missing. I already tried everything I could find. My mcrypt.ini already is in ...
0
votes
0answers
23 views

Install all configured files of lighttpd and php with the deb file installtion

I am using php with lighttpd in qt linux desktop application in Ubuntu 14.04, 64bit machine. I manually configured all the lighttpd and php files at my machine and it worked perfectly. I want that ...
0
votes
0answers
37 views

Multi domain emails from PHP

my server is running Ubuntu server 12.04 LTS. So far, I had no problems sending out emails from my single wordpress website. After creating other websites on the same server, I recognized, that they ...
-1
votes
1answer
158 views

Is Ubuntu a good Linux OS for php developer? [closed]

I want to switch from Windows OS to Linux OS for developing in Php. I can't decide which Os is perfect for me. Please suggest me. Is Ubuntu a good choice for a Php developer? What are the pros and ...
4
votes
3answers
1k views

Chrome mistakenly downloads localhost/wordpress pages, but Firefox doesn't

I have Wordpress installed at http://localhost/wordpress When I try and view a page in Chrome, it downloads the PHP file rather than showing the page. When I view in Firefox, everything works fine. ...
2
votes
2answers
10k views

How to downgrade PHP from 5.5.9 to 5.4 in Ubuntu 14.04 (Installed with LAMP)

I need to downgrade my PHP version from 5.5.9 to 5.4 (using Ubuntu 14.04), because I have a code that's using mySQL (which is deprecated in 5.5.9), and I cannot change that code. Is there a way to do ...
0
votes
1answer
113 views

LAMP installation

I would like to setup LAMP on my box, I installed apache2,mysql-server,php5&libapache, restarted apache with sudo /etc/init.d/apache2 restart, succesfully executed php -r 'echo "\n\nYour PHP ...
0
votes
2answers
907 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.
0
votes
0answers
53 views

Localhost is extremely slow

I am developing a very basic PHP site on my localhost but it's taking over 5s to display a less than 10Kb page. It's fetching nothing from the internet and all my images, javascript files, css files, ...