LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-01-2010, 10:20 PM   #1
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Rep: Reputation: 30
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
 
Old 04-02-2010, 04:33 AM   #2
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
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
 
Old 04-02-2010, 06:32 AM   #3
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
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.

Last edited by anjanesh; 04-02-2010 at 06:43 AM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP on some Apache Virtual Hosts Palula Linux - Server 2 06-15-2009 11:09 AM
Turn off (disable) PHP for some virtual hosts in Apache DaveVT5 Linux - Networking 2 03-02-2006 03:51 PM
Apache Virtual Hosts dienerk Linux - General 15 10-16-2004 12:46 AM
PHP include() file paths in Apache virtual hosts tawalker Linux - Software 0 09-23-2004 02:16 PM
Apache 2 Suexec PHP and Virtual Hosts codedv Linux - Software 2 02-26-2004 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration