Questions tagged [php]
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.
2,594
questions
1
vote
1
answer
699
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
1
answer
2k
views
Php Obfuscator on Ubuntu 14
I am looking for PHP obfuscator without any server side plugin required. I would really appreciate any suggestions. Thanks
1
vote
1
answer
957
views
email - Postfix name issue with using $header "name <email>"
I've set up Postfix on my Ubuntu+Nginx machine to send mail and I'm running in to one issue.
The issue is that the from name is www-data with the email [email protected]....
1
vote
1
answer
2k
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 ...
1
vote
1
answer
3k
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 32-bit on the dual processor server, then I upgraded using d-release-upgrade to 14.04.
I then ...
1
vote
1
answer
624
views
How to find out which php libraries are installed?
I have a manual telling me that I need PHP with certain libraries installed.
Is there a command to list all the installed PHP libraries?
How do I know if I have them installed or not?
One would ...
1
vote
2
answers
5k
views
sending email from cron with correct format
I am stuck when sending email in correct format from cron jobs executing my php script which fetches records from mysql database.
i have a php script which fetches records from database and renders ...
1
vote
2
answers
8k
views
Permission Denied When Create New File
I could create file with php fopen(..) when I used the ubuntu 12.04. But now I can't create file with php, because I pass ubuntu 14.04. I can open existing file to read or to write. But I can't ...
1
vote
2
answers
4k
views
PhpStorm theme installation folder not found
I am new to ubuntu and I am trying to install theme for PhpStorm. this question point out the folder ~/.WebIde50/config/colors but I am unable to find ~/.Webide50 folder.
1
vote
1
answer
4k
views
Ubuntu Server 14 MySql php connect problem
I have ubuntu server 14.04 installed along side Apache, PHP5 and MySQL server all together. I can gain access to the server using putty and the mysql database using Heidi Sql remotely.
On my laptop, ...
1
vote
1
answer
1k
views
Run PHP (in console) with Geany
I can manually go to terminal and write php filename.php and it will run it successfully for me. I just need to know how I can do it from Geany.
Proof:
gnome-terminal -e "php %f" is what I ...
1
vote
2
answers
2k
views
PHP Memcache Extension Incomplete on Ubuntu 12.04
The issue is this. I have several servers all running the php5-memcache extension on Ubuntu 12.04. The PHP documentation (on php.net) has several functions like cas that are not part of the default ...
1
vote
2
answers
8k
views
Installing php5-fpm but missing www.conf
I am installing php5-fpm on my ubuntu system but could not able to find www.conf file under pool.d directory.
In my /etc/php5/fpm folder, there are only 2 directories - conf.d and pool.d
Command ...
1
vote
2
answers
1k
views
Xamppp No Mcrypt.ini when intalling Lavarel
I tried to install Laravel on Xubuntu 14.04
I searched for every method, they all go like this. By the way, I tried installing php and apache without xampp and didn't as well so it's not about xampp,...
1
vote
1
answer
2k
views
Unable to locate package php5-readline
samitha@ubuntu:~$ sudo apt-get install php5-readline
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5-readline
What ...
1
vote
1
answer
303
views
Installing Tomcat 5.5 from source for PHP Java Bridge
I want to install PHP/Java Bridge. I installed Tomcat 7 for it, but it failed:
sudo dpkg -i /home/asif/jbridge/php-java-bridge-j2ee_5.4.4.2-3_all.deb
Selecting previously unselected package php-java-...
1
vote
2
answers
132
views
Is the latest provided php5 package in an LTS distribution secure?
I need to update php5 on a 12.04 LTS production server. The latest candidate provided is 5.3.10-1ubuntu3.9. Is that version patched to be secure for use in a production environment?
PHP is up to 5.5....
1
vote
1
answer
2k
views
Ubuntu 12.04 - Installing PHP with -fastcgi
Does anyone know how to install PHP on Ubuntu with fastcgi enabled? I've installed my PHP from the following site: http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/
...
1
vote
1
answer
6k
views
object not found in lampp ubuntu 13.10 [closed]
I am a newbie linux user. I have installed xampp 1.8.3-2(lampp) on Ubuntu 13.10 and configured it.
I paste my www folder to Ubuntu 13.10 in /opt/lampp/htdocs.
Now that the owner of www folder is ...
1
vote
1
answer
377
views
Getting issue with file permissions in Ubuntu 10.04
I've a development desktop having Ubuntu 10.04, Apache2 & PHP 5.3.2 installed. I've given 0777 permissions to my web application root folder and Apache2 is also running under current username. But ...
1
vote
1
answer
792
views
ubuntu 12.04 - fuser high cpu
The problem is fuser high cpu and server load high.
root 20 0 7580 840 692 D 10 0.0 0:00.31 fuser 16061
root 20 0 7580 844 692 D 10 0.0 0:00.31 fuser 16062
root ...
1
vote
3
answers
5k
views
Ubuntu-Lampp PHP path issue
I use Ubuntu 13.10 and Lampp.
When I try to run sudo php artisan job-daemon I get the above message. But when I run php artisan job-daemon it works just fine.
php -m gives me the following:
[PHP ...
1
vote
1
answer
11k
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
1
answer
860
views
Ubuntu 12.04, Php5-fpm, Apache2, Postfix: impossible to send a mail with PHP
Resources I followed
I followed several howtos and questions on askubuntu:
https://help.ubuntu.com/community/Postfix
How to configure apache / php / postfix website emails when using vhosts?
Sending ...
1
vote
1
answer
7k
views
Debugging PHP in Ubuntu (Xdebug)
PHP Vim Debugger: Configuring Apache
I am trying to install Vdebug to debug PHP in Vim. Unfortunately, when I press F5 this message appears after a few seconds
Waiting for a connection (Ctrl-C to ...
1
vote
1
answer
3k
views
How do we install PHP extensions for Phoronix Test Suite?
The phoronix-test-suite package provides a good way to benchmark one's hardware. After installation using Software Centre on Ubuntu 13.10 Saucy Salamander, the package does not run properly. The ...
1
vote
1
answer
1k
views
Not able to install PHP5-dev in 13.04
I'm trying to run phpize in ubuntu. However, it seems that the php5dev is not installed.
So I run
apt-get install php5-dev
However the terminal returning some error messages :
Err http://sg....
1
vote
1
answer
5k
views
Install and Configure XHProf
Problem
I'm trying to configure and use XHProf. I've managed to get it installed and running on my server but I get a blank page when I try to access localhost/xhprof_html
This is the general post I'...
1
vote
2
answers
7k
views
PHP5.4 Unable to load dynamic library gd.so undefined symbol: gdGetC
I installed PHP5.4 from PPA ppa:ondrej/php5-oldstable in my Ubuntu 12.04.2.
Then all of my image processing scripts got broken. Turns out the php5-gd library isn't loaded.
$ php -a
PHP Warning: PHP ...
1
vote
1
answer
4k
views
PHP, ssh2_exec is not working properly
I have a shell script makedir.sh as given below.
sudo -H sh -c '
mkdir /usr/local/testdir;
if [ $? -eq 0 ];then
echo "Successfull";
else
echo "Unsuccessfull";
fi
'
I ...
1
vote
1
answer
1k
views
Apache PHP not working after Update
Im using Ubuntu 12.04 LTS.
There was an Ubuntu-Update yesterday and after starting the pc today my apache php isnt working anymore. I get the download of the php-files instead of the website.
I ...
1
vote
1
answer
981
views
PHP5 Ubuntu not updated? [duplicate]
I just installed php5 on my newly setup Ubuntu Server 12.04. However, I noticed why does the PHP version is kind of too low? As compared to the official PHP.net website, the recent version is at PHP 5....
1
vote
2
answers
1k
views
configuration issue with respect to .htaccess file on ubuntu
I am building an application tshirtshop I have following configuration in
/etc/apache2/sites-enabled/tshirtshop
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot ...
1
vote
1
answer
773
views
Gearman Job Server and PHP Extension
How may I install Gearman Job Server and PHP Extension on my Ubuntu 13.04 Desktop? I've already installed latest version of PHP on my Ubuntu 13.04 Desktop.
I've to run my custom Script with Gearman. ...
1
vote
1
answer
4k
views
Nginx Basic Auth and subfolders
I have a problem with subfolders in a basic auth procted folder. In the protected folder i have a folder named phpmyadmin, which contains phpmyadmin. Im not able to run phpmyadmin, when basic is ...
1
vote
3
answers
3k
views
Useradd from PHP script
is it possible to add an user with PHP script ?
1
vote
1
answer
1k
views
Mysql5.6 and problem of php5-mysql , mysql-common packages
I install Mysql 5.6 with this documentaion(in ubuntu 13.04) , now I need to install php5-mysql and mysql-common packages. can I install them with apt-get? I think they will install mysql5.5 compatible,...
1
vote
1
answer
1k
views
How to upgrade the php version from 5.3.x to 5.3.y? [duplicate]
I just downloaded the development release of Drupal8 for testing purpose. When I try to install it shows the following error:
Your PHP installation is too old. Drupal requires at least PHP 5.3.10.
...
1
vote
2
answers
778
views
How do I install Roundcube?
Does anybody know how to install Roundcube on ubuntu Precise.
1
vote
2
answers
1k
views
Erro install PECL ID3 tag support module for PHP
I'm trying unsuccessfully to install id3 from PECL (tutorial). So, I did:
mkdir id3tmp
cd id3tmp
wget http://pecl.php.net/get/id3-0.2.tgz
tar -zxvf id3-0.2.tgz
pecl build
And here, I got the error:
...
1
vote
1
answer
118
views
How can I get php errors reported?
Currently installed php version 5.3.10.
It is not reporting any kind of errors like syntax error e.g.
<?php
define("variable" , 10);
variable++;
echo variable;
?>
This code has an error and ...
1
vote
1
answer
2k
views
ubuntu server: can't access apache hosted pages after changing ip
I moved my server to a different office. Since they wanted to access it, I joined their network by changing my server's IP. The server hosts LAMP + postgres.
Now I can't get the basic web apps to run....
1
vote
1
answer
3k
views
PHP mail() with ssmtp
I have a very peculiar problem... I have a Ubuntu Server 12.04 with LAMP installed and ssmtp installed and configured properly... Now I can send mails from my terminal with and without sudo. This ...
1
vote
2
answers
2k
views
Sending keyboard commands to Ubuntu through Python. Remote for my Blackberry
I am trying to build a remote control application to control media on my Ubuntu. Does anyone know a way in order to accomplish this. The media keys in particular.
Thank you.
EDIT 1:
I have tried ...
1
vote
1
answer
312
views
PHP `virtual()` with Apache MultiViews not working after upgrade to 12.04
I use PHP's virtual() directive quite a lot on one of my sites, including central elements. This worked fine for the last ~10 years -- but after upgrading to 12.04 it somehow got broken.
Example setup ...
1
vote
2
answers
723
views
Get information from virtual machine manager using php
Is it possible to retrieve information from virtual machine manager using a php code? i tried through exec commands but couldn't get anything in browser as result. Please any help to complete this ...
1
vote
1
answer
3k
views
php.ini shows "magic_quotes_gpc = Off" but phpinfo shows it as 'On'
I am installing Joomla. It reported that magic_quotes_gpc is switched on so I went to check out php.ini. In there it's showing as off. I did a bit of googling and it turns out the server could be ...
1
vote
1
answer
4k
views
Is it possible to execute terminal commands using PHP?
Is it possible to execute terminal commands using PHP? I need to display cores alloted to each VM and some other details of the virtual machine. Am using KVM. can anyone help to do so. Am using Ubuntu ...
1
vote
1
answer
7k
views
Call to undefined function sqlite_open() in CLI mode
12.04 AMD 64
apt-get install sqlite php5-cli php5-sqlite
php -r '$x = sqlite_open();' PHP Fatal error: Call to undefined function sqlite_open() in Command line code on line 1
1
vote
1
answer
3k
views
12.04: php5-curl not working, NOT a LAMP server
I've just setup a fresh install of 12.04 Server. Have everything working nicely, except getting this php5-curl mod to work.
I ran apt-get install curl libcurl3 libcurl3-dev php5-curl
So I go check ...