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
votes
1answer
9 views

Restore php5.5 after php5.6 removal

I have Ubuntu 14.04, wanted to try php5.6. Added ppa:ondrej/php5-5.6. Updated. Installed php5. Got php5.6. Did not find some extensions and decided to switch back to ubuntu's own php 5.5. Deleted ...
0
votes
1answer
12 views

Why does Firefox repeatedly open new tabs when I open a .php file?

I do web development and design. I've just set up my PC (Ubuntu 14.04 LTS) and installed my choice of software. On the .php files I set Firefox as the default software to open with but now it opens ...
0
votes
0answers
22 views

How to resolve this error I got after PHP version upgrade “The apache2 configtest failed.”?

I'm using ubuntu Linux 12.04 LTS on my machine. I was using PHP 5.3.10 Now I upgraded to PHP 5.5.18 by using few commands on terminal. After I upgraded to latest PHP version I checked the version by ...
1
vote
0answers
13 views

How to disable mpm-itk for a specific virtualhost?

I've a main site on a server that needs to run a sudo command which I white listed via visudo. That worked fine until I installed apache-mpm-itk and then I started getting the following error: sudo: ...
0
votes
2answers
17 views

Run PHP script from command line?

How can I Simply Run a php script in the command line? Also is it possible to run it like it would be if the Url was typed in?
-1
votes
1answer
26 views

phpMyAdmin doesn't work when installing from repo

I've just installed phpMyAdmin via apt-get and rebooted. When i enter '127.0.0.1:3306' into web browser, i get something like this: I'm totally new to mysql but quite experienced with linux. How ...
0
votes
0answers
9 views

access denied from local host

Ok, I've set up my server and have been having fun designing my website. At the moment I've got several php files that access my MySQL databases. everything is ok client side and the php has no ...
2
votes
0answers
11 views

Could I recompile php after install with apt-get?

the title says a lot I guess, I want to install my lamp serve with: apt-get install lamp-server^ And after that I want to recompile the php to add the pthreads, it is possible install the lamp ...
0
votes
1answer
32 views

Cannot install LAMP after upgrade ubuntu on 14.10 [on hold]

This is the problem: arber@arber-HP-Pavilion-dv6700-Notebook-PC:~$ sudo apt-get install lamp-server^ Reading package lists... Done Building dependency tree Reading state information... Done ...
0
votes
0answers
9 views

Different php versions in ubuntu after installing one php

I've installed php 5.5.17 by downloading tar file and following steps of ./configure and make and make install. Then I installed some apache and php modules. When I search php -v in terminal it shows ...
0
votes
0answers
12 views

.aspx and .php pages not calling during play dynamic .swf content

.aspx and .php pages not calling during play dynamic .swf content using lighttpd and php5 in ubuntu 14.04. The flash content hit the url like ...
0
votes
0answers
17 views

php-gd is not working

I'm running Ubuntu 14.04 with php 5.5.9 and i keep getting this message Fatal error: Call to undefined function imagecreatefromjpeg() I've tried everything possible from reinstalling php5-gd, ...
0
votes
0answers
25 views

How can I resolve package conflicts when installing old version of PHP with apache2?

I have a legacy app which requires a specific version of php. I've downloaded debs for php, pear, etc. from old-releases.ubuntu.com, and I am writing a script to install them when provisioning a ...
0
votes
1answer
27 views

pg_dump won't run through PHP

This question has been addressed in various other posts but they don't seem to help me out. My issue is that I run the following script: $strBK = '/usr/bin/pg_dump --host localhost --port 5432 ...
0
votes
0answers
12 views

my browser is downloading .php files instead of loading them [duplicate]

i already have install all the softwares like apache 2, mysql, php5, phpmyadmin, database. but my browser is just downloading .php files instead of loading them, and on loading localhost/phpmyadmin. ...
0
votes
1answer
19 views

What php version does ubuntu 14.04 officially support?

So simple question in the title, but did not find on google or in there. Or if there is - maybe you can give keywords on how to find this information.
0
votes
1answer
26 views

ubuntu LAMP server can't create new .conf file and configure

I have the LAMP server on Ubuntu 14.04. I came to know about the php laravel framework. So I just installed laravel by going from this link. I just made copy the 000-default.conf file from the path ...
1
vote
1answer
67 views

Apache2 start error when using php5 module ( Ubuntu Server)

I am using Ubuntu Server. When I start apache2 everything is fine, but when enabling php5 module and restarting apache2 I get this error: ERROR: *** Restarting web server apache2 ...
0
votes
0answers
53 views

Ubuntu downgrade PHP 5.5.17 to 5.5.16

There is a bug in PHP 5.5.17 which is preventing me putting something into production. I need to downgrade to 5.5.16. I have php5-cli and php5-fpm through apt-get. How can I remove 5.5.17 and install ...
0
votes
0answers
8 views

How to build php from source with a custom name

I have PHP 5.5 running on my Ubuntu 14.04x64 server using PHP5-FPM that's bound on port 7501 and would like to run PHP 5.6 concurrently on the same server with it's own location and it's own package ...
0
votes
0answers
15 views

Where do the extensions of self compiled PHP on ubuntu 14.04 go?

I downloaded PHP 5.3.29 and configured it with the following options: ./configure' '--with-apxs2=/usr/bin/apxs2' '--enable-ftp' '--enable-mbstring' '--with-mcrypt' '--with-mysql' '--with-mysqli' ...
1
vote
0answers
35 views

On terminal I see PHP 5.3.29, but in browser I am getting PHP 5.5.9. Please help

I want to install php 5.3.29 in Ubuntu 14.04. I have tried following this post: Installing PHP 5.3 in Ubuntu 14.04 Got it work. I am getting php version as 5.3.29 while I am in terminal. I created ...
0
votes
2answers
48 views

When I try to acess my websitefolder in Ubuntu Im getting a blank page

I recently installed Ubuntu and I'm a php developer. And I'm trying to use Ubuntu for this purpose. I already installed mysql-server and phpmyadmin and I can already access the localhost. And also ...
0
votes
0answers
47 views

setup mod_proxy_fcgi phpmyadmin on apache php-fpm chrooted user

I have PHP5-FPM + mod_proxy_fcgi (chrooted) running on Apache2 (mpm_worker) Ubuntu 14. By this every vhost user is chrooted to there home dir "/var/www/html/domain.com/public_html/". Here php in ...
-2
votes
0answers
15 views

How to install LAMP in ubunatu 13.04 i386 from packages offline? [duplicate]

How to downloads right packages please i have lost 2 time my data to install lamp...please help me easy way
0
votes
0answers
10 views

exec PHP and Rscript

I'm completly new to ubuntu, well more precisely i am using xubuntu. The point is that i want to run a program.R using Rscript in PHP. I can do it on a terminal writing something like Rscript ...
0
votes
0answers
120 views

dpkg: error processing package libapache2-mod-php5

I have a problem at moment of use my apt-get/aptitude package manager When I want install some packages I get the following output: sudo aptitude install libxslt1.1 libxml2 The following partially ...
0
votes
0answers
23 views

cakePHP project's sub-directory cannot be access in ubuntu server but it works fine for others

My CakePHP Project's root .httaccess file is given below, <IfModule mod_rewrite.c> RewriteEngine on #Rewritebase /my_project RewriteRule ^test_folder/(.*) test_folder/$1 [L] ...
0
votes
1answer
56 views

How to make Curl and PHP available when installed from Xampp

I have installed a recent copy of XAMPP on Ubuntu 14.04. However, when I issue this command: curl -sS https://getcomposer.org/installer | php I get the following error messages: The program ...
0
votes
1answer
40 views

htaccess, how to hide php extensions

I am trying to use the .htaccess file to hide php extensions but it doesn't seem to be working. It does work if there is a html file in the directory and I don't use the .html extension. This is ...
0
votes
1answer
29 views

Replace DEB.SURY.ORG PHP with original

I added Ondřej Surý's repository which was a great help at the time. Now I have issues installing cURL and I think returning to "original" PHP would solve the problem. Currently all my PHP packages ...
0
votes
1answer
25 views

get php info for apache 2 [closed]

I want to see my php information on my apache2, how I can configure to see php info? your help and information is great appreciated,
-1
votes
0answers
18 views

NEXT AND PREVIOUS button for wordpress

<?php next_post('&laquo; &laquo; % ', 'PREVIOUS ARTIST', 'no'); ?>&emsp;&emsp;|&emsp;&emsp;<?php previous_post('% &raquo; &raquo;','NEXT ARTIST','no'); ?> ...
1
vote
1answer
37 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
3answers
248 views

