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
63 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 ...
1
vote
1answer
22 views

where to save your files of php in ubuntu to load on server? [duplicate]

How to save our php files so that we can load on our server . I have installed apache2 , php, and mySql . also I don't know how to connect these 3 so that I can simply work on my text editor. Please ...
0
votes
0answers
12 views

Downgrade php to 5.2 via SSH Putty not manually by operating pc [duplicate]

I bought VPS and in that latest php was installed. So, there are some plugins in my Wordpress which is not supported that version. Now I want to downgrade it. How can I do that? Can anyone please tell ...
0
votes
1answer
4k views

Upgrade PHP 5.3 to 5.4 via putty

I am using Ubuntu 10.04.1 LTS Server with PHP Version 5.3.2-1ubuntu4.19 Apache/2.2.14 (Ubuntu). I login to the server via putty and want to upgrade to php 5.4. I could not find the right commands ...
0
votes
1answer
30 views

How to add apache2 , php and mySql to eclipse?

I'm using Ubuntu 14.04 ,i'm new to Ubuntu,I already installed apache2 , php and mySql . Now I want to add these to eclipse so that I can work on this IDE . Please help me I will be glad if you provide ...
1
vote
2answers
3k views

How to run a php file after installing LAMP in ubuntu 11.10?

I installed lamp on ubuntu. Apache2 and Mysql are working fine. The folder apache2 is in /etc and contains: apache2.conf envvars magic mods-enabled sites-available conf.d ...
1
vote
2answers
10k views

Why can't I write to a file even after 777 permission? [closed]

On my ubuntu server I have Apache and PHP, when I run a php file containing this code: <?php if(!file_put_contents( '/var/www/myfiles/folder/data/new_rewrite/531e5c5d1e16c3eae28b1489cd34ccb30', ...
0
votes
2answers
836 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
votes
1answer
21 views

Connect to mysql on another device [duplicate]

I have two device on my network LB (192.168.1.10) and RP1 (192.168.0.20) I am wanting all the MySQL stuff to be hosted on the LB and all the web stuff to be hosted on the RP1. I have installed ...
71
votes
12answers
14k views

What's the easiest way to set up a LAMP stack?

I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be ...
4
votes
2answers
8k views

NGINX and PHP downloades index.php instead of processing it

I have been banging my head for 2 days now. The issue is that the index.php is downloaded instead of being processed. I'm using Ubuntu 14.04 , Nginx, php5. The nginx/site-available/default is as ...
0
votes
0answers
13 views

Where is php.ini when I install APC?

I am trying to install APC on Ubuntu 12.04, I faced some problems. I used this link: http://www.inmotionhosting.com/support/website/php-configuration/install-apc-for-php I then solved all the ...
0
votes
0answers
11 views

undefined symbol: MagickFormatString

I installed GraphicsMagick and the gmagick-extension on my ubuntu some months ago and it really worked fine. Now, I can`t tell you what happened (some updates maybe, some changes, its an hosted ...
9
votes
4answers
36k views

How to compelety remove php?

I need to clean up my server from PHP 5.3 packages (there are plenty of them) in order to be able to compile PHP 5.2. I am wondering what is the easiest/safest method to get rid of them all? Thanks
9
votes
4answers
5k views

How to rollback to PHP 5.2?

I have just installed a 10.04 LTS on my development server but the system that I need to run on it (Magento ecommerce) is not compatible with PHP 5.3 which ships with the newest version of Ubuntu. Is ...
2
votes
2answers
6k views

Solve error file compiling PHP configure: error: libXpm.(a|so) not found

I got an error while compiling PHP, I am listing the details below. Error configure error libxpm.(a so) not found I have checked with dpkg -L libxpm-dev. it is showing the needed file is in 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 ...
0
votes
0answers
32 views

Running PHP Server from command line without sudo

I am using my university system as a guest user and I have 1 GB of space to be used. I need to use my PHP & MySQL Server, but unfortunately I don't have sudo permissions. How do I run PHP from the ...
1
vote
0answers
46 views

PHP version update gone wrong

I've followed instructions on updating the PHP version on my server from 5.3 to 5.5 During the installation it threw php5-common dependency errors. I've managed to fix the dependency errors by ...
1
vote
1answer
120 views

adminer- None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available

whenever i login to the adminer, it always show: No Extension None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available. I just installed this a while ago using ...
2
votes
0answers
31 views

“-/+ buffers/cache memory” is zero

i have an OpenVZ VPS with ubuntu server 14.04.2 and i can access to a SolusVM control panel. Recently, "memory usage" is always 0 KB, and only "vswap usage" shows real swap usage. if i run free -k i ...
1
vote
0answers
35 views

$password with ssh chpasswd

I've a problem with "ssh chpasswd" .. I need to implement the "$password" of register.. Eg.. I've this code.. echo $ssh->exec("sudo sh -c 'echo $user:test | chpasswd'"); When the script is ...
1
vote
0answers
78 views

Apache won't start - PHP issues?

I'm somewhat of a Ubuntu newb and have recently set-up a ubuntu VPS (on the azure network). I am using webmin / virtualmin as a means to administer the server and quickly * easily create and ...
2
votes
2answers
569 views

Browser tends to download PHP files instead of displaying them, while using XAMPP for Linux

I am using XAMPP for Linux, but when I try to open a PHP file saved in a folder saved in home directory, the browser downloads the PHP file instead of displaying it. What could be the problem? XAMPP ...
1
vote
0answers
39 views

Error compiling PHP extensions - phpize (Ubuntu 14.04 + PHP 5.5)

I'm trying to install the Paradox PHP extension to a Ubuntu Server 14.04. The easy solution may be: pecl install paradox But it fails with this error: Cannot find config.m4. Make sure that you ...
0
votes
1answer
326 views

How do I set up PHP and MySQL cronjobs on Ubuntu 12.04 (Precise Pangolin) server?

I just made a LAMP install and got SFTP working. My question now is: How do I set up cronjobs on Ubuntu server? I need to make some cronjobs for my PHP/MySQL application. I look for un-activated ...
0
votes
1answer
181 views

How to install PHP 5.2.x on ubuntu 14.04?

I want to run a version specific code on php 5.2.x which I have tried by many ways but not got any successful attempt. Please let me know that how I can install PHP 5.2 on ubuntu 14.04
0
votes
0answers
129 views

Failed to install Laravel PHP Framework using “composer install” on Ubuntu Server 14.04

I install Laravel via Download as indicated on http://laravel.com/docs/4.2/ Composer was already installed. But when I ran composer install to install all of the framework's dependencies, I got the ...
0
votes
3answers
72 views

How to run PHP files in Ubuntu

Here is a list of questions I've visited on AskUbuntu that are similar, but did not solve my problem: How to run a php file after installing LAMP in ubuntu 11.10? how to run php web application in ...
0
votes
0answers
89 views

Simple Netbeans Php Project displays 'The requested URL /PhpProject2/index.php was not found on this server' when run as 'Local Website'

I'm new to LAMP. I have followed Configuring the PHP Development Environment in Linux Ubuntu Tutorial and have two separate Netbeans projects with the same code in them: <!DOCTYPE html> ...
0
votes
0answers
10 views

Apache not interpereter after change Directory

I change root directory in apache2, and my directory is /home/saeed/PhpProjects but after change directory my apache work but nothing,means localhost run but php file not process, for example: I have ...
0
votes
0answers
32 views

Adding mysqli to php without recompiling it

I have php compiled and installed in a nonstandard location. I recently encountered an error: Fatal error: Class 'mysqli' not found perhaps because I configured php without --with-mysqli. I added ...
1
vote
1answer
63 views

Xampp htdocs folder , sub folders and all files permiossion

I am not familiar with Ubuntu , i copied my project folder in htdocs but when i open my project in browser it loads but styling files (css files) doesn't loads . Its permission problem . I have done a ...
2
votes
0answers
80 views

Why does libapache2-mod-php5 get removed whenever I upgrade apache2?

I hope someone can help me figure out what is going on with my apache upgrades. For years, whenever I upgrade apache2, it tries to install apache2-mpm-itk even though I use the prefork module ...
2
votes
3answers
788 views

Setting default editor for php files

I am using Ubuntu 12.04 TLS. I had installed Netbeans on my PC. I want change default file to netbeans. I've tried to right-click on a php file > Properties > Open With > Show other Application ; ...
0
votes
0answers
90 views

NetworkError: 500 Internal Server Error

When I am trying to run a java services through php file(xyz), it is throwing this error (Firebug) NetworkError: 500 Internal Server Error http://127.0.0.1/dev/en/abc/xyz ...
5
votes
2answers
5k views

Nginx downloading PHP file only if .php is in the URL

I know this is a popular question but I haven't found anyone with my similar issue. I can serve PHP files as long as the .php extension is not in the url. For example: If I go to localhost I am ...
0
votes
0answers
28 views

A blank page in ubuntu server

I installed Ubuntu server with lamp servr and after checking that PHP works (PHP5 -v) I put a file to the rootdirectory (/var/www/html) with the function phpinfo(); But I get a blank page. What could ...
6
votes
4answers
23k views

Downgrade PHP Version from 5.5 to 5.4 on Ubuntu 14.04

First time I've ever needed to ask a question here that I don't think has already been answered. I've recently been working on transferring over a vBulletin site I run to a new server. Thinking that ...
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
274 views

What is wrong with My Apache2 (Alternate) 000-default.conf file

I'm starting a course in PHP which will require its own web-pages that I do not want to conflict with my existing work. The Ubuntu instructions are here: HTTPD - Apache2 Web Server See the code below ...
1
vote
2answers
378 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 ...
0
votes
1answer
25 views

Did I install LAMP?

I just installed Ubuntu 14.10 server. While installing I asked it to install LAMP. But how do I tell if it is working? I tried http://192.168.0.20 which is my server, from a web browser on my ...
1
vote
4answers
19k views

Install PHP 5.3 on Ubuntu 13.04

How I could install an old PHP version on Ubuntu 13.04 (Raring Ringtail) -preferably version 5.3.3?
0
votes
0answers
18 views

Enable php pcntl: Cannot Create Regular File

I am trying to enable/install pcntl and I get the following error after running make: cp: cannot create regular file `/usr/lib/php5/20100525/#INST@24959#': Permission denied I am sure it is a ...
0
votes
0answers
10 views

php pages not working on ubuntu Trusty [duplicate]

i am using Ubuntu 14.04(Trusty) and have installed xampp. Everything seems to be working fine except that i created a "hello world" program, named it hello.php and tried to open it with my browser but ...
0
votes
0answers
14 views

Can i use the mail() function on localhost [duplicate]

I got my testsite test.php on my localhost I want to send an email using this code: I tried to send it to my own address and havent received anything What did i do wrong??
0
votes
0answers
40 views

Again trouble with php in localhost

I have a test file called index.php with some html and php code on it. This index.php file is located in my var/www/html folder. If I type in localhost I get an empty page, but if I move a different ...
0
votes
1answer
44 views

Where do I put my website php files in my virtual ubuntu server?

I am trying to create a website through my ubuntu. I also intend to host this website on my ubuntu. I am goign to use dreamweaver for my php files and then put those php files in my ubuntu server. ...
2
votes
3answers
393 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?