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)

-2
votes
0answers
13 views

Cannot redeclare my function

I use Linux Debian Local Lamp Server i tried to make connection between Database and php & making API : db.php the connection file ! : <?php $tf_host = 'localhost' ; $tf_dbname = ...
0
votes
0answers
4 views

Serve php RESTful server with apache2 (ubuntu)

I have a ubuntu machine on which I want to run a php rest server. Here is my default config file: ServerName localhost <VirtualHost *:80> DocumentRoot /var/www/html/otherSite ServerName ...
-2
votes
0answers
12 views

Added cart items should be sent to the mail of the user [on hold]

Iam using this script in my checkout.html page to display the cart items of the user. But when he clicks "confirm order" then mail should be sent containing information of the cart items and details. ...
0
votes
0answers
14 views

Webpage download stops at <?php tag

Really strange problem. Website has worked fine under 12.04 (reinstalled server as 15.04 because it was running very slow). As page loads, all html code appears until first <?php and then ...
-1
votes
0answers
12 views

form action problem [on hold]

i'm trying to make API & template for website <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html ...
2
votes
1answer
46 views

Cant Downgrade php5.5 back to php5.3

I have tried to upgrade my apache2.2 to apache2.4 and php5.3 to php5.5 on my Ubuntu 12.04. For php5.5 I have used those commands below (I dont remember which PPA i used for apache upgrade) : ...
0
votes
0answers
18 views

libapache2-mod-php5 : Depends: php5-common [duplicate]

I have tried to upgrade my apache2.2 to apache2.4 and php5.3 to php5.5 on my Ubuntu 12.04. For php5.5 I have used those commands below (I dont remember which PPA i used for apache upgrade) : ...
0
votes
0answers
15 views

How to enable PHP APC in ubuntu 15.04

i am new at ubuntu and i am moving from windows, i am starting to make PHP sites and one of them requires me to enable APC, the site uses a PHP Framework called YII and whenever i visit it throws an ...
0
votes
1answer
34 views

How to downgrade php version in ubuntu 15.04 [duplicate]

I am working on a codeigniter project where the system requires php version < 5.6 that is 5.5, but few days ago I have installed ubuntu 15.04 with having LAMP stack installed using tasksel;the ...
0
votes
0answers
16 views

I currently have PHP 5.3.2 installed with Apache in 10.04 Lucid. How can I upgrade PHP? [on hold]

I currently have PHP 5.3.2 installed with Apache in 10.04 Lucid. How can I add the upgrade PHP ? have done following commands but seems its not working, what am I missing here.. Attmpt 1 ...
0
votes
0answers
18 views

How to setup phpDocumentor 2 web interface in Ubuntu 14.04?

I have followed all the instructions both from the phpdoc website and from the phpdoc manual website . The commands I entered are: sudo pear channel-discover pear.phpdoc.org sudo pear install ...
0
votes
0answers
6 views

How can I solve problem with Jomla installation on EC-2 server?

My name is Igor, I woold like to install joomla on Amazon EC-2 Ubuntu server free tier, but I could not do this. After a week of probe and tests I deside to write you. This letter I send to Amazon and ...
0
votes
1answer
11 views

Email spam leveraging php mail function [on hold]

Is this an appropriate question here? Erase me if not. I have a CentOS virtual dedicated server. But I doubt Ubuntu would change much about this question. I also have a home rolled email form that ...
0
votes
2answers
29 views

How to install SourceGuardian Software

I have this file (SourceGuardian-10-Evaluation-Linux-x86_64-Install) on my system, How do I install it in ubuntu 12.04lts
0
votes
1answer
9 views

how to get emacs24 to highlight PHP

Any emacs veterans able to assist? I can not find the files that the various websites that claim to show you how to obtain or make the settings for emacs24 to highlight PHP. I read contradicting ...
-1
votes
0answers
14 views

Installning PHP 5.5.9+ [on hold]

So yea as the subject on my question is installning php 5.5.9+, Im in need of php 5.5.9 for my developing and i have searched around on forums and so on now for an hour to fix this. I follow all ...
0
votes
1answer
16 views

apache2 RewriteEngine subfolder configuration is off / not wroking as expected / not sure how to fix it

