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
13 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 ...
0
votes
0answers
13 views

About XAMPP and MySQL [on hold]

I am currently using Ubuntu 12.04. My problem is that, in my system XAMPP and phpmyadmin works correctly, but when I am trying to access and insert/delete/edit some data into my database through an ...
0
votes
0answers
12 views

Laravel Failed to open stream warning in Ubuntu 14.04

I am new in Ubuntu and I'm trying to migrate a Laravel app to Ubuntu. Please take a look at the below steps which I have done. Copied my Laravel project and uploaded the database. Started my XAMPP ...
0
votes
0answers
10 views

Apache2 otuput buffer issue

wonder if you guys can help please? I am running an apache2 server (14.04), what im trying to do is build a progress bar for my website (so the user doesn't have to sit and look at a blank screen - ...
0
votes
1answer
14 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
23 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 ...
0
votes
0answers
9 views

Ubuntu behaving strangely with loading http , getting 404 issues after site migration [on hold]

So I have a website built in php and it was working perfectly on one server, I then moved the website to a server I have on Digital Ocean and am running into several errors, they seem to be based ...
1
vote
1answer
16 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 ...
0
votes
1answer
28 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
13 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
22 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 ...
0
votes
1answer
21 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
30 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 ...
0
votes
0answers
20 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
1answer
13 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
18 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 ...
0
votes
1answer
26 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
17 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
67 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 ...
0
votes
0answers
24 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
0answers
24 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 ...
-2
votes
0answers
15 views

Moodle and php, bash [duplicate]

I write a spesial page in Moodle with buttons, which will be turn on another functions from my programm on server, for example send for spesial user email or anather action. How can i run programm on ...
0
votes
1answer
39 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
35 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
1answer
16 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

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 ...
0
votes
0answers
24 views

redirect serial port events to a apache/php web service

i need to send a physical weather station data to a apache/php web server... weather status is connected to a ubuntu server with a serial port.. i installed lamp (apache,mysql,php) on this server ...
1
vote
0answers
40 views

Updating PHP on Ubuntu 12.04 with Parallels Plesk

I've tried a few times to update php on my server from version 5.3 to the latest 5.5 with: sudo add-apt-repository ppa:ondrej/php5 It seems to work fine but it also updates Apache which I think is ...
0
votes
0answers
30 views

Laravel Installtion UBUNTU 12.04 LTS

i want configure laravel in my machine consisting UBUNTU 12.04 LTS. i've put the composer .phar in my /usr/local/bin folder and following the documentation of laravel from laravel.com now i tried to ...
0
votes
0answers
22 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
17 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
26 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
83 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 ...
0
votes
0answers
28 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, ...
0
votes
1answer
60 views

using phpstorm and xampp and unable to create new project folder

I am really new to ubuntu and finally managed to get xampp working with xdebug and now i am trying to setup phpstorm but i run into problem. My understanding is that the projects have to be created ...
1
vote
1answer
44 views

Webserver not displaying PHP page

I have provisioned an apache webserver with a custom user for content management, created a http-docs root directory in /var/, and assigned ownership to the user with the usual chown stuff, yada yada ...
2
votes
1answer
150 views

How to upgrade PHP version to the latest stable released version? Let's say how to upgrade from PHP 5.5.19 to PHP 5.5.20?

I'm using a system running on Ubuntu 12.04 LTS 64-bit OS. I'm currently using following PHP version on this machine: Command used to get the below info at terminal : php -v Details I got are as ...
0
votes
2answers
36 views

PHP Fatal error: Cannot redeclare [ By using php -l in terminal]

I wrote the php script and gone for syntax check via terminal php -l my_filepath, then suddenly found fatal error PHP Fatal error: Cannot redeclare even my code executing successfully. also check on ...
1
vote
1answer
61 views

IDE for Symfony (PHP) which is able to manage Vagrant VM's over SSH

I just switched from Windows to Ubuntu on my dev Laptop. Now I'm wondering, what's the best IDE to use on Ubuntu when working with PHP? I know there are a lot of threads here about exactly that thing, ...
0
votes
0answers
1k views

Sub-process /usr/bin/dpkg returned an error code (1)

Only God knows why I stupidly deleted php and apache2 from my ubuntu 14.04. First manually and then from terminal as well using several online tutorials and then when I tried to reinstall php, many ...
0
votes
1answer
121 views

Installing Apache MPM Worker with PHP support on Ubuntu Server 14.04.1

I'm trying to configure mine server to enable the Apache's "worker" version supporting PHP5. I have googled for hours, and all I find is either confusing/vague info. or tutorials for older Ubuntu ...
0
votes
1answer
31 views

How do I upgrade to the latest version [duplicate]

I'm a neophyte user trying to set my system up to program in PhP via Ubuntu. I have a cd with version 12.10 and would like to know how to upgrade after install and install packages for PHP... I'm ...
0
votes
0answers
68 views

EC2.micro nginx php-fpm error “upstream timed out”

I've been setting up a new server on AWS using a t2.micro instance and Ubuntu. After setting everything up the site worked fine, but now it's throwing errors. There is no traffic on the site at the ...
2
votes
0answers
82 views

403 Forbidden Error after changing LAMP Apache root/ www directory

I installed and set up all the LAMP services, and got it working from the www folder, thing it though I need it to point to a folder in my Dropbox (on the same partition) I modified the ...
0
votes
1answer
26 views

How to link to php from xampp installation so i can just use php command instead of full path?

I have xubuntu installation and xampp installed on my pc, and everything works great, but lately i am experimenting a little bit with laravel framework and a lot of tutorials and people just use php ...
-1
votes
2answers
56 views

cannot install php5-mysql

I have ubuntu 32bit server (14.04), running php5, I am trying to install php5-mysql but I get a dependancy error. How can i fix this? ~$ sudo apt-get install php5-mysql Reading package lists... Done ...
0
votes
0answers
28 views

unoconv cannot connect or start listener without sudo

I'm working on a website for school on the school server. My website uses unoconv. It was working up until today for some reason. Basically what is happening is that if i run this command in the ...
0
votes
1answer
87 views

How to install PECL PAM in Ubuntu 14.04

Can any one help to install PECL PAM in ubuntu 14.04 system . I have tried to install via terminal using sudo aptitude install php5-auth-pam this is what we get "Couldn't find any package whose name ...
0
votes
0answers
36 views

PHP script works with Ubuntu 12.04.5 but NOT with Ubuntu 14.04

I have the following snippet in my code: $objCurl = curl_init(); curl_setopt($objCurl, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($objCurl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($objCurl, ...