Results 1 to 7 of 7

Thread: 10.04 virtual host php not executing?

  1. #1
    Join Date
    Mar 2006
    Beans
    34

    Angry 10.04 virtual host php not executing?

    I upgraded karmic to lynx today and I'm stuck with some weird behaviour with one of my virtual hosts. The virtual hosts under /var/www/site work but my virtual host for DAVICAL which points to /usr/share/davical/htdocs/ doesn't.

    Navigation to any html pages works but php files just show up blank!

    Has there been a configuration change in lynx for virtual hosts outside of /var/www?

  2. #2
    Join Date
    Jun 2007
    Beans
    Hidden!

    Re: 10.04 virtual host php not executing?

    Quote Originally Posted by castles View Post
    I upgraded karmic to lynx today and I'm stuck with some weird behaviour with one of my virtual hosts. The virtual hosts under /var/www/site work but my virtual host for DAVICAL which points to /usr/share/davical/htdocs/ doesn't.

    Navigation to any html pages works but php files just show up blank!

    Has there been a configuration change in lynx for virtual hosts outside of /var/www?
    do you get any error messages in /var/log/apache2/access.log or /var/log/apache2/error.log ?

  3. #3
    Join Date
    Mar 2006
    Beans
    34

    Re: 10.04 virtual host php not executing?

    Nothing in access.log

    The following is tail error.log...

    Code:
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    [Fri Apr 30 22:25:29 2010] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4 with Suhosin-Patch configured -- resuming normal operations
    [Fri Apr 30 22:30:44 2010] [notice] caught SIGTERM, shutting down
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    [Fri Apr 30 22:30:46 2010] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4 with Suhosin-Patch configured -- resuming normal operations
    [Sat May 01 03:02:49 2010] [notice] Graceful restart requested, doing restart
    [Sat May 01 03:02:49 2010] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    [Sat May 01 03:02:49 2010] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4 with Suhosin-Patch configured -- resuming normal operations
    [Sat May 01 09:32:31 2010] [error] [client 118.209.4.183] File does not exist: /usr/share/davical/htdocs/favicon.ico
    Do you think mcrypt is the problem?

  4. #4
    Join Date
    Mar 2006
    Beans
    34

    Re: 10.04 virtual host php not executing?

    well its not mcrypt comments.. I just changed the hash to a ; and reboot Apache.. now there are no errors but still a blank page.

    Update: I just got it to work.. all I needed to do was comment out the following in my virtual host config:

    # php_value open_basedir 1
    # php_value error_reporting "E_ALL & ~E_NOTICE"
    Last edited by castles; May 1st, 2010 at 01:36 AM. Reason: solved

  5. #5
    Join Date
    Jun 2006
    Beans
    5

    Re: 10.04 virtual host php not executing?

    Commenting in my vhost the php_value for open_basedir and error_reporting works for me.

    I've also change the port to 5432 in /etc/postgresql/8.4/main/postgresql.conf

    Yes, the Lucid upgrade is complete. But it seems I've lost my davical users. Where are they stored ? I've used the create-database.sh script for postgresql 8.4, is the 8.3 database somewhere ?

  6. #6
    Join Date
    Feb 2009
    Beans
    60
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: 10.04 virtual host php not executing?

    Quote Originally Posted by castles View Post
    well its not mcrypt comments.. I just changed the hash to a ; and reboot Apache.. now there are no errors but still a blank page.

    Update: I just got it to work.. all I needed to do was comment out the following in my virtual host config:
    This worked perfectly for me. What do those lines mean?

  7. #7
    Join Date
    Jul 2007
    Beans
    65
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 10.04 virtual host php not executing?

    Never mind I found my issue
    Last edited by bjk03; December 2nd, 2010 at 03:55 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •