LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2011, 02:54 AM   #1
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Rep: Reputation: Disabled
.php file says open with


I freshly installed ubuntu11.04 and also installed apache2.The I copied files/directories from /var/www of one old server to /var/www/ directory in new server as it is. Restarted apache. But it is not browsable and asking open with. Could anybody please tell me what may be the issue.
 
Old 09-13-2011, 02:58 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Just some things to think about:

Did you install and configure PHP on the server? Is PHP running? Is the contents executable (permissions)? Are all the dependencies for the PHP file(s) met (drivers, database, connetions, other stuff)? Can you pick up any page on the server in HTML?

This thread will be followed up...

Thor
 
1 members found this post helpful.
Old 09-13-2011, 03:10 AM   #3
resolv_25
Member
 
Registered: Aug 2011
Location: Croatia
Distribution: Debian 10/Ubuntu 20.04
Posts: 64

Rep: Reputation: 15
Maybe you just installed Apache, but not PHP ?
On Ubuntu 10.04, 11.04 you can do all installation and configuration for Apache/MySQL/PHP with a single command:
Code:
$ sudo tasksel install lamp-server
(you'll be asked to put a MySQL root password during installation)
 
1 members found this post helpful.
Old 09-13-2011, 04:49 AM   #4
linux2001
Member
 
Registered: Sep 2011
Posts: 32

Rep: Reputation: Disabled
Quote:
Originally Posted by roopakl View Post
I freshly installed ubuntu11.04 and also installed apache2.The I copied files/directories from /var/www of one old server to /var/www/ directory in new server as it is. Restarted apache. But it is not browsable and asking open with. Could anybody please tell me what may be the issue.
You must install php (all packages with apahce mysql) in your server to interprete the .php file.

java socket

Last edited by linux2001; 01-26-2012 at 07:32 AM.
 
Old 09-13-2011, 08:25 AM   #5
rahulchandrak
Member
 
Registered: Apr 2010
Posts: 33

Rep: Reputation: 2
visit http://www.thesitewizard.com/php/ins...-windows.shtml to configure PHP with APACHE and MySQL.
 
1 members found this post helpful.
Old 09-13-2011, 09:14 AM   #6
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Original Poster
Rep: Reputation: Disabled
.php file says open with

Yes, you are right. I haven't installed php, It is working fine after installing it. Thank you very much for your kind response.

Quote:
Originally Posted by Thor_2.0 View Post
Just some things to think about:

Did you install and configure PHP on the server? Is PHP running? Is the contents executable (permissions)? Are all the dependencies for the PHP file(s) met (drivers, database, connetions, other stuff)? Can you pick up any page on the server in HTML?

This thread will be followed up...

Thor
 
Old 09-13-2011, 09:18 AM   #7
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
please mark this as a solved thread .....if you have solved your problem..
 
Old 09-13-2011, 09:19 AM   #8
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Original Poster
Rep: Reputation: Disabled
.php file says open with

Yes, you are right, I had installed only apache2 not any other. It is working fine after installing php5, Thank you very much for your kind response with more info.

Quote:
Originally Posted by resolv_25 View Post
Maybe you just installed Apache, but not PHP ?
On Ubuntu 10.04, 11.04 you can do all installation and configuration for Apache/MySQL/PHP with a single command:
Code:
$ sudo tasksel install lamp-server
(you'll be asked to put a MySQL root password during installation)
 
Old 09-13-2011, 09:22 AM   #9
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Original Poster
Rep: Reputation: Disabled
.php file says open with

Yes, you are right, I had installed only apache2 not any other. It is working fine after installing php5, Thank you very much for your kind response with more info.


Quote:
Originally Posted by rahulchandrak View Post
visit http://www.thesitewizard.com/php/ins...-windows.shtml to configure PHP with APACHE and MySQL.
 
Old 09-14-2011, 12:56 AM   #10
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Glad we could help you along!

Looking forward to reading your next posts!

Thor
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open edit Php file problem (PhP apache installed) waerfwe Programming 3 06-30-2011 09:29 AM
open php file in eclipse? michaelinux Programming 1 12-18-2010 11:47 AM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 05:30 PM
How to open or make a .php file in emacs?? eye Linux - Software 1 12-02-2003 12:19 AM
php imagecreatefromjpeg can't open file GabeF Programming 7 12-12-2002 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration