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
3k views

Error in apache configuration

Initially my PHP was running well and after that when I installed perl CGI modules in order to run my CGI programs, there was problem. From the local host, I am not able to compile my PhP files nor ...
1
vote
4answers
19k views

Install PHP 5.3 on Ubuntu 13.04

How I could install an old PHP version on Ubuntu 13.04 (Raring Ringtail) -preferably version 5.3.3?
0
votes
0answers
9 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
35 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
39 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
20 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 ...
2
votes
3answers
388 views

Are Apache, PHP and MySQL installed by default?

Are the Apache server, PHP, and MySQL installed by default when you install Ubuntu 13.10, or should you install them separately later?
0
votes
1answer
25 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
24 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 ...
3
votes
5answers
3k views

Install PHP 5 on a fresh installation

I have a fresh installation of Ubuntu 10.10 (Maverick Meerkat) and I'd like to get PHP to work. I've tried sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install ...
0
votes
0answers
34 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
12 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
20 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
32 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
36 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
66 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
2answers
959 views

Php.ini file change not reflecting in phpinfo()

My php.ini settings are not reflected in phpinfo. It still shows upload_max_filesize as 2M but I have set it to 50M in php.ini. Can you please tell how to change php.ini properly? I'm using Ubuntu ...
0
votes
0answers
29 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
83 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
46 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
0answers
20 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
69 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
75 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
1answer
168 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 ...
0
votes
1answer
89 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
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 ...
1
vote
1answer
193 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
110 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 ...
2
votes
1answer
79 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: ...
34
votes
8answers
64k views

Mcrypt extension is missing in 14.04 server for mysql

The php mcrypt extension on ubuntu 14.04 shows that it is installed properly, but phpmyadmin says: The mcrypt extension is missing. Please check your PHP configuration. My current php config is ...
0
votes
1answer
44 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
27 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 ...
21
votes
2answers
86k views

Find the correct php.ini file

I am currently trying to locate the correct php.ini file to edit it and restart apache so the changes will take place and I'm stumped. What I have done... I have found three different php.ini files ...
0
votes
2answers
790 views

pecl install zip giving error ubuntu 12.04

I am trying to install zip using this command pecl install zip but I am getting below error running: make /bin/bash /tmp/pear/temp/pear-build-root9LqSPb/zip-1.12.4/libtool --mode=compile cc -I. ...
0
votes
1answer
120 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 ...
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
2answers
58 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
1answer
240 views

Weird behaviour of PHP SOAP Webservice on Ubuntu and apache2

We got a SOAP Webservice written in PHP. We also got PHPUnit Tests for this Webservice. Till last week we used Xampp on Ubuntu 12.04.4. Using Xampp the Webservice worked fine. Then last week we ...
1
vote
1answer
129 views

Php not running for fog web management server

I am making an imaging server for my computer engineering course. I have installed ubuntu server 12.04 32bit on the dual processor server, then I upgraded using d-release-upgrade to 14.04. I then ...
1
vote
0answers
70 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
0answers
71 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
57 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
0answers
83 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
16 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
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
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 ...
2
votes
10answers
15k 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 ...