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)

3
votes
4answers
17k views

Run PHP from the command line

I have installed XAMPP v1.8.3 for my PHP development. I am new to Ubuntu, so I don't know how to set environment variable for PHP which is located at /opt/lampp/bin/php. I can run PHP scripts from ...
0
votes
0answers
17 views

Unable to install php5-intl on Ubuntu 13.10 [duplicate]

I am trying to install phpt-intl extension on Ubuntu 13.10 using the following command: sudo apt-get install php5-intl And I am having the following output: WARNING: The following packages ...
0
votes
0answers
22 views

How to access Canon CR-50 check scanner connected to Ubuntu 12.04 using CLI?

I am developing a project which needs to access Canon CR-50 check scanner using PHP. How can I make it work? I am currently working on Linux (Ubuntu 12.04) machine, any solution will help me a lot. I ...
0
votes
2answers
29 views

PHP.ini change not reflected

I am trying to install Zabbix and the following errors appeared during pre-installation I proceeded to change the setting in PHP.ini file to the minimum requirements The problem is that though ...
0
votes
0answers
61 views

Problem after upgrading php from 5.3 to 5.5 ( Apache / Ubuntu 12.04 / Plesk )

After upgrade from php 5.3 to 5.5 , I got the following problem when I type service apache2 start * Starting web server apache2 apache2: Syntax ...
0
votes
2answers
53 views

Error Message while installing php5-intl

When I try to install php5-intl, I got this error message. What does mean of this message? Anybody can help me to explain this message? Should I remove php5-common first? or anything else? ...
1
vote
1answer
20 views

.htaccess causes 500 Error

I am trying to use the Rewrite Engine in Apache. This is my .htaccess <IfModule mod_rewrite.c> Options +FollowSymLi2nks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ ...
0
votes
0answers
32 views

Problem getting curl working in php and broken packages on install.

Im trying to get curl running in php on ubuntu 12.04. (A setup script complains that curl is not enabled, which appears to be true). phpinfo does not list curl at all ie it doesnt appear to even say ...
1
vote
1answer
8k views

Ubuntu 13:10 - Downgrade php 5.5.3 to 5.4

Can someone give me step my step instructions on how to do this? Will I have to worry about and data/databse loss doing this. Thanks! sudo apt-get remove --purge dpkg -l | grep php | grep -w 5.5 ...
1
vote
2answers
1k views

Location to edit xdebug.max_nesting_level in ubuntu 14.04 PHP using Lighttpd

I am getting fatal error maximum function nesting level of '100' reached aborting.. It seems I have to edit xdebug.max_nesting_level from 100 to more. But I am unable to find the correct file ...
0
votes
0answers
37 views

php issues after upgrading

My ubuntu 12.04 with apache2/php 5.3/ mysql 5 was working without any problem. I had to upgrade to php 5.4 to install a software and later i found that many of my official projects started showing ...
0
votes
0answers
13 views

PHP 5.2.6 make test failling

I need to setup a test environment that runs PHP 5.2.6 but I keep running into problems with the make test script. For testing purpose I am building this setup on a virtual machine running ...
1
vote
2answers
673 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
votes
2answers
22 views

how to move a file in desktop in a directory?

I want to move a .php file named My Form.php which I have saved on my Desktop before to \var\www. When I use: sudo mv My Form.php www in terminal, it says there is no such file My.php and Form.php. ...
0
votes
1answer
18 views

Apache 2.4: pcfg_openfile unable to check htaccess / php warning include() failed opening for inclusion

Situation I've installed Ubuntu 14.04 on my desktop, and now need to get Apache 2.4 working with my local websites. With 12.04 this all worked. Now I get two errors, and googling for these errors I ...
0
votes
1answer
56 views

Remove '.php' from url - Nothing works

Ubuntu 14.04LTS 32bit LAMP I know it's an old question but.. I need it to remove .php anywhere it finds it from the visible url. It needs to work with /showthread.php?id=XX ---> /showthread?id=XX ...
2
votes
2answers
53 views

Automate user creation [closed]

I have a site for my students, and it is running on Ubuntu 14.04. When my students register themselves on my site, I store user info in an MySQL DB. I would like to give my students a website on my ...
1
vote
1answer
79 views

Can logrotate suffer race conditions?

I have a PHP application that can generate quite a lot of log information. I'd like to use logrotate to make sure these logs don't get out of hand over time. However, I'm concerned about race ...
0
votes
0answers
33 views

Owncloud server upgrade to 14.04 or just upgrade php

I have a Ubuntu 12.04 server (on digital ocean) running owncloud 7. I want to upgrade Owncloud to version 8. The problem is Owncloud 8 requires php version 5.4 or higher. I am currently running php ...
0
votes
0answers
19 views

'LIBXML2_2.9.0' not found (run PHP-file with shell_exec)

I wrote a PHP-script to execute another PHP-file in the terminal and got an error. If I run: $output = shell_exec("/usr/bin/php -v 2>&1"); echo "<PRE>$output</PRE>"; then I get ...
0
votes
1answer
6k views

Apache doesn't load .php files

First, sorry for my English and asking something that it's quite answered all over the web. I've read a lot of post about this problem but I still can't find the solution. I'm a web developer who ...
0
votes
2answers
92 views

Ubuntu 14.04 Remote shutdown teamviewer or php script

when I try to remotely shutdown with teamviewer my Ubuntu 14:04 pc turns off uncompletely because of the teamviewer team advice appear on the desktop (wine supported). I solved by running the coomand ...
11
votes
5answers
60k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
5
votes
2answers
8k views

php not executing on apache server

I have just reinstalled apache and php5 but when I visit my doc root it just downloads a "download" file and when I try documentroot/index.php it just downloads the php, I have php installed but it ...
1
vote
0answers
31 views

is package php5-mysql_5.5.9+dfsg-1ubuntu4.7_amd64.deb compatible with mysql 5.6.24?

I have installed php with sudo apt-get install php5 followed by sudo apt-get install php5-mysql but received a warning when trying to use mysqli class: mysqli::mysqli(): Headers and client library ...
1
vote
2answers
59 views

Connecting phpmyadmin to seperate mysql server

I've got what's probably a very easy question to solve, but I've been stuck on it for a few days now. I've got 3 servers running in a small network, DNS, HTTP and MySQL. I've got apache2 and PHP5 ...
0
votes
0answers
153 views

http://localhost/phpmyadmin Not found

I have tried to run myphpadmin and I get this message: Not Found The requested URL `/phpmyadmin` was not found on this server. Apache/2.4.10 (Ubuntu) Server at localhost Port 80 I have reinstalled ...
0
votes
0answers
12 views

what are the available servers like mediawiki with user group access control?

I need to host a server inside LAN for the purpose of keeping documentations and other data. Mediawiki supports collaborative editing with no user group restriction. I have tried Access control ...
0
votes
1answer
45 views

Can't install phpmyadmin on ubuntu 14.04+apache2

I installed phpmyadmin via sudo apt-get install phpmyadmin but here what gives me http://localhost/phpmyadmin/: php5, phpmyadmin etc. modules are activated for apache. How can I fix this?
42
votes
8answers
84k views

Mcrypt extension is missing in 14.04 server for mysql

The php mcrypt extension on ubuntu 14.04 shows that it is installed properly, but phpmyadmin says: The mcrypt extension is missing. Please check your PHP configuration. My current php config is ...
0
votes
1answer
134 views

PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Connection refused

I have a different server for my database. When I connected to database with PDO, I used the IP address of database VM for host parameter: $dbh = new ...
0
votes
0answers
13 views

Unmet dependencies while installing php5-curl [duplicate]

I am trying to install php5-curl via terminal in Ubuntu 14.04. I got following error. sanchit@sanchit-Satellite-A660:~$ sudo apt-get install php5-curl Reading package lists... Done Building ...
1
vote
0answers
41 views

Installing php5-fpm with php version 5.4.x

I'm installing a Lemp stack for the first time, and although I've got everything set up right now, I was hoping to install php 5.4.x to work with my Magento installation. Installing php5-fpm ...
0
votes
1answer
41 views

