Support Forums
apache trouble - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: apache trouble (/showthread.php?tid=2724)



apache trouble - Socrates - 11-08-2009

OK when I had set up my sever in linux ubuntu (apache server so I can program in php) I get this It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Instead of the basic It works!. When I try to run a script it prompts me to browse it or save it to my desktop. How do I view the code as it normally should be viewed?


RE: apache trouble - Gaijin - 11-08-2009

On ubuntu you need to install Apache/PHP/MySQL/phpMyAdmin....
Did you installed all of those or just Apache?


RE: apache trouble - Socrates - 11-08-2009

all of them


RE: apache trouble - Gaijin - 11-08-2009

You, Sure?
Try restarting apache

Code:
sudo /etc/init.d/apache2 restart

How are you trying to access the file?


RE: apache trouble - Socrates - 11-08-2009

Im trying to access the file by going to the url and typing in http://localhost/filename.php, just tried it to same thing appeared. I also went there and did what they said https://help.ubuntu.com/community/ApacheMySQLPHP to install lampp


RE: apache trouble - Gaijin - 11-08-2009

I had the same error when I first installed apache on ubuntu,
did you run
Code:
sudo a2enmod php5

If not do it and then restart apache again.
Clear your browser cache.
Restart Linux.


RE: apache trouble - Socrates - 11-08-2009

Didn't work
Bump anyone else Sad need help bad.


RE: apache trouble - Socrates - 11-09-2009

OK Problem was fixed and I really don't know how but it is. Lol thanks Master of The Universe Smile


RE: apache trouble - Gaijin - 11-09-2009

(11-09-2009, 06:59 AM)Socrates Wrote: OK Problem was fixed and I really don't know how but it is. Lol thanks Master of The Universe Smile

well nothing to thanks for, Big Grin
I had a feeling that the problem will disappear, like I said happend to me and it was the same, I don't know why it works. Big Grin


RE: apache trouble - Socrates - 11-09-2009

Lol same.Tongue