LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .php file says open with (https://www.linuxquestions.org/questions/linux-newbie-8/php-file-says-open-with-902731/)

roopakl 09-13-2011 02:54 AM

.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.

ButterflyMelissa 09-13-2011 02:58 AM

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

resolv_25 09-13-2011 03:10 AM

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)

linux2001 09-13-2011 04:49 AM

Quote:

Originally Posted by roopakl (Post 4470376)
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

rahulchandrak 09-13-2011 08:25 AM

visit http://www.thesitewizard.com/php/ins...-windows.shtml to configure PHP with APACHE and MySQL.

roopakl 09-13-2011 09:14 AM

.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 (Post 4470381)
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


rahulkya 09-13-2011 09:18 AM

please mark this as a solved thread .....if you have solved your problem..

roopakl 09-13-2011 09:19 AM

.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 (Post 4470386)
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)


roopakl 09-13-2011 09:22 AM

.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 (Post 4470578)
visit http://www.thesitewizard.com/php/ins...-windows.shtml to configure PHP with APACHE and MySQL.


ButterflyMelissa 09-14-2011 12:56 AM

Glad we could help you along! :)

Looking forward to reading your next posts!

Thor


All times are GMT -5. The time now is 12:10 AM.