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
vote
1answer
2k 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 ...
0
votes
1answer
118 views

Apache configure file: how to edit it

I need to edit the Apache configure file because I wish to set the debugger port in my VirtualHost section as it says below. How can I do it? I searched in Google but it is not clear for me what I ...
5
votes
2answers
9k views

PHP-FPM eating memory & Creating many Pools

I set up my nginx with php-fpm. each vhost has its own unix-socket and separate POOL. But the problem is that php-fpm is creating 7 thread for each config pool that I created in /etc/php5/fpm/pool.d/ ...
2
votes
1answer
1k views

is this malcious traffic?

I was reviewing my server logs, when I came across several thousand this gem: from a multiple IP addresses: My question is what is all this junk? what is this trying to execute? I am pretty sure that ...
1
vote
1answer
2k views

Can't install php5-curl, getting “404 Not found” errors

My problem when trying to install php5-curl on my virtual box linux server. I did ifconfig eth1 up: err http://nl.archive.ubuntu.com/ubuntu/ precise-updates/main php5-curl amd64 5.3.10-1ubuntu3.8 ...
0
votes
1answer
1k views

Run X11 GUI application from browser (apache - php)

The same way as Running Gui App with PHP, I need to run a X11 application (VLC) from a php page on Apache server. I need to open the VLC application on the server, not on the remote system. I'm ...
1
vote
0answers
362 views

How do I save an uploaded file in PHP?

In PHP, I'm trying to save a file to the /var/www/upload directory, but whatever I try, it doesn't work. I've tried giving www-data ownership of /var/www and subdirectories. I've tried modifying the ...
0
votes
1answer
129 views

My server is making me download the code instead of running it

