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
0answers
6 views

Enable php pcntl: Cannot Create Regular File

I am trying to enable/install pcntl and I get the following error after running make: cp: cannot create regular file `/usr/lib/php5/20100525/#INST@24959#': Permission denied I am sure it is a ...
0
votes
0answers
10 views

php pages not working on ubuntu Trusty [duplicate]

i am using Ubuntu 14.04(Trusty) and have installed xampp. Everything seems to be working fine except that i created a "hello world" program, named it hello.php and tried to open it with my browser but ...
0
votes
0answers
14 views

Can i use the mail() function on localhost [duplicate]

I got my testsite test.php on my localhost I want to send an email using this code: I tried to send it to my own address and havent received anything What did i do wrong??
0
votes
0answers
29 views

Again trouble with php in localhost

I have a test file called index.php with some html and php code on it. This index.php file is located in my var/www/html folder. If I type in localhost I get an empty page, but if I move a different ...
0
votes
1answer
16 views

Where do I put my website php files in my virtual ubuntu server?

I am trying to create a website through my ubuntu. I also intend to host this website on my ubuntu. I am goign to use dreamweaver for my php files and then put those php files in my ubuntu server. ...
-1
votes
0answers
16 views

I can not connect ot my databse

I have a php connection code as below and i wanna connect to my db_shop database, but when i use localhost/MYshop/index.php on the browser it pop up as below message mysql_connect(): Access denied ...
0
votes
0answers
17 views

Link apache2 to PHP

Installed PHP like this: sudo -i wget http://in1.php.net/distributions/php-5.3.28.tar.bz2 tar -xvf php-5.3.28.tar.bz2 cd php-5.3.28 ./configure make make install Installed Apache2 like this: sudo ...
0
votes
1answer
13 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
23 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
7 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
15 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
18 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
20 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
46 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
26 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
66 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
15 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
39 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
49 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
69 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
61 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
30 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
28 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
20 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
12 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
13 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
68 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
31 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
41 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
42 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
23 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
106 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
53 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
32 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
14 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
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 ...
-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 ...
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 ...
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
55 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
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
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 ...
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 ...
-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 ...
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 ...