Rediculously easy Debian/Apache questions

Discussion in 'Server Operation' started by thecgmguy, Nov 17, 2006.

  1. thecgmguy

    thecgmguy New Member


    I've finished configuring a debian sarge distro as per the guide here: and

    I'm now trying to get install joomla (php/mysql based CMS) and have some questions:

    1) Where should I copy the files? What specific path? I thought it would be /var/www/apache2-default/ The downside with that though is that when I browse to my server: it redirects to

    Is there a way to change this? If so, where (bare in mind that I'm a complete n00b).

    2) I've been experiencing intermittent issues with file transfer.

    Firstly, FTP sometimes fails to connect (it's an intermittent thing). I find that I can usually connect more reliably with passive mode but transfers are faster with active mode (when it works).

    WinSCP connects fine all the time but file transfers are incredibly slow and after a while, it will lock up.

    3) Just for fun, I tried copying the joomla files over to the apache2-default directory. What's interesting is that when I went to browse the site, it navigated to the index.php file but showed the code in the browser. Any ideas on why?


  2. Rocky

    Rocky Member

    What I did was I used the first 2 pages of Falko's Perfect Debian guide. I then installed:

    A. Mysql. Make sure to change the password by running 'mysqladmin -u root password yourrootsqlpassword'.
    B. Apache2, using Falko's Apache2 with PHP5 and PHP4(CGI). This had a few requirements to get php and mysql support.
    1. Download the php5-mysql package.
    2. Edit /etc/php5/apache2/php.ini and uncomment ''.
    3. Edit /etc/php4/cgi/php.ini and uncomment ''.
    4: Create a file called info.php with the contects <? phpinfo() ?> and place it in your /var/www directory.
    5. Edit /etc/apache2/apache2.conf and change 'DirectoryIndex' to
    DirectoryIndex index.html index.htm index.shtml index.cgi index.php ind
    ex.php4 index.xhtml.
    You should be able to change the default DocumentRoot to just /var/www.
    6. Once all the above is done, connect to your info.php page but going to and check to make sure you have mysql support.
    C: Proftpd, using Falko's Proftpd with Virtual Users and Quote. Make sure you add the following lines to your /etc/proftpd.conf:

    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."

    This combination worked very well for me.
    Last edited: Nov 17, 2006
  3. thecgmguy

    thecgmguy New Member

    Thanks for the feedback rocky. The php files were already set like you recommended.

    I still don't know where to set the apache directory though. Any ideas?
  4. Hans

    Hans Moderator ISPConfig Developer

    Joomla howto

    If you like and if you have ISPConfig installed, you can follow my howto to the letter as it is written on Debian.
    With this howto i explain to you howto setup Joomla safe and succesfully!
    Have a look here:
  5. falko

    falko Super Moderator ISPConfig Developer

    This is caused by your firewall. You can change your firewall rules or switch it off for tersting purposes and test FTP again.

    Have a look here:
  6. mudder-board

    mudder-board New Member

    To have it so apache doesn't show the apache2-default page. Look in
    /etc/apache2/sites-available/default and comment out the reference to the page.

    I had problems with php code being displayed. In the howto it had you comment out:
    application/x-httpd-php                         phtml pht php
    application/x-httpd-php-source                  phps
    application/x-httpd-php3                        php3
    application/x-httpd-php3-preprocessed           php3p
    application/x-httpd-php4                        php4
    in /etc/mime.types

    Uncomment those lines and your pages will work

Share This Page