I am running an ubuntu server 12.04 but unfortunately I am not being able to make the interpreter run the code exactly. I am using nginx encrypted lvm and here is the conf.d (main part): server { ...
0
votes
1answer
354 views

issue with installing php 5.4.9 with apt

I used a script for downgrade php from php 5.4 to php 5.3 it workded.Now i want to upgrade my php to php 5.4.9 with synaptic form Package->Force Version when i want to apply the chanes it gives me ...
0
votes
1answer
2k views

nginx rendering PHP as plain text

server { listen 80; server_name test.local; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; root /var/www/testsite; location ~ \.php$ { ...
-1
votes
1answer
149 views

if i manually compile php, should i uninstall it in dpkg first?

Around 2 years ago I attempted my first PHP compile and succedded. I occasionaly upgrade my compile script as I add modules and new versions come out. However, I'm finding that apt-get unattended ...
2
votes
1answer
81 views

how to manage ubuntu users from php

I have an Ubuntu 12.04 server machine in a local net, and I would like to log in my user through php. I have tried with pam_auth() but it wasn't configured neither activated for php. I tried a ...
1
vote
0answers
476 views

Integrate ImageMagick & MagickWand with php ubuntu 12.04

I have installed both ImageMagick and MagickWand in my ubuntu system by refering to the detailed instructions provided in Install ImageMagick From Source and MagickWand For PHP. When I chack whether ...
0
votes
3answers
3k views

How do I create public html folder? [duplicate]

I am a php programmer and new in ubuntu. Now I am using ubuntu 12.4 I need to create public html directory on my home directory for easy assess of php files. How can I create this public_html ...
-1
votes
1answer
1k views

XAMPP not working

I am new to ubuntu. I have installed XAMPP and i have been using it for 2 months without any problem. I was able to access XAMPP by typing 'localhost' on the browser. 3 days back i have installed ...
-1
votes
1answer
184 views

How to make php files by which MySQL, PHP, phpmyadmin, Apache, Python etc. details will show?

How can I make a php files which will show the details of PHP, Apahce, MySQL, phpMyAdmin, Python and Ubuntu system usage and information.
30
votes
5answers
124k views

How to solve the phpmyadmin not found issue after upgrading php and apache?

Recently I have install the PHP, Apache, MySQL, phpMyAdmin, python in my Ubuntu Desktop 12.04.3 LTS to use it as a LAMP server. The commands I used to install these are given below: 1: sudo passwd 2: ...
11
votes
3answers
59k views

default permissions for /var/www

I was trying to open a file and write to it with PHP at /var/www folder but it wasn't working so I did sudo chmod 777 var/www now I want to set the permissions for var/www to the default. what are ...
0
votes
1answer
2k views

failed to open stream

My problem is that when I send my php file as root to the htdocs directory it appears as this. root mustafa # sudo cp programa.php /opt/lampp/htdocs/archivos The php file appears with a big X on ...
0
votes
1answer
2k views

Apache2 server failed to start after enabling `mod_rewrite`, returns “Operation Not Permitted” errors

I am trying to install cakephp ( a php framework) which requires to enable mod_rewrite. For this I followed Enable mod_rewrite answer. But after restarting my server It says: nitish@nitish-G31T-M7:~$ ...
0
votes
2answers
398 views

Printing to Ubuntu Terminal and File

If I want log everything that happens on the websites on my server into the terminal (where you type) and into a file, well how would I do that using PHP?
0
votes
1answer
3k views

install php 5.3 in ubuntu 13.10?

My problem is I have scripts online that work in php 5.3 not more recent versions. I wish to develop web sites locally instead of uploading partial changes. After much reading, I made the following ...
0
votes
1answer
224 views

cannot find a way to install php's pecl bbcode exentsion

Is there an easy way to install php's pecl bbcode extension on ubuntu? When using it on LAMP?
6
votes
2answers
14k views

Magento not seeing mcrypt in LAMP

I am running Ubuntu 13.10 desktop and installed a lamp stack (Apache 2.4.6, and PHP Version 5.5.3-1ubuntu2), and I set up virtual hosts. I also apt-get'ed php5-curl, and php5-mcrypt (no errors when ...
0
votes
1answer
56 views

Upgrading Ubuntu Server to a recent version would update PHP too? This result in any problems?

I use Ubuntu Server 10.04 and PHP 5.3.2, if I upgrade the server to a more recent version, the PHP would update too? Would this process result in some problem in the settings of PHP, like previously ...
2
votes
2answers
4k views

Install older version of PHP with apt-get

I am trying to install an older version of PHP on my system. I installed Ubuntu 12.04.3 and have tried sudo apt-get install php This does successfully install php 5.3.10-1ubuntu3.8, however I ...
2
votes
0answers
171 views

Coordino permission issues?

I have downloaded the Coordino and wanted to run it on Ubuntu, tried to run it but its giving the following errors Warning: require(app/webroot/index.php): failed to open stream: Permission denied in ...
1
vote
1answer
59 views

Packages for web development

Could somebody tell me what packages do I need to download to have an Apache server on my PC and to be able to use Php, JQuery, javaScript and mysql? Thanks in advance!
23
votes
3answers
95k views

How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal?

I'm relatively new to the world of unix command line web server management/administration. Many hosts with control panel administration options allow you to change how PHP is run with a simple ...
1
vote
2answers
1k views

Testing a php file for school with fopen() function, which does not work because of… permission issues?

I'm using Ubuntu in my laptop. Every time I turn it on, and after Ubuntu initializes, it ask me for my admin password, wich I do provide, in order to be able to use it. I've installed Sublime2, and ...
0
votes
1answer
3k views

cannot access ‘xampp-linux-x64-1.8.3-1-installer.run’: No such file or directory

I am a complete novice with Linux Ubuntu. When installing xampp it occurs to me this message: Can not access 'xampp-linux-x64-1.8.3-1-installer.run': No such file or directory I followed these ...
2
votes
1answer
6k views

403 forbidden error for all local projects after updating php and apache

I have 5 web app projects in my local machine with Ubuntu 12.04 installed on it. Everything was good, but today when I started a new project with symphony, I found that I should upgrade php to 5.4.x, ...
0
votes
1answer
240 views

apache2 wont display a folder - while another folder works…confused

I am on Ubuntu 13.10 PHP5 and am an intermediate PHP developer Exact same file (1.php) in 2 diff folders - one works and the other doesnt... http://localhost/vetpro2/1.php The above works as ...
0
votes
1answer
178 views

Changed apache www folder

So I changed it from /var/www to /home/John/Dropbox/www and I also did chmod 755 /home/John/Dropbox/www but it still says You don't have permission to access / on this server. I forgot how to do ...
2
votes
1answer
1k views

Please install an MTA on this system if you want to use sendmail!

I get this message in /var/log/apache2/error.log everytime a cronjob on my desktop wgets a php page that tries to send an email. How can I install a dummy so this message is gone? I already have ...
2
votes
2answers
715 views

LAMP Server with multiple PHP Versions

I am looking for a way to install multiple versions of PHP on my notebook to work on different projects that require different versions of PHP. I have Ubuntu 13.10 and installed apache2, php5, mysql ...
2
votes
3answers
445 views

Are Apache, PHP and MySQL installed by default?

Are the Apache server, PHP, and MySQL installed by default when you install Ubuntu 13.10, or should you install them separately later?
0
votes
1answer
896 views

Can't Install php5-msql

Hello friends I'm finishing the process of installing Apache/Php/mysql installations but this shows up: # sudo apt-get install mysql-server php5-msql Reading package lists... Done Building ...
0
votes
3answers
1k views

Debugging PHP apps with Kdevelop

I am using kdevelop 4.5.1 and I would like to debug php apps. I made a search and I found this article: http://nikosams.blogspot.com.es/2010/02 ... ugger.html which is from 2010 but I don't know how ...
1
vote
1answer
1k 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
votes
1answer
327 views

libc-bin errors when trying to install php

i am trying to update and install php into my ubuntu server 12.04 using the command below: apt-get upgrade php apt-get install php5-curl php5-gd php5-mysql php5-pgsql However i receive this error ...
2
votes
2answers
957 views

I deleted /etc/php5. How do I restore the folder?

I removed the folder /etc/php5, after I removed the php5 package. Then I tried to install the package, but it said the folder did not exist. I looked in trash folder and couldn't find it. How do I ...
3
votes
2answers
13k views

Ubuntu 13.10 gives “Package 'libapache2-mod-auth-mysql' has no installation candidate” error [closed]

UPDATE: Because Apache 2.4 is the default version (instead of the previous 2.2) this error occurs. However as can be seen here all future versions of Ubuntu 13.10 and above will not support this ...
1
vote
1answer
16k views

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I am using ubuntu 13.10 on evaluation board and my internet is not working. Also i need to install softwares and apt-get install is also not working. Terminal says : E: Unable to fetch some ...
3
votes
2answers
5k views

How to install php 5.4.x on ubuntu 13.10 saucy salamander

How do I install php 5.4 on ubuntu 13.10 saucy ? On ppa:ondrej/php5-oldstable ( https://launchpad.net/~ondrej/+archive/php5-oldstable ) there are only packages up to 13.04 Please help. Thank you, ...
1
vote
1answer
554 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 ...
6
votes
4answers
17k views

downgrade php5 5.5.3 to php5 5.3 in ubuntu 13.10

I just upgraded to ubuntu 13.10.. I was working on a project that uses php 5.3 and now phpmyadmin is not working and when i try to open a page i see a ton of warning and the sign in page doesnt sign ...
25
votes
1answer
14k views

Apache virtualhosts no longer working after update to 13.10

I updated my kubuntu to 13.10 today and my virtualhosts that worked perfectly before are no longer working. the s2ensite and a2dissite commands claim "site xxxxxx does not exists" even the files are ...
15
votes
8answers
38k views

php is not working well on ubuntu 13.10 and mcrypt is missing in phpmyadmin

I've upgraded from UBUNTU 13.04 to 13.10 but I can not work with php pages or phpmyadmin . I've tried this way to install lamp on ubuntu sudo apt-get install lamp-server^ phpmyadmin and I've done all ...
25
votes
2answers
20k views

what happened to json_encode in 13.10 php?

Just updated to saucy 13.10 and json_encode is missing from the bundled php. json doesn't appear in the phpinfo() output and i'm getting this error in my app: PHP Fatal error: Call to undefined ...