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)

1
vote
0answers
26 views

PHP5 shared (apache2 & cli) configuration

I need to set the date.timezone setting in my PHP5 configuration. Obviously I could simply edit the php.ini files (both /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini), but that doesn't feel like ...
0
votes
0answers
17 views

disable passthru in php.ini

Ok, so I got hacked and I was checking out their file and noticed it was using the "passthru" php function, which I had disabled in php.ini. I tested it and passthru was still working. So I thought ...
0
votes
0answers
18 views

No access to SVN after updating PHP & Apache

I updated PHP to 5.5 and Apache2 using this: Updating PHP Since then SVN is not working. I get the following errors: I thought maybe the connection between SVN and Apache is gone. So I tried to ...
0
votes
1answer
119 views

Can i access a windows share directly from linux server and Copy files

I have a windows share created using samba . It is located in my ubunutu server /mnt/user_new I want to copy files from /var/www/myproject/files/ to /mnt/user_new/files . This is for backup my ...
1
vote
0answers
69 views

Server permissionsto allow php script to run but other users cant open

I have an apache server set up, there is a php script for a login page (contains passwords). I want to be able to give the server permissions to run the script but not for users who login through ...
0
votes
2answers
57 views

unable to install apache2 on precise

Below is the error while running the command: root@mycompanyname:~# apt-get install apache2* Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to ...
0
votes
0answers
70 views

Update PHP without removing every dependency

I'm having an issue where I just need to do something as simple as upgrade my PHP version from 5.3 to 5.6. The only issue is that Plesk is installed and I don't know how to upgrade it without Plesk ...
0
votes
0answers
56 views

difficulties creating laravel projects

I got laravel 4, composer installed, PHP 5.4 and mcrypt running but typing the command: $ php artisan serve Could not open input file: artisan Any attempts to create a new project with command: $ ...
0
votes
1answer
165 views

php5-fpm ping and status pages error out? LimitInternalRecursion error?

I have php5-fpm running just fine. My entire site is running as expected, almost no issues. However, I am unable to make use of the ping and status pages. When I navigate to mydomain.com/status or ...
2
votes
1answer
74 views

Cannot Run Rscript from PHP but it runs perfect from terminal

I'm new to Ubuntu I'm trying to execute an Rscript in PHP using exec. However it doesnt run. When I run it from the terminal it executes perfectly. This is the code I run from commandline: ...
0
votes
0answers
72 views

How to install PCNTL-extension for PHP on Ubuntu 14.04

I need some help to install PCNTL-extension for PHP on Ubuntu 14.04. Can someone provide the required commands please?
0
votes
2answers
15 views

Coding projects for LAMP stack locally

I've got a LAMP stack up and running (lamp-server^ specifically), and now I'd like to experiment a bit with it, although I would rather not be editing files in /var/www/html, it seems silly to be ...
0
votes
0answers
9 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 ...
0
votes
1answer
54 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 ...
0
votes
1answer
22 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
63 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
1answer
90 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
39 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
90 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
101 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
70 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
94 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
32 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 ...
-1
votes
1answer
68 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
12 views

Where is php.ini when I install APC?

I am trying to install APC on Ubuntu 12.04, I faced some problems. I used this link: http://www.inmotionhosting.com/support/website/php-configuration/install-apc-for-php I then solved all the ...
0
votes
0answers
94 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
37 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
47 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
45 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
56 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
440 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
46 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
45 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 ...
0
votes
1answer
135 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
57 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
28 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
191 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 ...
1
vote
1answer
191 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
88 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
10 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
29 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
39 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
227 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
85 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
188 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
82 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 ...
3
votes
1answer
387 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
150 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
216 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
1answer
161 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 ...