Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2006, 04:59
thecgmguy thecgmguy is offline
Junior Member
 
Join Date: Aug 2006
Location: Hollister, CA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rediculously easy Debian/Apache questions

Hiya.

I've finished configuring a debian sarge distro as per the guide here: http://www.howtoforge.com/perfect_setup_debian_sarge 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: http://192.168.1.202/ it redirects to http://192.168.1.202/apache2-default/

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?

Thanks,

CGM
Reply With Quote
Sponsored Links
  #2  
Old 17th November 2006, 06:05
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

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 'extensions=mysql.so'.
3. Edit /etc/php4/cgi/php.ini and uncomment 'extensions=mysql.so'.
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.pl 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 http://192.168.1.202/info.php 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.
__________________
Home of the SpamSnake

Last edited by Rocky; 17th November 2006 at 06:18.
Reply With Quote
  #3  
Old 18th November 2006, 09:03
thecgmguy thecgmguy is offline
Junior Member
 
Join Date: Aug 2006
Location: Hollister, CA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #4  
Old 18th November 2006, 09:12
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Smile 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:
http://www.howtoforge.com/joomla_ispconfig
__________________
Hans

MrHostman | Managed Hosting
Reply With Quote
  #5  
Old 18th November 2006, 15:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by thecgmguy
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).
This is caused by your firewall. You can change your firewall rules or switch it off for tersting purposes and test FTP again.

Quote:
Originally Posted by thecgmguy
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?
Have a look here: http://www.howtoforge.com/forums/sho...e+php+globally
http://www.howtoforge.com/forums/sho...e+php+globally
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 18th November 2006, 20:14
mudder-board mudder-board is offline
Junior Member
 
Join Date: Nov 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

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:
Code:
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname & DNS questions... SurfingAlien Installation/Configuration 6 16th October 2007 17:32
Extreme n00b questions re: Ubuntu 6.06 Perfect Setup titbeak HOWTO-Related Questions 2 2nd September 2006 15:09
Apache2 and DNS Made Easy browngb Server Operation 4 28th July 2006 15:23
Few questions about Fedora core 4 perfect setup + mantasman HOWTO-Related Questions 3 9th January 2006 23:22
General ISPConfig Newbie Questions christopher Installation/Configuration 1 24th November 2005 10:54


All times are GMT +2. The time now is 00:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.