LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-08-2010, 05:30 PM   #1
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Rep: Reputation: 15
Joomla


Hi

I have setup joomla on my computer but when I type in browser http://localhost/joomla i get dialogue box opening and saying

you have chosen to open

which is a phtml

What should firefox do with it
open
save


What could be wrong.. am sure my joomla setup is right.

Please help

Thanx
 
Old 05-08-2010, 05:34 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Have you set Apache (or whatever server you're using) to serve PHP pages? It sounds to me like the page isn't being processed properly by the server.
 
Old 05-09-2010, 01:42 PM   #3
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Original Poster
Rep: Reputation: 15
Yes i installed apache2 and sure its setup properly.
 
Old 05-09-2010, 02:35 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
I'm still guessing that something is amiss in Apache. Does your DirectoryIndex include index.php? I'm also wondering if you don't need to add an AddType declaration to handle the .phtml extension. Something like:

AddType application/x-httpd-php .phtml

I'm not sure how widespread use of .phtml extensions are, so it could be that Apache doesn't know to process it as a PHP page. I know that out of the box, my install doesn't.
 
Old 05-10-2010, 04:11 AM   #5
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Original Poster
Rep: Reputation: 15
I added AddType application/x-httpd-php .phtml into httpd.conf but still have a problem

Below are my apache/joomla dirs.

root@ym-laptop:/var/www# ls
index.html joomla Joomla_1.5.17-Stable-Full_Package(2).zip
root@ym-laptop:/var/www#
root@ym-laptop:/var/www# cd joomla/
root@ym-laptop:/var/www/joomla# ls
administrator CREDITS.php install logs tmp
cache htaccess.txt INSTALL.php media xmlrpc
CHANGELOG.php images language modules
components includes libraries plugins
configuration.php-dist index2.php LICENSE.php robots.txt
COPYRIGHT.php index.php LICENSES.php templates
root@ym-laptop:/var/www/joomla#
 
Old 05-10-2010, 07:03 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Quote:
I added AddType application/x-httpd-php .phtml into httpd.conf but still have a problem
Did you restart Apache after doing that? Also, is the behavior your seeing the same as before?

What happens if your try to access http://localhost/joomla/index.php? Finally, have you added any modules to Joomla? If you have, it might be a good idea to remove them and make sure that the base Joomla is working properly.
 
Old 05-10-2010, 07:11 AM   #7
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 648

Rep: Reputation: 78
look in your apache2.conf or httpd.conf file (whichever you have) and uncomment these lines:

#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

And add .phtml... so it should look like this:

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

then restart apache and clear firefox cache
 
Old 05-12-2010, 04:01 AM   #8
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Original Poster
Rep: Reputation: 15
Hello

THanx.. it works for me, I added the lines in apache2.conf and then cleared my browser cache then it was all fine.

THanks
 
  


Reply

Tags
joomla


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Joomla! 1.5: A User's Guide plus Fundamentals of Joomla! Video LXer Syndicated Linux News 0 10-26-2009 11:00 AM
Joomla : What can YOU do with it? linuxglobe General 7 02-08-2008 08:15 AM
Joomla and konqueror sbeel1 Linux - Desktop 1 03-07-2007 10:28 PM


All times are GMT -5. The time now is 06:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration