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
15 views

var/www won't work

I've installed the LAMP stack on my Ubuntu 14.04 laptop using the command: sudo apt-get install apache2 I went to localhost and it shows the typical tree (Index of ... ...
0
votes
1answer
15 views

Find out what php librariers are installed

I really hope this question is no duplicate, but I just can't find an answer. I'm new to Linux and PHP. I have a manual telling me that I need PHP with certain libraries installed. Is there a ...
-1
votes
0answers
8 views

how to setup external dabase setup [on hold]

I can read this documentation but when i can login this user name and password it is not working proper display error message invalid user name and password.
0
votes
2answers
26 views

How to install php5 in Ubuntu 13.04? [on hold]

I wanted to install php5 in my Ubuntu 13.04. But when I tried it using sudo apt-get install php5 Output" Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Then I ...
0
votes
1answer
26 views

How to install PHP MySQL extensions

I just installed a new server which comes with php 5.5. however one of my older projects requires php 5.3. So I installed php 5.3 with wget http://www.php.net/get/php-5.3.28.tar.bz2/from/a/mirror ...
0
votes
0answers
32 views

Pogramming php on Ubuntu

Could you please tell me how to use xampp (like on windows) on ubuntu step by step? I would like to program in php with PhpMyAdmin.... But I'm in trouble because what I did in last few weeks didn't ...
-1
votes
0answers
16 views

Magento : There are no products matching the selection

In magento at my home page i have added the the product block {{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}} ...
-1
votes
1answer
33 views

Upgrade php command line to 5.5.9

I am using Ubuntu 14.04. I have php installed. When I check phpinfo() from browser I get 5.5.9. But when I check from command line, I get 5.3.28. How can I make the command line php also to 5.5.9 ? i ...
0
votes
1answer
26 views

New Ubuntu Server and PHP

I just installed a fresh version of Ubuntu 14.04 Server on one of my computers. I installed everything to make it run like a typical web server (including PHP). My problem is, I have a contact form ...
0
votes
1answer
28 views

Unexpected PHP version 5.5.15rc1 from ppa:ondrej/php5

I've just upgraded from Ondrej's oldstable 5.4 to 5.5 package on 12.04 - which was smooth. The version installed is 5.5.15rc - I wasn't expecting the rc bit. Will an upgrade regularly include RC ...
0
votes
0answers
13 views

Is there a way to set up zPanel or webmin without uninstalling LAMP first?

I set up my server manually and am pretty happy with it. It's been a job of months, chipping away at it every day, and at this point I don't want to reinstall LAMP. But all server management software ...
1
vote
0answers
6 views

Error message odbc_connect(): SQL error: [unixODBC][FreeTDS][SQL Server]

I'm trying to get my Ubuntu server to connect to my SQL server, without a lot of luck. I keep getting the error: Warning: odbc_connect(): SQL error: [unixODBC][FreeTDS][SQL Server]Unable to connect ...
0
votes
0answers
25 views

ubuntu 14.04 and php 5.4

I am running ubuntu 14.04 . Previously i was running php 5.5 on apache2 server . Due to some specific requirements , i had to run php 5.3 . I did it by removing the current version and installing php ...
0
votes
1answer
43 views

How to downgrade PHP from 5.5.9 to 5.4 in Ubuntu 14.04 (Installed with LAMP)

I need to downgrade my PHP version from 5.5.9 to 5.4 (using Ubuntu 14.04), because I have a code that's using mySQL (which is deprecated in 5.5.9), and I cannot change that code. Is there a way to do ...
0
votes
0answers
11 views

Passing array in add_option() in WordPress custom theme [closed]

I am trying to pass an array in add_option(). When I try to access the array using get_option I'm not getting the results I expect. Here's a simple demo of my code: function ...
0
votes
0answers
13 views

Client error response [status code] 413 [reason phrase] Request Entity Too Large [url]

I am trying to upload a file to OpenStack's container. I can upload small files to the container successfully but not able to upload large files like 1 MB or larger than 1 MB. I am getting this ...
0
votes
1answer
23 views

Apache status suddenly stops

I have a problem with my apache, I am running Ubuntu server 12.04 on a VPS. I have a basic LAMP stack, my problem is this, every few days apache will just stop and I will just notice this if I checked ...
0
votes
1answer
24 views

