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 25th January 2011, 05:22
idsinc idsinc is offline
Member
 
Join Date: Feb 2010
Posts: 56
Thanks: 14
Thanked 0 Times in 0 Posts
Default apache.conf missing

It appears as though my apache.conf is missing from:

/etc/squirrelmail/apache.conf

That may be why I get an error when I tried to run:

cd /etc/apache2/conf.d/
ln -s ../../squirrelmail/apache.conf squirrelmail.conf
/etc/init.d/apache2 reload


Not sure what the deal is. How do I get the apache.conf , and then put back in /etc/squirrelmail/

Thanx in advance.
Reply With Quote
Sponsored Links
  #2  
Old 25th January 2011, 15:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

You can use this one (that's the default apache.conf from a Debian Lenny server):

Code:
Alias /squirrelmail /usr/share/squirrelmail

<Directory /usr/share/squirrelmail>
  Options Indexes FollowSymLinks
  <IfModule mod_php4.c>
    php_flag register_globals off
  </IfModule>
  <IfModule mod_php5.c>
    php_flag register_globals off
  </IfModule>
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>

  # access to configtest is limited by default to prevent information leak
  <Files configtest.php>
    order deny,allow
    deny from all
    allow from 127.0.0.1
  </Files>
</Directory>

# users will prefer a simple URL like http://webmail.example.com
#<VirtualHost 1.2.3.4>
#  DocumentRoot /usr/share/squirrelmail
#  ServerName webmail.example.com
#</VirtualHost>

# redirect to https when available (thanks omen@descolada.dartmouth.edu)
#
#  Note: There are multiple ways to do this, and which one is suitable for
#  your site's configuration depends. Consult the apache documentation if
#  you're unsure, as this example might not work everywhere.
#
#<IfModule mod_rewrite.c>
#  <IfModule mod_ssl.c>
#    <Location /squirrelmail>
#      RewriteEngine on
#      RewriteCond %{HTTPS} !^on$ [NC]
#      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
#    </Location>
#  </IfModule>
#</IfModule>
__________________
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
The Following User Says Thank You to falko For This Useful Post:
idsinc (25th January 2011)
  #3  
Old 25th January 2011, 18:52
idsinc idsinc is offline
Member
 
Join Date: Feb 2010
Posts: 56
Thanks: 14
Thanked 0 Times in 0 Posts
Default apache.conf missing

That was very helpful.

so I ran the rest of the commands:

Quote:
cd /etc/apache2/conf.d/
ln -s ../../squirrelmail/apache.conf squirrelmail.conf
/etc/init.d/apache2 reload

I finished with these results:
after ln the result was:
ln: creating symbolic link 'squirrelmail.conf' :file exists

after /etc/init.d.. the result was:
[OK]

Is this what I should have expected? I'm asking because I ran this once already, with failed results. Now that I have the apache.conf file it doesn't say file not found.
Reply With Quote
  #4  
Old 25th January 2011, 19:32
idsinc idsinc is offline
Member
 
Join Date: Feb 2010
Posts: 56
Thanks: 14
Thanked 0 Times in 0 Posts
Default squirrelmail login issues

I moved on to the next instructions (from the LAN):

"http://www.example.com/squirrelmail"
and
"http://server1.example.com:8080/squirrelmail"

but neither works

I did type in :

"http://192.168.0.100:8080/squirrelmail/src/login.php"

and i get access....

What have I done wrong?
Reply With Quote
  #5  
Old 26th January 2011, 15:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What's the output of
Code:
ls -la /etc/apache2/conf.d/
?
__________________
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 26th January 2011, 19:18
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default

what's the output on

Code:
tail -f /var/log/syslog
when you do a

Code:
/etc/init.d/apache2 restart
?
Reply With Quote
  #7  
Old 26th January 2011, 20:43
idsinc idsinc is offline
Member
 
Join Date: Feb 2010
Posts: 56
Thanks: 14
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
ls -la /etc/apache2/conf.d/
?
I have to hand type this, because my server doesn't have a desktop... I don't know what to install with ubuntu 10.10, because there weren't any instructions to do this.

Quote:
drwxr-xr-x 2 root root 4096 2011-01-24-20:19
drwxr-xr-x 7 root root 4096 2011-01-23-16:08
-rw-r--r-- 1 root root 237 2011-11-18-15:20 apache2-doc
-rw-r--r-- 1 root root 269 2011-11-18-15:16 charset
lrwxrwxrwx 1 root root 45 2011-01-23-16:08 javascript-common.conf-> /etc/javascript-common/javascript-common.conf
-rw-r--r-- 1 root root 3296 2011-11-18-15:16 localized-error-pages
-rw-r--r-- 1 root root 143 2011-11-18-15:16 other-vhosts-access-log
lrwxrwxrwx 1 root root 28 2011-01-23-16:09 phpmyadmin.conf -> ../../phpmyadmin/apache.conf
-rw-r--r-- 1 root root 1481 2011-11-18-15:16 security
lrwxrwxrwx 1 root root 30 2011-01-24-20:19 squirrelmail.conf-> ../../squirrelmail/apache.conf


Wish I could copy and paste... have to go to server then back to pc ... lol
Reply With Quote
  #8  
Old 26th January 2011, 21:15
idsinc idsinc is offline
Member
 
Join Date: Feb 2010
Posts: 56
Thanks: 14
Thanked 0 Times in 0 Posts
Default restart

Quote:
Originally Posted by w0rldart View Post
what's the output on

Code:
tail -f /var/log/syslog
when you do a

Code:
/etc/init.d/apache2 restart
?
Quote:
[Wed Jan 26 13:09:08 2011] [warn]NameVirtualHost 192.168.1.100:80 has no VirtualHosts
[Wed Jan 26 13:09:08 2011] [warn]NameVirtualHost 192.168.1.100:443 has no VirtualHosts
...waiting [Wed Jan 26 13:09:09 2011] [warn]NameVirtualHost 192.168.1.100:80 has no VirtualHosts
[Wed Jan 26 13:09:09 2011] [warn]NameVirtualHost 192.168.1.100:443 has no VirtualHosts


I wonder if this has something to to with the OpenVZ confusion I had in another post.
http://www.howtoforge.com/forums/showthread.php?t=51101


Last edited by idsinc; 26th January 2011 at 21:19.
Reply With Quote
  #9  
Old 27th January 2011, 15:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Does
Code:
cat /etc/apache2/conf.d/squirrelmail.conf
show what I posted in post #2?
__________________
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
  #10  
Old 27th January 2011, 18:06
idsinc idsinc is offline
Member
 
Join Date: Feb 2010
Posts: 56
Thanks: 14
Thanked 0 Times in 0 Posts
 
Default cat /etc/apache2/conf.d/squirrelmail.conf

Quote:
Originally Posted by falko View Post
Does
Code:
cat /etc/apache2/conf.d/squirrelmail.conf
show what I posted in post #2?
Quote:
Alias /squirrelmail /usr/share/squirrelmail
Alias /webmail /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
Options Indexes FollowSymLinks
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>

# access to configtest is limited by default to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>

# users will prefer a simple URL like http://webmail.example.com
#<VirtualHost 1.2.3.4>
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.example.com
#</VirtualHost>

# redirect to https when available (thanks omen@descolada.dartmouth.edu)
#
# Note: There are multiple ways to do this, and which one is suitable for
# your site's configuration depends. Consult the apache documentation if
# you're unsure, as this example might not work everywhere.
#
#<IfModule mod_rewrite.c>
# <IfModule mod_ssl.c>
# <Location /squirrelmail>
# RewriteEngine on
# RewriteCond %{HTTPS} !^on$ [NC]
# RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
# </Location>
# </IfModule>
#</IfModule>
I added one line, from the tutorial, second line.
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
Yum not finding/listing installed rpms - missing dependency guna_pmk Installation/Configuration 1 19th May 2010 13:30
setting up a media server centos 5.2 asphix20 HOWTO-Related Questions 2 9th December 2009 17:37
Backuppc : ssh always ask for password Trollineto Installation/Configuration 11 28th March 2008 15:09
required modules missing etag1949 Installation/Configuration 2 2nd June 2006 15:13
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 12:14


All times are GMT +2. The time now is 11:50.


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