'iptables -S' to be accessed by www-data

I've had a look around on Ask Ubuntu and can't find an answer to what I'm looking for. Basically, I have an admin panel for a website I run and recently just installed fail2ban, which has made my ...
0
votes
0answers
21 views

dpkg: error processing php5-mysql (-configure): the thread installed the script post-installation error 10 exit code returned

I'm trying to install php5-mysql but when I put the command apt-get install php5-mysql I get this error of dpkg. http://pastebin.com/ZEn4fydB Note: the operating system is in Spanish.
2
votes
1answer
2k views

LAMP Server not working on Precise

I've installed Ubuntu 12.04 LTS Precise a few days ago. I tried installing LAMP Server as I've been done in last four Ubuntu versions, simply by using these commands: sudo apt-get install ...
0
votes
0answers
12 views

PHP code is not executed in Apache [duplicate]

I am a new user in Ubuntu. I installed Apache, MySQL and Php5. I created a php file to test on Apache. Php code dosen't work(see below). <?php phpinfo(); ?> How can I fix it to run Php code ...
6
votes
1answer
9k 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
1answer
13 views

CMSs not sending emails (but php mail works)

I have a Ubuntu 14.04 VPS with a few sites. If I run php -r "mail('mytest@emailaddress.org, 'test', 'test');" this goes delivered, but I have a couple of CMSs (Drupal and dokuwiki) that don't send ...
0
votes
2answers
384 views

After upgrade to 10.10, mediawiki on postgres is broken

I upgraded to Ubuntu 10.10 from 10.04. 90% of the upgrade was ok but my Ubuntu-apache2-postgres-8.4 - mediawiki1.16 does not work anymore. Is there a bug in the postgres client or in php5 pg?
4
votes
1answer
5k views

PECL extension in Ubuntu 11.10

I was installing Mediawiki on my local development machine and in the configuration, it told me that I will have to make do with slower loading tradition php pages because I dont have a PECL extension ...
0
votes
1answer
57 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 ...
0
votes
1answer
114 views

Access Denied for user 'linuxuser'@'localhost' (using password: no)

My client asked me to move his Wordpress site from a shared server to AWS. The AWS EC2 instance is Ubuntu 14.04 LTS with PHP 5.5.9 with MySQL 5.5.38. Old server has PHP 5.4.30 and MySQL 5.5.42. ...
0
votes
2answers
93 views

Install Composer and configure with XAMPP

After reading on web, I learned that XAMPP has php-cli pre-installed and it is accessed by /opt/lampp/bin/php . I installed composer using the following and all went well: sudo curl -s ...
0
votes
1answer
46 views

How to install php apd?

How can I install Advanced PHP Debugger in ubuntu? I have tried sudo pecl install apd. It gives error Cannot find config.m4.. Is there any way I can install it via apt?
0
votes
1answer
48 views

file readable and writeable by the web server

I am try to make a file readable and writable by apache web server. I have use the following command: sudo chgrp apache /var/www/html/itdb/data/itdb.db When I try to run the php application I get ...
1
vote
0answers
51 views

php5-fpm tuning - why do I have too many sleeping php-fpm processes?

So I recently went from apache2 with mod_php to apache2 with fastcgi and php5-fpm. (still same prefork module). But I am not sure if we have configured php5-fpm properly. We don't run a website but ...
1
vote
4answers
2k views

How To Install GraphViz For PHP On Ubunutu

What I want to do is install GraphViz for PHP on Ubuntu. I tried pear install Image_GraphViz, it installed but does not work for me. Then I tried downloading the file from here. File name : ...
1
vote
0answers
64 views

Spam entries in mail log, but doesn't appear to be from a PHP script?

I'm new to linux, and it appears that my server was blacklisted in the CBL. It looks like one of my Wordpress installations was compromised, and some Malware was installed. I ran ClamAV, and it ...
1
vote
1answer
147 views

How to install eclipse php in ubuntu 14.04?

I have php,mySql and apache2 installed but I needed a IDE for development.So How can I download Eclipse Php with out any errors please help me. And Help me in supporting installed apace2,mySql and php ...