LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Funny apache/php behaviour on virtual hosts after upgrade to 10.04 beta (https://www.linuxquestions.org/questions/ubuntu-63/funny-apache-php-behaviour-on-virtual-hosts-after-upgrade-to-10-04-beta-799496/)

anjanesh 04-01-2010 10:20 PM

Funny apache/php behaviour on virtual hosts after upgrade to 10.04 beta
 
Ever since I upgraded from Ubuntu 9.10 to 10.04 beta, my local .php urls are acting funny esp at virtual hosts.
Sometimes it works, but mostly it gives a blank page and at other times it asks for downloading the php file.

This is really random - I keep hitting F5 and any one of the above can occur.
Worst part is, its not consistent. It doesnt happen for custom scripts at localhost. Mainly WordPress and Magento. Im guessing something to do with htaccess directives.
Its like as if AddHandler / SetHandler is going on and off.
Code:

$ apache2ctl -l
Compiled in modules:
  core.c
  mod_log_config.c
  mod_logio.c
  prefork.c
  http_core.c
  mod_so.c


DragonSlayer48DX 04-02-2010 04:33 AM

Beta means that it's still being tested-- Have you checked the FAQs page for known issues, or filed a bug report to Canonical?

FWIW- With OSes, I don't upgrade until RC2 (like 10.04.1) is released.

Cheers

anjanesh 04-02-2010 06:32 AM

I did notice one major difference though - 9.10 had PHP 5.2 while 10.04 has PHP 5.3.2 ! So I dont think this is a bug at all - because all my custom scripts are working even at virtual hosts. WordPress and Magento are apparently not compatible with PHP 5.3.

Utilizing get_headers in a small script,
PHP Warning: get_headers(http://local.vhosts1.com): failed to open stream: HTTP request failed! in get_headers.php on line 12

But HTTP request fails only for WP and Magento based sites - not custom written ones. This probably has to do with some htaccess directive.


All times are GMT -5. The time now is 01:10 AM.