LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 03:54 AM   #1
roopakl
Member
 
Registered: Sep 2011
Posts: 92

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, 03:58 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
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, 04:10 AM   #3
resolv_25
Member
 
Registered: Aug 2011
Location: Croatia
Distribution: Debian 7/Ubuntu 14.04
Posts: 57

Rep: Reputation: 9
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, 05: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 08:32 AM.
 
Old 09-13-2011, 09: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, 10:14 AM   #6
roopakl
Member
 
Registered: Sep 2011
Posts: 92

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, 10: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, 10:19 AM   #8
roopakl
Member
 
Registered: Sep 2011
Posts: 92

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, 10:22 AM   #9
roopakl
Member
 
Registered: Sep 2011
Posts: 92

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, 01:56 AM   #10
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

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

Looking forward to reading your next posts!

Thor
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:29 AM
open php file in eclipse? michaelinux Programming 1 12-18-2010 12:47 PM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 06:30 PM
How to open or make a .php file in emacs?? eye Linux - Software 1 12-02-2003 01:19 AM
php imagecreatefromjpeg can't open file GabeF Programming 7 12-12-2002 01:54 PM


All times are GMT -5. The time now is 01:47 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration