Damn Cache of the Firefox!! (sorry..)
Finally solved!

The soulution was found here
http://66.102.9.104/search?q=cache:GJ6xSnWcp8oJ:www.movingtofreedom.org/2007/05/09/how-to-wordpress-on-ubuntu-gnu-linux/+apache2+%22AllowOverride+All%22+%22which+is+a:+PHTML+file%22&hl=en&ct=clnk&cd=1
---


Briar Patch

Please, Br'er Fox, please don't throw me in the briar patch!
PHTML Files

When I first installed this stuff on my desktop machine and tried:

http://localhost/phpmyadmin and
http://localhost/phpmyadmin/index.php

I'd get a dialog window from Firefox:

You have chosen to open

[blank line]

which is a: PHTML file

And a prompt for an application to use for opening it. I picked /usr/
bin/firefox. The browser refreshed and then prompted again. This time
I cleverly selected to always use this application, and was rewarded
with a cascading opening of new tabs until Firefox crashed.

Searching in Google I found a lot of people with this problem. One
main theme in the advice was to clear out the Firefox cache. (Tools >>
Clear Private Data is one way you can do that.) I tried that and
restarted Firefox and tried a few more times for good measure, but no
luck.

A lot of other pages suggested dabbling in httpd.conf or apache2.conf.
I finally tried:

sudo vi /etc/apache2/apache2.conf

And followed advice to uncomment these lines:

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

And add .phtml:

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

Then a restart of Apache (see instructions in the Apache section
above), and maybe a final clearing of the cache in Firefox, and
finally I could open phpMyAdmin in the browser.

(I didn't have this problem when I installed on my 6.10/Edgy laptop.
Those lines are still commented there. And then I couldn't get it to
break again on my desktop so I could write about the details here.
Kind of a flaky problem.)
Trying to stop/start/restart Apache as a regular user

If you try issuing commands to Apache as a regular user (most likely
because you forgot to use sudo), you'll get errors that might not make
your mistake obvious. Especially with /usr/sbin/apache2ctl:

httpd not running, trying to start
(13): make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs

With /etc/init.d/apache2, a little bit more of a clue with the first
line:

open: Permission denied
* Forcing reload of apache 2.0 web server...
httpd (pid 27117?) not running

And it hangs there until you try CTRL+C.


On Oct 3, 9:15 pm, val <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I changed the
>
>  /etc/apache2/sites-available/default
>
> just like it was suggested - added
>        <Directory "/var/www/cake">
>                AllowOverride All
>        </Directory>
>
> and changed
>        DocumentRoot /var/www/cake/app/webroot
>
> but then if I typehttp://localhostin Firefox, it gives me a dialog:
>  You have chosen to open
>
>  which is a: PHTML file
>  from:http://localhost
>
>  What should Firefox do with this file?... etc..
>
> >From this moment this happened to any php file which I tried to open
>
> in browser.
> When I changed
>      /etc/apache2/sites-available/default
> to how it was before the change, Apache started to work properly
> again.
>
> Please help?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to