LAMP installation issue on Ubuntu 8.10?
-
I have install LAMP on my ubuntu, and I cannot seem to be able to the http://localhost/test.php to work. Instead of showing 'PHP Works!" it just shows the actual code: < ?php echo "PHP Works!; ?> any ideas on why this is happening? I have the Apache running and the PHP is installed correctly. I am a little frustrated at the moment. Any help would be great!
-
Answer:
Here is the Official Ubuntu ApacheMySQLPHP Documentation https://help.ubuntu.com/community/ApacheMySQLPHP LUg. Edit: Calm down we always try to be helpful on here. Try the testing script on here http://www.howtoforge.com/ubuntu_debian_lamp_server Every day I learn something new about the workings of Linux and you would be fooling yourself if you were not to admit the same. CHILL OUT :) LUg. EDIT 2: Test the installation sudo gedit /var/www/testphp.php Insert this following line into testphp.php file. <?php phpinfo(); ?> Save this new file. Open a web browser and enter http://localhost/testphp.php Be sure to remove the file afterwards, as it may pose a security risk. sudo rm /var/www/testphp.php Sourced from http://www.supriyadisw.net/2006/12/lamp-installation-on-ubuntu I am trying to be helpful here. If I misread your question then I apologize. LUg.
Linux Mint 11 at Yahoo! Answers Visit the source
Other answers
It could be your browser does not think it is executable. Rename the PHP file as a html or htm, and try to connect to it again. It could also be the Apache server not thinking it is "run-able" code, check the apache settings for valid web pages. The PHP install should have set this.... Renamine a PHP file to the default html file usually works if php is running properly. I have that for one web site... In other words, a php page can be referred to the same as a html page. If php is not running, it will fail, and show just the text. PS: I run a php-based forum (phpBB3) on an apache server under Ubuntu... PPS: I used this setup: http://www.howtoforge.com/perfect-server-ubuntu-8.10
Adrian
I need an answer as well. What the heck happened to Yahoo! Answers? They used to be great at answering my technical questions. I have the same issue as you. I wish more than one person answered this. my test.php is not show HELLO WORLD, it is jsut showing < ? echo "Hello World"; ?>, it is driving me nuts!
Artic Heat
Related Q & A:
- Can I update directly from Ubuntu 9.10 to 10.10?Best solution by Ask Ubuntu
- How to get my wireless internet on Ubuntu 9.10 to work?Best solution by Yahoo! Answers
- How do I install flash player on ubuntu 9.10?Best solution by Yahoo! Answers
- Difference between Ubuntu 9.10 and 10.04?Best solution by Yahoo! Answers
- How to use dial up in ubuntu 10.4?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.