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
163 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
168 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 ...
2
votes
0answers
77 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
54 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
96 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
47 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 ...
3
votes
0answers
67 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
0answers
20 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
45 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
133 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
139 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
1answer
35 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
283 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 ...
3
votes
1answer
4k 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
184 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
34 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
73 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
223 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
78 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
299 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 ...
0
votes
0answers
417 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
96 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] ...
1
vote
1answer
6k 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
123 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
80 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
36 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
vote
1answer
162 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 ...
7
votes
3answers
4k 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
708 views

How to upgrade softwares from currently installed LAMP on a 64-bit Ubuntu 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
134 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
56 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 ...
1
vote
2answers
8k 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
296 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 ...
1
vote
2answers
13k 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
369 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
875 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
787 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
169 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
224 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
5k 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
73 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 ...
1
vote
0answers
154 views

Crontab not executing script with cURL

I have a cron that's set to run every ten minutes that works fine if I execute the file manually by entering php register.php But, my cron will not execute this file once it includes anything cURL ...
0
votes
0answers
21 views

Installing PHP 5.4 instead of 5.5 on Ubuntu Server 14.04 [duplicate]

Any one please suggest commands to install PHP 5.4 instead of PHP 5.5 that comes default with Ubuntu server 14.04 For some compatibility issues i want to install PHP 5.4 not 5.5. I have a fresh ...
0
votes
1answer
73 views

apache broke after upgrading

I tried to upgrade my php version with the help of this and somehow the apache version also upgraded. After this upgrade I got a lot of errors obviously and I managed to solve lots of them except this ...
1
vote
1answer
75 views

Can I debug PHP scripts running in Apache on Ubuntu?

Coming from the Microsoft world, where Visual Studio, Windows, and IIS seemingly play nice together, I can attach the Visual Studio debugger to the IIS process and debug code in play. When a web ...
0
votes
0answers
57 views

“php-clamav: depends on: phpapi-20090626+lfs but it is not going to be installed”

I want to install "php-clamav" . But... msy@msy-Inspiron-One-2020:~$ sudo apt-get install -f php-clamav 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是 ...
1
vote
1answer
246 views

Why won't this php script execute bash script?

Why am I not able to execute this bash script using php? I have tried exec() as well as shell_exec(). index.php <?php $old = getcwd(); echo $old; chdir($old); $message=exec("a.sh"); ...
0
votes
0answers
88 views

PhpMyAdmin wont let me log in without password

I am preparing a Vagrant box to develop websites and I wanted to install phpmyadmin, to log in just as "root", no password needed, since it is just for development, but whenever I try it, I get the ...
1
vote
2answers
2k views

testphp.php 404 Not Found

I installed LAMP Server. I can access http://localhost. I can also run successfully phpmyadmin. But when I go to http://localhost/testphp.php, I get a 404 not found. The file is in ...