When will PHP 5.6 be in the official Canonical repos?

I imagine it won't up until 14.10 is released, but even if that is the case, could we expect to see it show up in the repos that 14.04 uses?
0
votes
1answer
73 views

How to upgrade softwares from currently installed LAMP on Ubutu 12.04 LTS system? Please provide me the step-by-step instructions

Someone had installed LAMP on my machine almost two(2) years back. I got this machine since last six(6) months. The LAMP is working fine for all of the PHP project work I do. But the issue is all the ...
0
votes
1answer
46 views

Cannot get nginx to render my WordPress site

I am new to nginx but I followed religiously all the tutorials and tried to setup my WordPress site but I have an issue at the moment I cannot resolve. Basically I have the following configuration in ...
1
vote
0answers
14 views

locate [file] but go to directory, it's not there [duplicate]

I am root. I have PHP webpage on Apache 2 server putting .stl files in /var/www/upload using move_uploaded_file( 'from', 'to' ) When I use locate, I see the file is in /var/www/upload When I cd to ...
0
votes
1answer
31 views

Allow PHP for accessing filesystem [closed]

I'm a newbie and I have installed Linux Mint (x64 Ubuntu-based) and Apache v2.0, PHP 5.5.9 and MySQL. Then I installed WordPress and I was almost unable to upload and edit files (I got "Permission ...
0
votes
1answer
230 views

phpmyadmin not found

I am using ubuntu 14.04. I have made setup LAMP by going through step by step what in this link. For apache I mean http://localhost all the files are working fine . But when I am doing ...
0
votes
1answer
55 views

permission denied access php5 folder

I wanted to access files php5 folder on \var\lib\php5, but I got permission denied. I use Ubuntu 14.04 LTS. Is it Ubuntu lock the permission for the folder and need root access? Your help and ...
0
votes
2answers
245 views

Forbidden You don't have permission to access /phpmyadmin on this server

I installed php, mysql, phpmyadmin on my Ubuntu 12.04 localhost in the following steps: I try these steps: sudo apt-get install apache2 sudo /etc/init.d/apache2 restart sudo apt-get install php5 ...
0
votes
1answer
35 views

Alternatives to Cron

I'm doing a server running Ubuntu Server 12.04 and Apache. The users have continuous updates in the dinamic pages through a Java script, downloading JSON files through Ajax request to server. All the ...
0
votes
1answer
55 views

Ubuntu - Is it normal that my apache webroot is in html directory [duplicate]

I have installed PHP, MySQL, and Apache in my machine by following this tutorial. I created one file info.php to test if php is working on my apache server, but I go message file not found. Then, I ...
0
votes
1answer
106 views

Cannot install libapache2-mod-php5 because of unmet dependencies

I have a vagrant box that installs php 5.3.28 and most php libraries dpkg -l |grep '^ii' |grep php ii php5-cgi 5.3.28-1~dotdeb.0 server-side, HTML-embedded ...
0
votes
0answers
48 views

Install PECL_HTTP

I'm close to the madness with this problem. I need to use the HttpRequest class on PHP, I've followed the steps on this site Ubuntu PECL HttpRequest installation, but when run the sudo pecl install ...
0
votes
1answer
45 views

to render a simple html file in localhost

I am going through the david malan lecture on php,, So I have created a simple google.html file on /public_html/google.html which is as follows: anupam@JAZZ:~/public_html$ more google.html ...
-1
votes
1answer
125 views

Best IDE for php/web developement in Ubuntu [duplicate]

Can anyone suggest an IDE for php development in ubuntu 14.04. In Netbeans fonts looks narrow and ugly. Is there anyother alternative ? What about Aptana Studio 3 ?
0
votes
1answer
23 views

PHP5-FPM w/Apache2 FastCGI Error -1 Copy file failed

I'm using php5-fpm with apache2 and I'm receiving the below error message. FastCGI: comm with server "/var/lib/apache2/fastcgi/php5.fcgi" aborted: error parsing headers: invalid Status '-1 Copy file ...
0
votes
0answers
32 views

Unmet dependencies when installing apache2-prefork-dev [duplicate]

I m trying following command: sudo apt-get install apache2-prefork-dev And getting this error: The following packages have unmet dependencies: apache2-prefork-dev: Depends: libaprutil1-dev but it ...