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

cant get apache to run with php5 in Lubuntu

I was used to never had a problem with this issue. I installed like im used to sudo apt-get install apache2 sudo apt-get install php5 But apache won't execute the php I tryed and checked various ...
0
votes
0answers
65 views

Verifying the Current Version of PHPmyAdmin and Updating if Not

A question was asked on this forum concerning having the latest versions of MySQL, Apache, and PHPmyAdminn. In reviewing this question, I followed up on PHPmyAdmin to verify whether I had the latest ...
0
votes
0answers
16 views

phpMyAdmin slow import

When I try to import sql dump to phpmyadmin it takes forever and breaks down in the end. Any idea why? I've tried increasing PHP memory but nothing changed. I'm running Ubuntu 14.10 64b with i3 ...
0
votes
1answer
27 views

PHP & Init script

I've written a php job handler for mediawiki. The script will spawn 4 PHP processes (Scanner, and three workers). youri@pewpew:~$ ps -aux | grep php www-data 1579 0.5 0.2 263888 12752 ? SN ...
0
votes
0answers
59 views

How to shut down (or stop) Apache and My-SQL servers from my LAMP setup? [duplicate]

I just followed the fool proof instructions on how to set up LAMP server on Ubuntu (here: http://howtoubuntu.org/how-to-install-lamp-on-ubuntu). Now I need to know how to not have it running all the ...
0
votes
0answers
56 views

How to set PATH for apache/php?

on a Ubuntu 14.04 server I have a project (the Drupal module "Less") that requires the user under which apache/php is run to have access to /usr/bin/lessc without using the full path. Using a simple ...
0
votes
1answer
112 views

UBUNTU/PHP: Can not connect to sql server 2008

We took a copy of our Ubuntu virtual server and changed its name and IP. In every other way it is a duplicate of our production server. Now for some reason we can't get php connection to SQL-SERVER. ...
0
votes
0answers
35 views

Apache server not working after ubuntu update

I had ubuntu 13 on my server. I tried to upgrade it to ubuntu 14.04. Now the site is not working on http but working on https. Also apache_mod is not working. I have checked and Module rewrite is ...
2
votes
1answer
104 views

Accidentally removed /var folder

I did something real dumb. I was creating tarballs of files in my /var/ folder. The tarball i created was put into /tmp/test.tar In the process of testing the extraction process, I meant to delete ...
0
votes
0answers
34 views

Using lamp and wamp on same folder?

Hello I recently enjoyed using lamp server on linux in var/www. I also installed wamp server in windows and found out I can run wamp server in C:/wamp/www. Can I make lamp server be able to run or ...
0
votes
1answer
145 views

Problem with php_pdo_oci installation on Ubuntu 14.04.1 LTS

I need to install PDO_OCI for PHP on my localhost (Ubuntu). I'm not expert at linux packages/dependencies so please correct me if somewhere in my thoughts I am wrong. When I try to use pecl ( sudo ...
0
votes
1answer
107 views

Error while installing php-pear , dpkg error returned error code 1

I was trying to install mongo php driver on ubuntu 14.04 on x64 system. I used this tutorial and when I was trying to install pecl to install the php driver I got an error at the end of the ...
0
votes
0answers
15 views

How to allow www-data to create a folder with read, write and execute permission [duplicate]

How do I create a directory with read, write and execute permission in ubuntu 14.04. I have a web-app written in php and I am using <?php mkdir('/items/folder', 0777, true); ?> to create ...
0
votes
1answer
118 views

Cant Create folder with full permission on ubuntu 14.04

I having a weird problem on my VPS with Ubuntu 14.04 as the server. I tried creating a directory with php mkdir using the code below <?php mkdir("/items/foldername", 0777, true); ?> ...
0
votes
0answers
139 views

Use the manually installed PHP Version 5.3.29

I am working on a project now and the project requires me to use PHP 5.3.29. I have successfully installed PHP 5.3.29 using this commands sudo -i wget ...
0
votes
0answers
66 views

Rscript behaving differently when run from PHP exec and from command-line

Hi I'm running an Rscript with PHP exec and it is behaving strangely.......It launches R but throws an error at the following line:- ...
0
votes
1answer
91 views

Couldn't find PhpStorm.sh file ( Ubuntu 14.04 ) LTE

Downloaded PhpStorm (PhpStorm-8.0.2.tar.gz) from https://www.jetbrains.com/phpstorm/download/ Instructions: Unpack the PhpStorm-*.tar.gz file using the following command: tar xfz ...
1
vote
0answers
47 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
26 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
26 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
237 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
99 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
136 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
112 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
108 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
302 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
116 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
179 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
28 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
15 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
2answers
96 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
25 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
108 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
208 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
1answer
58 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
263 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
236 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
112 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
123 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
47 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
135 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
15 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
125 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
51 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
51 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
70 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
65 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
858 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
59 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: ...
1
vote
0answers
133 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 ...