Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,210
» Latest member: greg22
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 407 online users.
» 0 Member(s) | 403 Guest(s)
Applebot, Bing, Google, Yandex

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 346
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 82,405
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 37,296
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,817
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,277
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,186
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 112,220
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 51,083
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 41,323
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 41,342

 
  Apache vhosts inGentoo
Posted by: EzMe - 2010-05-13, 05:19 PM - Forum: LAMP - Replies (10)


Im trying to set up 2 vhosts on gentoo. I got vhost1.nl and vhost2.nl. For some reason i when i visit vhost2.nl it redirects me to vhosts1.nl and i cannot figuere out why.

 

This is my setup:

 



Code:
# apache2 -V
Server version: Apache/2.2.15 (Unix)
Server built:   Mar 31 2010 09:16:29
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Prefork
threaded:     no
   forked:     yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"




 

File: /etc/conf.d/apache2

 



Code:
# /etc/conf.d/apache2: config file for /etc/init.d/apache2

# When you install a module it is easy to activate or deactivate the modules
# and other features of apache using the APACHE2_OPTS line. Every module should
# install a configuration in /etc/apache2/modules.d. In that file will have an
# <IfDefine NNN> directive where NNN is the option to enable that module.
#
# Here are the options available in the default configuration:
#
#  AUTH_DIGEST  Enables mod_auth_digest
#  AUTHNZ_LDAP  Enables authentication through mod_ldap (available if USE=ldap)
#  CACHE        Enables mod_cache
#  DAV          Enables mod_dav
#  ERRORDOCS    Enables default error documents for many languages.
#  INFO         Enables mod_info, a useful module for debugging
#  LANGUAGE     Enables content-negotiation based on language and charset.
#  LDAP         Enables mod_ldap (available if USE=ldap)
#  MANUAL       Enables /manual/ to be the apache manual (available if USE=docs)
#  MEM_CACHE    Enables default configuration mod_mem_cache
#  PROXY        Enables mod_proxy
#  SSL          Enables SSL (available if USE=ssl)
#  SUEXEC       Enables running CGI scripts (in USERDIR) through suexec.
#  USERDIR      Enables /~username mapping to /home/username/public_html
#
#
# The following two options provide the default virtual host for the HTTP and
# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache
# will not listen for incomming connections on the approriate port.
#
#  DEFAULT_VHOST      Enables name-based virtual hosts, with the default
#                     virtual host being in /var/www/localhost/htdocs
#  SSL_DEFAULT_VHOST  Enables default vhost for SSL (you should enable this
#                     when you enable SSL)
#
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D PHP5 -D PROXY -D PROXY_HTML"

# Extended options for advanced uses of Apache ONLY
# You don't need to edit these unless you are doing crazy Apache stuff
# As not having them set correctly, or feeding in an incorrect configuration
# via them will result in Apache failing to start
# YOU HAVE BEEN WARNED.

# ServerRoot setting
#SERVERROOT=/usr/lib/apache2

# Configuration file location
# - If this does NOT start with a '/', then it is treated relative to
# $SERVERROOT by Apache
#CONFIGFILE=/etc/apache2/httpd.conf

# Location to log startup errors to
# They are normally dumped to your terminal.
#STARTUPERRORLOG="/var/log/apache2/startuperror.log"

# A command that outputs a formatted text version of the HTML at the URL
# of the command line. Designed for lynx, however other programs may work.
#LYNX="lynx -dump"

# The URL to your server's mod_status status page.
# Required for status and fullstatus
#STATUSURL="http://localhost/server-status"

# Method to use when reloading the server
# Valid options are 'restart' and 'graceful'
# See http://httpd.apache.org/docs/2.2/stopping.html for information on
# what they do and how they differ.
#RELOAD_TYPE="graceful"




 

http.conf:

 



