Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-14-2009, 06:40 PM
|
#1
|
Member
Registered: Mar 2008
Posts: 147
Rep:
|
php in UBUNTU problem
Dear all,
I am working on ubuntu 8.1
I have loaded php5 and apache2 and mysql. Mysql is working properly...but i could not execute my php codes(written with vi editor) in a browser.
I tried to execute the code in opera and mozilla. In opera(latest version) the browser is showing the entire code and in mozilla i am facing a pecular problem. When i first time tried to open it in mozilla the browser kept asking me want to save the file as or open it? Then i did something (i dont remember) now when i try to open the code in mozilla multiple tabs or getting opened(uncountable). I have to forcely kill the browser.
What to do? Here when i give localhost/php.info in mozilla address bar it is giving the following error.
Not Found
The requested URL /php.info was not found on this server.
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at localhost Port 80
in opera
Error!
Could not open file
You tried to access the address file://localhost/php.info, which is currently unavailable. Please make sure that the Web address (URL) is correctly spelled and punctuated, then try reloading the page.
|
|
|
01-15-2009, 02:45 AM
|
#2
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep:
|
you have to give the file a ".php" extension. If the extension is "info" the parser will not start his job and as the downloaded file doesn't have a mime declaration there will be a lot of problems processing it for the browser...
If the browser says "file not found" then maybe the file's name is different? Or you placed it in a wrong directory? Default document root is /var/www on ubuntu as far as i remember.
Last edited by j-ray; 01-15-2009 at 02:48 AM.
|
|
|
01-15-2009, 07:37 AM
|
#3
|
Member
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370
Rep:
|
Rename your file to "info.php",
place it in the /var/www directory,
chown www-data:www-data info.php
and see if that works.
Last edited by AuroraCA; 01-15-2009 at 07:39 AM.
|
|
|
All times are GMT -5. The time now is 07:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|