ubuntu ispconfig joomla .htaccess

Discussion in 'General' started by steve1084, Dec 20, 2006.

  1. steve1084

    steve1084 New Member

    :) Been round and round the forums looking for answers but cant find so here goes

    The Perfect Setup - Ubuntu 6.10 Server (Edgy Eft)
    ISPConfig 2.2.9
    Joomla CMS 1.0.11 On An ISPConfig Server Within 10 Easy Steps

    Everything seems to work fine until I need to tinker with a few things

    1. I would like to run Joomla using the SEO options but when I change the htaccess.txt file from Joomla to the required .htaccess file I get a 500 server error. The file is the standard Joomla .htacces file that comes with a clean install, what do I need to modify to allow it to work properly and to still be secure. I had a site hacked earlier this year and its not a pleasant experience:confused:

    2. Also I need to run a cron job for a Joomla component feed gator and can’t find the cron tab in ispconfig. Maybe there isnt one. If not how do I setup a cron job for a file in Joomla using the command line in the ubuntu server. I am still very new and unfamiliar with command line tools.

    3. Using file zilla as my preferred ftp up loader but it is often the case that after the initial install of Joomla that It is no longer able to modify any file in any way be it delete or change name or chmod any file with ftp file zilla. Is this a file zilla problem or just the settings being used by the server for The Perfect Setup - Ubuntu 6.10 Server (Edgy Eft)

    4. I will be setting up at least 1 Joomla site on this server that will require ssl certificates and I am wondering if there is anything I should know before I go and plunge into the deep end of this project.


    to anyone that can help I give many many thanks in advance:D

    Steve
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Please look in the apache error.log of the website for a more detailed error message.

    2) You can edit the corontab with the command:

    crontab -e

    3) This happens because files created by joomla belong to another user then the FTP user. If you want to change that, you may search the forums for suphp

    4) No, just enable SSL for the website and create a SSL certificate in ISPConfig.
     
  3. steve1084

    steve1084 New Member

    suphp disaster

    Thanks for Your comments and sorry its taken me so long to get back to this thread with Xmas and all so hope you all had a merry time.

    Suphp looks like the best option so I went ahead and tried installing it and it’s a disaster, nothing works and all my websites have error 500 internal server error.

    I have been back over and done everything a dozen times and checked and rechecked all the settings and it all looks correct but the php is not functioning for any of the websites and I cant seem to find any answers from the other forum threads I have looked at. It may be a compiling error but I don’t know how to determine this.

    It’s a ubuntu server http://www.howtoforge.com/perfect_setup_ubuntu_6.10 with ispconfig running several Joomla sites. I followed the http://www.howtoforge.com/apache2_suphp_php4_php5 to setup the suphp but I think the problem lies in that it is specific for Debian and not Ubuntu and therefore some of the settings need to be changed but I don’t know what setting as I am doing all of this for the first time and really don’t know much about Linux as yet, but I am learning heaps.

    Ok here is what I hope is all the info you are likely to ask me for and hopefully somebody can point me in the right direction.


    root@host1:/home/administrator# vi /var/log/apache2/error.log
    [Sun Dec 31 06:25:08 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
    [Sun Dec 31 06:25:09 2006] [notice] Apache/2.0.55 (Ubuntu) PHP/5.1.6 mod_ssl/2.0.55 OpenSSL/0.9.8b configured -- resuming normal operations
    [Sun Dec 31 06:25:54 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:25:54 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:44:30 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:44:30 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:44:37 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:44:37 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:44:38 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:44:38 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:50:12 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:50:12 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:51:50 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:51:50 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:56:27 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:56:27 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:57:06 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 06:57:06 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:02:31 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:02:31 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:03:30 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:03:30 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:08:47 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:08:47 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:13:22 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:13:22 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:13:22 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:13:22 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:13:38 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:13:38 2006] [error] an unknown filter was not added: PHP
    [Sun Dec 31 07:13:38 2006] [error] an unknown filter was not added: PHP
    "/var/log/apache2/error.log" 2968 lines, 214869 characters


    root@host1:/home/administrator# vi /var/log/suphp.log
    [Thu Jan 04 13:13:20 2007] [warn] File "/var/www/web10/web/index.php" is writeable by group
    [Thu Jan 04 13:13:37 2007] [warn] File "/var/www/web20/web/index.php" is writeable by group
    [Thu Jan 04 13:17:20 2007] [warn] File "/var/www/web20/web/index.php" is writeable by group
    [Thu Jan 04 13:19:49 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 13:33:13 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 13:36:48 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 13:42:59 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 13:42:59 2007] [warn] File "/var/www/web20/web/index.php" is writeable by group
    [Thu Jan 04 13:53:01 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 14:03:28 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 14:11:50 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 14:13:21 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 14:37:40 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 14:42:11 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 14:43:40 2007] [warn] File "/var/www/web20/web/index.php" is writeable by group
    [Thu Jan 04 14:57:09 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 15:05:27 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 15:14:26 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 15:15:19 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 15:31:13 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 15:37:12 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 15:58:47 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 16:17:33 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 16:28:07 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 16:31:34 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 16:48:23 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 17:19:50 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 17:31:23 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 17:35:39 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 17:51:06 2007] [warn] File "/var/www/web21/web/index2.php" is writeable by group
    [Thu Jan 04 17:53:18 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    [Thu Jan 04 18:01:17 2007] [warn] File "/var/www/web21/web/index.php" is writeable by group
    "/var/log/suphp.log" 103 lines, 9480 characters




    root@host1:/home/administrator# suphp -v
    suPHP version 0.6.1
    (c) 2002-2005 Sebastian Marsching

    suPHP has to be called by mod_suphp to work.
    *** glibc detected *** suphp: double free or corruption (fasttop): 0x080787a0 ***
    ======= Backtrace: =========
    /lib/tls/i686/cmov/libc.so.6[0xb7dc38bd]
    /lib/tls/i686/cmov/libc.so.6(__libc_free+0x84)[0xb7dc3a44]
    /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f73fc1]
    suphp[0x80513ed]
    suphp[0x8051473]
    suphp[0x8051528]
    suphp[0x805159b]
    suphp[0x80515bb]
    /lib/tls/i686/cmov/libc.so.6(exit+0xe9)[0xb7d89299]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe4)[0xb7d728d4]
    suphp(__gxx_personality_v0+0xad)[0x804a431]
    ======= Memory map: ========
    08048000-08077000 r-xp 00000000 03:01 1006375 /usr/sbin/suphp
    08077000-08078000 rw-p 0002e000 03:01 1006375 /usr/sbin/suphp
    08078000-08099000 rw-p 08078000 00:00 0 [heap]
    b7c00000-b7c21000 rw-p b7c00000 00:00 0
    b7c21000-b7d00000 ---p b7c21000 00:00 0
    b7d5c000-b7d5d000 rw-p b7d5c000 00:00 0
    b7d5d000-b7e8a000 r-xp 00000000 03:01 5783704 /lib/tls/i686/cmov/libc-2.4.so
    b7e8a000-b7e8c000 r--p 0012c000 03:01 5783704 /lib/tls/i686/cmov/libc-2.4.so
    b7e8c000-b7e8e000 rw-p 0012e000 03:01 5783704 /lib/tls/i686/cmov/libc-2.4.so
    b7e8e000-b7e92000 rw-p b7e8e000 00:00 0
    b7e92000-b7e9c000 r-xp 00000000 03:01 5783568 /lib/libgcc_s.so.1
    b7e9c000-b7e9d000 rw-p 00009000 03:01 5783568 /lib/libgcc_s.so.1
    b7e9d000-b7ec1000 r-xp 00000000 03:01 5783709 /lib/tls/i686/cmov/libm-2.4.so
    b7ec1000-b7ec3000 rw-p 00023000 03:01 5783709 /lib/tls/i686/cmov/libm-2.4.so
    b7ec3000-b7f97000 r-xp 00000000 03:01 1001836 /usr/lib/libstdc++.so.6.0.8
    b7f97000-b7f9a000 r--p 000d4000 03:01 1001836 /usr/lib/libstdc++.so.6.0.8
    b7f9a000-b7f9c000 rw-p 000d7000 03:01 1001836 /usr/lib/libstdc++.so.6.0.8
    b7f9c000-b7fa2000 rw-p b7f9c000 00:00 0
    b7fa7000-b7fa9000 rw-p b7fa7000 00:00 0
    b7fa9000-b7fc2000 r-xp 00000000 03:01 5783569 /lib/ld-2.4.so
    b7fc2000-b7fc4000 rw-p 00018000 03:01 5783569 /lib/ld-2.4.so
    bfe7d000-bfe92000 rw-p bfe7d000 00:00 0 [stack]
    ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
    Aborted


    root@host1:/home/administrator# a Vhost
    bash: a: command not found


    root@host1:/home/administrator# ls -la /home/times/web20/web/index.php
    ls: /home/times/web20/web/index.php: No such file or directory


    root@host1:/home/administrator# php4-cgi -v
    PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0
    PHP 4.4.2-1.1 (cgi-fcgi) (built: Jun 20 2006 02:29:46)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

    root@host1:/home/administrator# php5-cgi -v
    PHP 5.1.6 (cgi-fcgi) (built: Nov 2 2006 12:43:56)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


    root@host1:/# php5 -v
    PHP 5.1.6 (cli) (built: Nov 2 2006 12:49:10)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


    root@host1:/# php4 -v
    bash: php4: command not found


    Thanks
    Steve
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Have a look here: http://www.howtoforge.com/forums/showthread.php?t=4770&highlight=$go_info["server"]["apache2_php"]


    Please run
    Code:
    chmod 644 /var/www/web10/web/index.php
     
  5. steve1084

    steve1084 New Member

    info.php

    Nothing I do seems to work

    checking for the info.php file as per the suphp setup guide shows no file found.

    Does this error report indicate that there was a compiling error and does the ubuntu server I setup have all thats needed to do the compilling.

    root@host1:/home/administrator# suphp -v
    suPHP version 0.6.1
    (c) 2002-2005 Sebastian Marsching

    suPHP has to be called by mod_suphp to work.
    *** glibc detected *** suphp: double free or corruption (fasttop): 0x080787a0 ***
    ======= Backtrace: =========
    /lib/tls/i686/cmov/libc.so.6[0xb7dc38bd]
    /lib/tls/i686/cmov/libc.so.6(__libc_free+0x84)[0xb7dc3a44]
    /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f73fc1]
    suphp[0x80513ed]
    suphp[0x8051473]
    suphp[0x8051528]
    suphp[0x805159b]
    suphp[0x80515bb]
    /lib/tls/i686/cmov/libc.so.6(exit+0xe9)[0xb7d89299]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe4)[0xb7d728d4]
    suphp(__gxx_personality_v0+0xad)[0x804a431]
    ======= Memory map: ========
    08048000-08077000 r-xp 00000000 03:01 1006375 /usr/sbin/suphp
    08077000-08078000 rw-p 0002e000 03:01 1006375 /usr/sbin/suphp
    08078000-08099000 rw-p 08078000 00:00 0 [heap]
    b7c00000-b7c21000 rw-p b7c00000 00:00 0
    b7c21000-b7d00000 ---p b7c21000 00:00 0
    b7d5c000-b7d5d000 rw-p b7d5c000 00:00 0
    b7d5d000-b7e8a000 r-xp 00000000 03:01 5783704 /lib/tls/i686/cmov/libc-2.4.so
    b7e8a000-b7e8c000 r--p 0012c000 03:01 5783704 /lib/tls/i686/cmov/libc-2.4.so
    b7e8c000-b7e8e000 rw-p 0012e000 03:01 5783704 /lib/tls/i686/cmov/libc-2.4.so
    b7e8e000-b7e92000 rw-p b7e8e000 00:00 0
    b7e92000-b7e9c000 r-xp 00000000 03:01 5783568 /lib/libgcc_s.so.1
    b7e9c000-b7e9d000 rw-p 00009000 03:01 5783568 /lib/libgcc_s.so.1
    b7e9d000-b7ec1000 r-xp 00000000 03:01 5783709 /lib/tls/i686/cmov/libm-2.4.so
    b7ec1000-b7ec3000 rw-p 00023000 03:01 5783709 /lib/tls/i686/cmov/libm-2.4.so
    b7ec3000-b7f97000 r-xp 00000000 03:01 1001836 /usr/lib/libstdc++.so.6.0.8
    b7f97000-b7f9a000 r--p 000d4000 03:01 1001836 /usr/lib/libstdc++.so.6.0.8
    b7f9a000-b7f9c000 rw-p 000d7000 03:01 1001836 /usr/lib/libstdc++.so.6.0.8
    b7f9c000-b7fa2000 rw-p b7f9c000 00:00 0
    b7fa7000-b7fa9000 rw-p b7fa7000 00:00 0
    b7fa9000-b7fc2000 r-xp 00000000 03:01 5783569 /lib/ld-2.4.so
    b7fc2000-b7fc4000 rw-p 00018000 03:01 5783569 /lib/ld-2.4.so
    bfe7d000-bfe92000 rw-p bfe7d000 00:00 0 [stack]
    ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
    Aborted
     
  6. steve1084

    steve1084 New Member

    where do I go to edit the vhost files ???

    Maybe i am stupid or something but there is no instruction for this that I can see

    How do I edit the vhost settings to place the suphp commands into the vhost files. I tried placing it in the ispconfig apache extra commends section and that didnt do anything so how and where. What file am I supost to edit I am at a loss.??

    6 Apache Configuration

    In this chapter I assume we have a web site www.example.com on the IP address 1.2.3.4 with the document root /var/www and the following vhost configuration:

    <VirtualHost 1.2.3.4>
    ServerName www.example.com
    ServerAdmin [email protected]
    DocumentRoot /var/www
    </VirtualHost>

    In order to enable suPHP for the vhost www.example.com and let it run PHP scripts as the user testuser and the group test, we modify the vhost as follows:

    <VirtualHost 1.2.3.4>
    ServerName www.example.com
    ServerAdmin [email protected]
    DocumentRoot /var/www

    suPHP_Engine on
    suPHP_UserGroup testuser test
    AddHandler x-httpd-php .php .php3 .php4 .php5
    suPHP_AddHandler x-httpd-php
    </VirtualHost>

    AddHandler x-httpd-php refers to suPHP_AddHandler x-httpd-php which then refers to the x-httpd-php line in /etc/suphp.conf which means that scripts with the extensions .php, .php3, .php4, and .php5 are interpreted by /usr/bin/php5-cgi.
     
  7. brent.stephens

    brent.stephens New Member

    The .htaccess problem is easily fixed. Just comment out the Options declaration.
     
  8. steve1084

    steve1084 New Member

    Ok I surrender

    suphp is not working and I am now ready to uninstall

    Am I likely to have any problems uninstalling and returning my server back to how it was prior to installing suphp.

    Given that suphp was downloaded and compiled and installed what are the commands and steps I need to perform for the uninstall if finaly I give up trying to get it to work.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    You don't need to uninstall it. It is sufficient to remove the suPHP directives from your Apache configuration and restart Apache.
     

Share This Page