Code:
# cat httpd.conf
# This is a modification of the default Apache 2.2 configuration file
# for Gentoo Linux.
#
# Support:
#   http://www.gentoo.org/main/en/lists.xml   [mailing lists]
#   http://forums.gentoo.org/                 [web forums]
#   irc://irc.freenode.net#gentoo-apache      [irc chat]
#
# Bug Reports:
#   http://bugs.gentoo.org                    [gentoo related bugs]
#   http://httpd.apache.org/bug_report.html   [apache httpd related bugs]
#
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr/var/log/apache2/foo.log".

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
ServerRoot "/usr/lib/apache2"

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
#         Do not change manually, it will be overwritten on upgrade.
#
# The following modules are considered as the default configuration.
# If you wish to disable one of them, you may have to alter other
# configuration directives.
#
# Change these at your own risk!

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so

<IfDefine CACHE>
LoadModule cache_module modules/mod_cache.so
</IfDefine>

LoadModule cgi_module modules/mod_cgi.so

<IfDefine DAV>
LoadModule dav_module modules/mod_dav.so
</IfDefine>

<IfDefine DAV>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfDefine>

<IfDefine DAV>
LoadModule dav_lock_module modules/mod_dav_lock.so
</IfDefine>

LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so

<IfDefine CACHE>
LoadModule disk_cache_module modules/mod_disk_cache.so
</IfDefine>

LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule ext_filter_module modules/mod_ext_filter.so

<IfDefine CACHE>
LoadModule file_cache_module modules/mod_file_cache.so
</IfDefine>

LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so

<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>

LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so

<IfDefine CACHE>
LoadModule mem_cache_module modules/mod_mem_cache.so
</IfDefine>

LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so

<IfDefine PROXY>
LoadModule proxy_module modules/mod_proxy.so
</IfDefine>

<IfDefine PROXY>
LoadModule proxy_http_module modules/mod_proxy_http.so
</IfDefine>

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule speling_module modules/mod_speling.so

# <IfDefine SSL>
# LoadModule ssl_module modules/mod_ssl.so
# </IfDefine>

<IfDefine STATUS>
LoadModule status_module modules/mod_status.so
</IfDefine>

LoadModule unique_id_module modules/mod_unique_id.so

<IfDefine USERDIR>
LoadModule userdir_module modules/mod_userdir.so
</IfDefine>

LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache

# Supplemental configuration
#
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
# or to modify the default configuration of the server.
#
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf

# vim: ts=4 filetype=apache




 

Then my conf in /etc/apache2/vhosts.d/*.conf

 



Code:
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

<IfDefine DEFAULT_VHOST>
# see bug #178966 why this is in here

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

# Use name-based virtual hosting.
NameVirtualHost *:80

# When virtual hosts are enabled, the main host defined in the default
# httpd.conf configuration will go away. We redefine it here so that it is
# still available.
#
# If you disable this vhost by removing -D DEFAULT_VHOST from
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
# the default.

<VirtualHost *:80>
       ServerName vhost1.nl
       ServerAdmin root@vhost1
       DocumentRoot "/var/www/vhost1.nl/htdocs"

<Directory "/var/www/vhost1/htdocs">
       Options Indexes FollowSymLinks
       AllowOverride All
       Allow from all
</Directory>

       <IfModule mpm_peruser_module>
               ServerEnvironment apache apache
       </IfModule>
</VirtualHost>

<VirtualHost *:80>
       ServerName vhost2.nl
       ServerAdmin root@vhost2.nl
       DocumentRoot "/var/www/vhost2.nl/htdocs"

       <Directory "/var/www/vhost2.nl/htdocs">
               Options Indexes FollowSymLinks
               AllowOverride All
               Allow from all
       </Directory>

       <IfModule mpm_peruser_module>
               ServerEnvironment apache apache
       </IfModule>
</VirtualHost>
</IfDefine>

# vim: ts=4 filetype=apache




 

Also, what might be something to worth mentioning, is that on vhost1.nl runs a opensource CMS called drupal. I want vhost1.nl redirected to WWW.vhost1.nl. On vhost2.nl is running a plain simple website that i also want to redirect to www. That's why i made the following .htaccess files:

 

vhost1.nl:



Code:
# cat .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^vhost1\.nl$ [NC]
RewriteRule ^(.*)$ http://www.vhost1.nl/$1 [L,R=301]




 

vhost2.nl



Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^vhost2\.nl$ [NC]
RewriteRule ^(.*)$ http://www.vhost2.nl/$1 [L,R=301]




 

 

You guys see antything unusual? Thanks in Advance :)

 

Grtz EzMe

Print this item

  Websites looking ugly in Linux?
Posted by: hybrid - 2010-05-11, 09:16 AM - Forum: Featured Content - No Replies


Have you noticed that many websites don't quite look the same on Linux than they do other computers?

 

This is because many of the fonts web designers expect to be installed on any computer don't generally come with Linux. You can install them, however, and make websites look much more attractive and 'as the designer intended'.

 

Follow our very quick tutorial to install the msttcorefonts package.

Print this item

  Installing Microsoft fonts
Posted by: hybrid - 2010-05-11, 09:12 AM - Forum: Tips and Tricks - No Replies


This is an update to anyweb's tutorial How to Install Microsoft TTF Fonts in Red Hat. Since that tutorial was written, it is much easier with most modern distributions to install the fonts.

 

Why do you want the Microsoft fonts?

 

Most Linux distributions ship without this pack of fonts distributed by Microsoft, but most websites assume that you have this base set of fonts installed. What that practically means is that many websites will have weird-looking fonts and will not display as the designer intended. Installing the fonts makes your Linux web browsing experience much more familiar and again, things look as intended!

 

How to Install

 

In most distributions, it is now very simple to download and install the font pack in one step.

 

Go to your package manager or software management application (e.g. Ubuntu Software Centre) and search for msttcorefonts. Choose to install that package.

 

If you can't find or don't want to use the graphical package manager, you can go to a terminal and do:

 



Code:
sudo apt-get install msttcorefonts




 

(for Debian, Ubuntu, Linux Mint etc.)

 



Code:
su -c "yum install msttcorefonts"




 

(for Fedora, CentOS, RHEL, etc.)

 

Once the package has been downloaded and installed, you will need to log out and log back in so that your web browser so that it has access to the fonts. Fire up your browser again and you should start to see web pages rendering in the way they were designed to, with those Microsoft fonts.

 

If you are still having problems and the new fonts aren't showing up, try running this command as root:

 



Code:
sudo fc-cache -fv




 

That should be it!

Print this item

  Linux Courses/Certifications
Posted by: inittux - 2010-05-04, 11:07 AM - Forum: General Chat - Replies (18)


I'm thinking of following a cheaper linux course cuz I find that RHCT is a bit too expensive for my budget. Just wondering your opinions on the following.

 

http://www.lpi.org/eng/certification/the...ram/lpic_1

Print this item

  Linux Drivers
Posted by: inittux - 2010-05-03, 05:37 PM - Forum: Just Starting Linux - Replies (3)


I've read quite a bit over the web and I still don't seem to understand how linux drivers work. For example getting a wireless driver to work work in linux system. I've read stuff about loading the kernel module and then adding the module to a certain file so that it actually loads etc. I've seen examples of how people do it but they still confuse me and when trying them out I haven't gotten it to work yet. Could someone please help me understand or point me in the right direction of how this works?

 

This is the best article I found on it, but still haven't trouble understanding it.

 

 

http://www.linuxplanet.com/linuxplanet/t...ls/1019/1/

Print this item

  Ubuntu 10.04 Released
Posted by: anyweb - 2010-04-30, 02:57 PM - Forum: Linux News - Replies (1)


It's that time of year again: a new Ubuntu release (or Kubuntu, if that's your thing). Canonical has just released Ubuntu 10.04, Lucid Lynx. This is a long term support release, meaning its supported period is far longer than that of normal releases. It comes with the latest and greatest the Free software world has to offer, while also adding some Ubuntu-specific features, of course.

 

via http://www.osnews.com/story/23225/Ubuntu_10_04_Released

Print this item

  ifconfig Woes...
Posted by: Ellipsis - 2010-04-28, 09:35 AM - Forum: Network Problems - Replies (4)


Hello everyone,

 

Firstly let me say that I've tried su - and /sbin/ifconfig it's not there. For some reason I seem to have "lost" it or something because ever since I installed the distro a while back it hasn't been there. I'm running Debian. I do have iwconfig, which for most of my needs works but I'm trying to get the loopback (lo) interface running but without ifconfig that's kind of difficult :P

 

I do have commands for ifup and ifdown but they don't work because (I'm assuming from reading error outputs) that they call on ifconfig.

 

If someone could help me out on how to fix/get ifconfig i'd greatly appreciate it.

 

Thank you

Print this item

  Adding repositories on Debian
Posted by: warlordfff - 2010-04-27, 06:55 AM - Forum: Debian - Replies (1)

I am thinking on installing Debian squeeze to replace my ubuntu 9.10 instead of going to 10.04 but I want to know how to add repositories among other things,can anyone please tell me how to step by step?

Print this item

  Introducing PCLinuxOS 2010
Posted by: anyweb - 2010-04-20, 06:33 AM - Forum: PCLinuxOS - No Replies


The distribution itself comes on a single live CD which kicks off with a GRUB boot menu. The GRUB screen gives the user the ability to boot normally, into the live environment, into a console or via various safe modes, or to perform a media check. Additional menus along the bottom of the screen offer support for additional languages, screen resolutions and kernel options.

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_04_2010/post-1-12717452298278.png" data-fileid="1260">[img]<fileStore.core_Attachment>/monthly_04_2010/post-1-12717452298278.png[/img]</a>

 

Booting into the live environment presents the user with a blue-themed KDE desktop. The root and guest account passwords are displayed at the top of the screen and the application menu is displayed in the classic KDE style. Icons on the desktop provide short-cuts to the command line, the user's folders and the system's installer. Along the taskbar are icons providing the user with links to various tools to configure the desktop and to configure the computer (more on the differences between those two shortly). There are also launchers to browse the user's files and start the package manager.

 

The installer starts off by asking the user to partition their hard disk. The partition editor has an interesting approach to its job, where almost all the controls are either buttons or sliders. While this took a few moments for me to get used to, the layout will probably appeal to less experienced users. Once the disk has been divided up, the installer formats the drive and copies the necessary files over from the CD. This happened without any confirmation, taking me a bit by surprise as generally an installer will warn the user before wiping a partition. Once the copy process is complete, the installer asks the user to configure the boot loader. After configuring the boot loader, the installer locked up for a minute and, finally, showed me a screen asking me to "halt computer".

 

more > http://www.osnews.com/story/23176/Introd...nuxOS_2010



Attached Files
.png   pclinuxos-installer.png (Size: 294.74 KB / Downloads: 0)
Print this item

  INSTALL XP FROM FEDORA
Posted by: arinkolkata - 2010-04-20, 01:25 AM - Forum: How Do I? - Replies (2)

i have acer emachines atom notebook with fedora preinstalled and it does not have cd drive.i has 160 hdd. i coped xp from pendrive but it not getting started. the file system it is showing ext4 and others. i want remove them, convert the hdd into ntfs and install xp.i have to some project work urgently.HOW DO I REMOVE EXT4 PARTITION OF FEDORA AND MAKE A NTFS PARTITION WITHOUT A CD DRIVE. I HAVE USB PORT TO HAVE A PENDRIVE.....

Print this item