how to direct php version to php in LAMPP to set default?

i'm just newbie in ubuntu i have install php before install lamp, when i type "which php" ==> /usr/bin/php not to direct in directory php in LAMP because php in LAMPP have enable mcrypt...but php in ...
1
vote
0answers
26 views

How do I downgrade php5.5.3 to 5.4?

I am trying to downgrade php from 5.5.3 to 5.4. I tried to find a 5.4 version using aptitude versions php5-common Package php5-common: p A 5.5.3+dfsg-1ubuntu2 saucy ...
1
vote
0answers
38 views

Why my apache service does not work correctly?

I am just a newbie using Ubuntu 12.04 LTS. In the beginning, I just want to install mcrypt, I followed this solution: cd /etc/php5/mods-available ln -sf ../conf.d/mcrypt.ini . php5enmod mcrypt ...
0
votes
1answer
103 views

php5enmod returns command not found

I've tried a number of guides on this issue, but so far I cannot get php5enmod mcrypt to work. Ubuntu 12.04 PHP 5.3.10 Here is the output ls of /etc/php5/conf.d and /etc/php5/mods-available ...
0
votes
1answer
41 views

Could Not Connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I am new to Ubuntu and using Ubuntu Server 14.40 LTS. I am trying to connect my mysql database to show database data on a php file but I am not able to connect it. I am getting error Could Not ...
1
vote
1answer
56 views

Unable to get error stack trace or error log while using php-fpm + nginx on Ubuntu 14.04

I am using php-fpm 5.5.9 along with nginx 1.4.6 on my Ubuntu 14.04 machine. I have installed them using apt-get package manager. I am unable to get a stack trace of the error that my index.php script ...
2
votes
2answers
53 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 ...
0
votes
2answers
46 views

PHP is not working with Apache on Lamp server

I have lamp server on ubuntu, The apache2 is successfully installed and local host is working. But I have no way to create/copy to the www folder, also my phpmyadmin is not working.
2
votes
1answer
47 views

How to install PHP mbstring extension in Ubuntu?

What is PHP mbstring extension. What is the perfect way to install this extension on ubuntu 14. Thanks Regards, Rohit
0
votes
1answer
76 views

setresuid operation not permitted when calling via php

I've got following Problem: my Apache and PHP script are running as user www-data. I want to call a script that can only be executed as root, so I added a new File to /etc/sudoers.d to allow this ...
0
votes
2answers
36 views

SuPHP: PHP 403 ErrorDocument in Apache won't work

I am trying to set up an 403 error document in Apache, using a PHP file, like this (via .htaccess): order deny,allow deny from all allow from [MY_IP] ErrorDocument 403 /err403.php but it doesn't ...
1
vote
0answers
22 views

Why the php statement “require” shows in the browser the content of the PHP file after upgrading my Ubuntu server from 10.04 to 14.04? [SOLVED]

In my old web server everything worked properly. After upgrading to Ubuntu 14.04,the PHP statement "require" displays in the browser the content of the PHP file pointed, instead of read it and load ...
0
votes
1answer
37 views

add-apt-repository throws python error

Trying to install the latest PHP5 packages and so I add the repo ( sudo add-apt-repository ppa:ondrej/php5) I need and this is the outcome: Traceback (most recent call last): File ...
0
votes
1answer
92 views

How do I correctly enable PHP 5.5's OPCache in Ubuntu 14.04?

I'm setting up a local server to test configurations; it's a clean 14.04 LAMP server, as selected during OS install. If I understand correctly, OPCache comes with PHP 5.5 (php -v confirms this) but ...
0
votes
2answers
45 views

I got Apache working on localhost (“it works!”), but now how do I get it to work on the internet?

I can see my "website" locally but how do I get it to show up online? Does it need a domain name per se or can't I just get DNS somehow to pick up my IP address and put it online or something, I don't ...
0
votes
0answers
87 views

Lubuntu 14.04: Php5 not working with Apache2

Lately I have been messing around with Lubuntu and today I decided to try to setup a web server (Apache2) with PhpMyAdmin and MySQL Server. This was going great until I attempted to use my test page. ...
2
votes
2answers
31 views

Is securing phpMyAdmin with .htaccess considered sufficient?

I have just installed Linux / Ubuntu for the first time in order to learn, and to get some experience with LAMP servers. I also installed phpMyAdmin and used an .htaccess file (stored in ...
-1
votes
0answers
31 views

mySQL server stopped working after changing date to 2114 (year 2038 bug?)

I changed my LAMP server date to 2114: date --set="30 June 2114 13:30:00" mySQL instantly stopped working and I cant restart service: [FAIL] Stopping MySQL database server: mysqld failed! ...
0
votes
0answers
13 views

Geany browser PHP execution

From another question, someone said I had to write php -S localhost:8080 -t "%p" -e & sensible-browser localhost:8080/"%f" as the script to run. It doesn't work, gives this: yes, that's on ...
1
vote
0answers
39 views

XAMPP (LAMPP) on Ubuntu Touch

Can I install and run XAMPP (LAMPP) on Ubuntu Touch on a Nexus 10 in order to host a local website (that needs PHP and MySQL)?
0
votes
1answer
35 views

Ubuntu 12.04 - upgraded to PHP5.4 - error on PHP Suhosin

I have a Linode VPS with Ubuntu 12.04. I had PHP5.3.10 installed and I just upgraded to PHP5.4.30 - by following the instructions given at ...
0
votes
1answer
78 views

PHP Startup Unable to load dynamic library

I'm getting this error in my apache error log while trying to get cURL to work on PHP: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/curl.so' - ...
0
votes
1answer
79 views

Extract Error Which Is About Installing Pear Email Packages On Ubuntu 14.04 [closed]

I want to send e-mail with smtp send function in php. So that ı should install pear email packages.But When I install these packages on terminal I get an error.The error is about extracting .tar.gz ...
0
votes
0answers
35 views

Apache/PHP generates blank pages and a 500 internal server error (Ubuntu 12.04 PHP 5.3.10)

I'm having troubles with my PHP. When I open a file on localhost, it generates a blank page. I looked at my browser's console and it is giving a 500 Internal Server Error. The page I try to open ...
0
votes
0answers
26 views

Install php 32 bits on ubuntu 64 bit

I'm currently upgrading servers and I have a nasty bug with php and a database driver. Long story short using the 32 bit version of php should fix the issue. I'm unable to install php5-common:i386. ...
0
votes
1answer
20 views

Apache is not even starting after updating

sudo apache2ctl start [Tue Jun 24 17:53:38 2014] [warn] NameVirtualHost *:80 has no VirtualHosts httpd (pid 4924) already running After running the above command to start apache2, I get this error. ...
2
votes
5answers
112 views

How to completly remove php libraries?

I use zsh. when I try to upgrade the system, some packages related to php pop up, I want to remove them sudo apt-get upgrade Reading package lists... Done Building dependency tree ...
0
votes
1answer
92 views

New PHP5.3.10 update error

After receiving the latest announcement about security vulnerabilities of PHP5 (Ubuntu Security Notice USN-2254-1) I decided to upgrade my server, but I ran into some problems. The new packages listed ...
0
votes
0answers
60 views

ubuntu 14.04 LTS apache 2.4 - 403 access forbidden

hey there i just made a website (more like a file manager) and hosted it on apache 2.4 on ubuntu 14.04 LTS but i can't seem to access the icons folder in var/www/html/icons, what i get is a 403 access ...
0
votes
0answers
10 views

php5 behaving oddly

I have an ubuntu server 12.04 running php5. Some of the php scripts work and others fail. For example, I can write files and use case statements, print, and echo, use the date commands. but, i cant ...
1
vote
1answer
46 views

File Permission In www/html Directory For Security

How can I give permission to directories and files in www/html for security. This files have an .js , .php , .sh extensions.They execute in www/html by apache's user(mine is www-data). When I give ...
-5
votes
0answers
90 views

Ubuntu 14.04 -> PHP 5.3 [duplicate]

Is it possible to downgrade to 12.04 from 14.04? My whole CMS project is made in PHP 5.3, and we need to change ANYTHING because a lot of things is outdated in 5.4, and you can't install php 5.3 in ...
1
vote
2answers
147 views

“This account is currently not available” error when trying to ssh

An error occurs when I try to make SSH connection: $ ssh -p 22 www-data@x.x.x.x This account is currently not available