The rewrite engine appears to be "functioning" but not as expected. Here is the dir tree of my public_html folder (serving using apache2 in my userdir) ┌─[admini@linuxbox][~/public_html] │ [13:16:45 ...
0
votes
2answers
24 views

How to allow lamp and apache2 service run parallel?

I have a php project in var/www/html. It runs when I start apache2 service is started. But I cannot access phpmyadmin where I have a database that is being used in my php project. (I had to stop lampp ...
2
votes
1answer
27 views

How to set default folder of php in netbeans?

On running php project in netbeans opens the URL localhost/html/ProjectName/file.php. I should correct this every time by removing html/. Is there any setting to change the default folder to run in ...
0
votes
0answers
7 views

save files in /home/user1/public_html to /home/user2/public_html

I am at a stand still. I am trying to figure out how to allow a php script on /home/user1/public_html/* to save file to /home/user2/public_html/images Everything goes well but the file is never ...
1
vote
0answers
12 views

Gedit PHP syntax highlighting

Does anyone know how to fix this issue? I have PHP inline to HTML. There's an opening quotation and the inline PHP also has a quote, but Gedit thinks it's the closing quote for the HTML. Add this to ...
0
votes
0answers
19 views

php files connected with mysql server not working

I started a php project in netbeans and connected it with a database in localhost/phpmyadmin. But on running it gives this error on browser.. Why does this happen? How to avoid it? Here are the ...
0
votes
1answer
28 views

PHP and ffmpeg on Ubuntu

I have ffmpeg installed on Ubuntu Server and I'm running PHP from another webserver sending commands to the Ubuntu Server. $ff = '/usr/bin/ffmpeg -i '.$file.' -vcodec libx264 -pix_fmt yuv420p ...
1
vote
0answers
35 views

How to run php files in ubuntu?

I installed apache2, php5 and mysql. http://localhost/ url in browser shows it works. I saved a php file in /var/www/ as testphp.php. Code in the file is.. <?php phpinfo(); ?> Now on entering ...
0
votes
1answer
40 views

Clean install of Apache but can't access it via lan client

I've been fighting this issue for a couple days now and am at whits end, so any help would be great. I have several computers in the office. One is now a Ubuntu Server that I'm setting up for a ...
0
votes
1answer
24 views

PHP script execution mode Ubuntu 14.04.2

Using Ubuntu 14.04.2 LTS, apache 5.59 installed. PHP info not working, and I suspect the script interpreter is not set correctly or my file: /etc/apache2/mods-enabled/php5.conf is not set right. I ...
0
votes
1answer
32 views

File Permissions and umask [duplicate]

I am new to linux in general and have figured out the different programs belong to different groups. I can easily solve my own problem by typing sudo all the time. But I'd rather understand the why of ...
0
votes
0answers
7 views

how to run cakephp-3 in ubuntu after cake zip download

I downloaded CakePHP-3 zip file from cake site, and I know not how run cake3. How to run this framework and work with it in UBUNTU! I have a solution from another that install with compressor.!
0
votes
0answers
22 views

How to use SFTP with PHP Storm to access server /var/www folder

I am trying to use PHP Storm with a remote server project, but unfortunately I cannot succeed in configuring SFTP. I have followed these steps SFTP www. But I still get the same error ... Write ...
0
votes
1answer
25 views

Ubuntu 14.10 can't install libplrpc-perl, and php-bcmath

My system is: Distributor ID: Ubuntu Description: Ubuntu 14.10 Release: 14.10 Codename: utopic when I try to apt-get install libplrpc-perl , and php-bcmath it tells me ...
0
votes
1answer
15 views

Unable to acess SQLite database in Ubuntu using PHP under Apache

I am having trouble using SQLite3 with PHP in Ubuntu but it works well with Windows. In Ubuntu I have installed the php-sqlite package and the SQLite database is made using SQLite3.
0
votes
1answer
52 views

install php 5.3 on ubuntu 14.04

I just installed Ubuntu server 14.04, I need to migrate my site from old server Ubuntu 10.04 (which has php 5.3) to the new server, but currently when i install php using `apt-get install php` i ...
1
vote
1answer
49 views

Uninstalling php 5.3 in ubuntu 14.04

I have installed php 5.3 manually by executing commands like make & make install. But I need to upgrade it to v5.5 therefore I deleted all the directories related to php5 using sudo command. But ...
0
votes
1answer
29 views

Apache2 application php session can't be killed

I have php application running on my server, which many users can login, edit and logout using web access (apache2) I am trying to kill (end) all currently opened sessions (to make all users login ...
1
vote
0answers
17 views

Using MSMTP with GoDaddy relay servers. Help?

Okay first of all I have done my homework and research on this. Most of the guides that I have found are for setting up MSMTP with Gmail. First let me tell you what I have done so far. My box is ...
0
votes
0answers
21 views

New Relic and LAMPP PHP

I've been recently trying to install New Relic to work with my lampp (xampp) install of PHP. Whenever I run the installation it tells me that it cannot find the PHP install location. I'm assuming ...
0
votes
1answer
11 views

new virtual server, php and apache

I've just rented a virtual server ubuntu 14.04 with apache2 and php running. I know a lot of the *nix world but this is my first virtual server so I'm a bit newbie with it and with all the ...
0
votes
0answers
28 views

using php5enmod to ensure module is enabled

There seems to be some inconsistencies for ensuring a PHP Module / Extension is enabled. I'm using Ansible to provision my servers and found that there are some PHP Modules that are being verified if ...
-1
votes
0answers
29 views

Update libcurl ubuntu 10.04.4 LTS

I've just followed the steps on http://pavelpolyakov.com/2014/11/17/updating-php-curl-on-ubuntu/ in order to update curl. When I enter curl- V: curl -V curl 7.39.0 (i686-pc-linux-gnu) ...
0
votes
1answer
20 views

mcrypt installation error mcrypt.ini.dpkg-new no such file or directory

I'm trying to install magento in my ubuntu system. Once I installed the php5-mcrypt plugin successfully. But the Magento installation wizard was still showing the warning message "mcrypt is not ...
0
votes
0answers
24 views

Fresh Ubuntu install with LAMP and Symfony framework

I have wrestled with setting up a couple (around 5) development servers in the last couple of years and would be looking to do another one soon. However, thinking back, each time I have installed ...
0
votes
0answers
22 views

Install PHP 4.4 Ubuntu 14

I install PHP 4.4.9, but PHP code not executed. Help me pls. Thanks! apt-get install flex wget http://uk.php.net/distributions/php-4.4.9.tar.gz tar zxf php-4.4.9.tar.gz cd php-4.4.9/ ./configure ...
1
vote
3answers
52 views

How to run a php file after writing it and saving in vi editor

I have written a PHP code using vi editor and saved it as Test.php. What is the command to run the file in terminal?
0
votes
1answer
47 views

Cannot install OCI8 in ubuntu 12.04 /usr/bin/ld: cannot find -lclntsh

I am installing oracle in ubuntu with the help of this tutorial https://help.ubuntu.com/community/PHPOracle I have already installed php,apache2, build-essential,php5-dev php-pear ...
1
vote
1answer
21 views

PHP CLI version not getting updated

I have updated the PHP Version to 5.6.9-1+deb.sury.org~vivid+2 but on command line when I type php - v, it shows PHP 5.3.29 (cli) (built: Aug 21 2014 14:53:07) Copyright (c) 1997-2014 The PHP Group ...
1
vote
1answer
25 views

Install old versions of Mysql, Apache2, PHP

Is there a way to install old packages of the following versions: apache2: 2.2.12 mysql: 5.1.37 PHP 5.2.10 on Ubuntu 12.04, i386, using apt-get or dpkg?
1
vote
0answers
24 views

Error while installing phpmyadmin package in ubuntu 14.04

root@anonymous-20-a213l:~# apt-get -y install phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may ...
0
votes
0answers
9 views

EC2 istance, which should be the owner of the /var/www/* files?

This is the scenario: I spun up an EC2 instance (with LAMP), configured with sudo apt-get install lamp-server^ Now (logged as ubuntu) I simply put the only website that should be here on this server ...
1
vote
0answers
44 views

Modifying php.ini - Wont see any changes after edit

I got a server that runs : PHP Version 5.5.9-1 ubuntu 4.9 I wanted to edit the "correct" php.ini file so i can enable some features. First of all i used: root@server ~ # find / -name php.ini ...
0
votes
0answers
22 views

Sendmail xampp linux

I configured the php.ini in my xampp folder to send mails to my own gmail account but the does not work. Can someone help me please?? maybe through teamviewer?? Bu the way I use Linux Ubuntu 15.04