Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: server  (gelezen 2839 keer)

vespertilio

  • Gast
server
« Gepost op: 2008/03/25, 11:29:55 »
ben ik weer met een vraagje :s

ik heb vandaag een server geïnstalleerd op pc van men vader
een LAMP
probleem is dat ie bij het opstarten login en pass vraagt, en diegene die ik bij de installatie heb opgeschreven herkent ie niet.
Heb al hoofdlettervariaties uitgeprobeerd, geen uitwerking.
Weet er iemand hoe ik dat kan achterhalen?

thx
vespertilio

Offline Tukcedo

  • Lid
    • http://www.tukcedo.nl
server
« Reactie #1 Gepost op: 2008/03/25, 12:32:12 »
Boot met de Live-CD en mount je bestaande schijf, laten we zeggen dat dat /dev/sda2 is.

sudo mkdir /media/disk
sudo mount /dev/sda2 /media/disk

Om te kijken welke gebruikersnaam je hebt:

cat /media/disk/etc/passwd

Evt. kun je in /media/disk/etc/group het bijbehorende wachtwoord van deze gebruiker weghalen en dan opnieuw proberen (zonder ww) in te loggen na een reboot.
Tukcedo Services - Unix en Linux Consultants
http://www.tukcedo.nl

vespertilio

  • Gast
server
« Reactie #2 Gepost op: 2008/03/25, 12:41:20 »
thx

vespertilio

  • Gast
server
« Reactie #3 Gepost op: 2008/03/25, 13:59:58 »
oke, ik ben binnen...
Nou volgende probleem:
- hoe achterhaal ik het IP-adres van mijn Server, zodat ssh werkt
- hoe raak ik in de bestanden op de server? met het cd-commando raak ik niet in de /var/www

grtz
vesp

server
« Reactie #4 Gepost op: 2008/03/25, 14:31:28 »
Citaat
- hoe achterhaal ik het IP-adres van mijn Server, zodat ssh werkt
sudo nano /etc/network/interfaces. Als je een server hebt, kun je hier het beste een vast ip-adres ingeven. Bijv:

# The primary network interface
auto eth0
iface eth0 inet static
        address (het vaste ip-adres)
        netmask 255.255.255.0
        gateway (het gatewayadres)
Zorg er wel voor dat je buiten de IP-pool van je DHCP-router (als je netwerk tenminste zo werkt) blijft. Als je IP-pool bijv. 1.1.1.1 t/m 1.1.1.100 is, kies dan bijv. voor 1.1.1.101.


Citaat
- hoe raak ik in de bestanden op de server? met het cd-commando raak ik niet in de /var/www
Type cd /var/www eens? Maar dan moet je wel via ssh te werk gaan.

Wat je ook kunt doen, is een netwerklocatie toevoegen op een andere pc. Klik dan op locaties => verbinden met server => kies ssh => voer de gegevens van je server in.

Succes!
"If engineers built buildings the way Microsoft builds operating systems the first woodpecker to come along would bring civilization to its knees."

vespertilio

  • Gast
server
« Reactie #5 Gepost op: 2008/03/25, 14:49:33 »
hij zegt dat hij het commando cd niet kent, doch, hij kent het wel (als ik een map aanmaak in de home werkt het commando wel)

hij kan gwn niet buiten de home gaan p'cies

wanneer ik dat document open kom ik trouwens op een lege pagina uit :s

Offline Tukcedo

  • Lid
    • http://www.tukcedo.nl
server
« Reactie #6 Gepost op: 2008/03/25, 18:57:46 »
vespertilio, je kunt het best even een schermdump maken, dan zien we beter wat er aan de hand is. Een systeem MOET cd kennen want dat zit in de shell ingebakken.  Als je het IP adres van het systeem waarop je bent ingelogd wilt zien, doe je:

sudo ifconfig -a
Tukcedo Services - Unix en Linux Consultants
http://www.tukcedo.nl

vespertilio

  • Gast
server
« Reactie #7 Gepost op: 2008/03/25, 20:32:40 »
ik heb het gevonden.
Hij kende cd wel, maar de map bestond niet.
De lan-server was niet geïnstalleerd

hoe maak je trouwens een schermdump in een systeem waar ENKEL een terminal opstaat (ben er nog niet achter hoe ssh werkt)

vespertilio

  • Gast
server
« Reactie #8 Gepost op: 2008/03/26, 10:12:54 »
iets anders...
Hoe krijg ik dat ding online?

Offline Scormen

  • Lid
    • LinuxOntdekt.Be
server
« Reactie #9 Gepost op: 2008/03/26, 10:28:14 »
Om dat ding online te krijgen moet je in de configuratie van je router duiken.
Hierin zal je ergens (afhankelijk van je router) stuiten op "port forwarding". Hier dien je poort 80 (http) door te sturen naar het ip adres van je server. Wil je kunnen FTP'en moet je ook poort 21 doorsturen naar het IP adres van je server.

Vervolgens kan men naar je website surfen door je extern IP adres in te geven (dat wat je gekregen hebt van je internet provider): http://www.ip-adress.com

Kris
Ubuntu gebruiker #18341 | Linux gebruiker #456955
· Mijn persoonlijke Linux blog

Hendrikdegraaf

  • Gast
server
« Reactie #10 Gepost op: 2008/03/26, 10:30:22 »
vespertilio,

Je vraagt om hulp met allerlei problemen. Als het ene nog niet is opgelost begin je al over het andere: dat gaat zo niet werken.... Haal even diep adem en probeer eerst te ssh te regelen, vervolgens kan je kijken of de server online kan krijgen.

Er is trouwens ontzettend veel te vinden over dit onderwerp op het forum. Hieronder enkele post waar ik van weet dat ze over het zelfde probleem gingen.
http://forum.ubuntu-nl.org/topic/23639
http://forum.ubuntu-nl.org/topic/23607

Dit is overigens de juiste volgorde om aan de gang te gaan:
1. zorg dat all juiste software is geïnstalleerd (LAMP, ssh-server, vim-full)
2. Geef je server een statisch ip.
3. Forward poort 80 van je router naar het lokale ip van je server
4. Kijk via www.whatismyip.com wat je externe ip is en ga via www.surfnuanoniem.nl naar http://. Als je "It Works" ziet, dan ben je online!

Als je er niet uit komt bij bepaalde stappen kunnen we je dan verder helpen.

Succes,
Hendrik

Hendrikdegraaf

  • Gast
server
« Reactie #11 Gepost op: 2008/03/26, 10:31:29 »
Excuses, ik heb weer eens gelijk met iemand zitten typen, ik ben waarshijnlijk nogal langzaam!

Sorry Scormen.

vespertilio

  • Gast
server
« Reactie #12 Gepost op: 2008/03/26, 10:53:42 »
ok :)
het werkt :)
81.242.55.73

hartelijk dank allemaal voor de hulp!

Offline Scormen

  • Lid
    • LinuxOntdekt.Be
server
« Reactie #13 Gepost op: 2008/03/26, 10:56:19 »
Haha geen punt hoor Hendrik.
Proficiat met je eerste server, vespertilio ;)

Maar Hendrik heeft gelijk, niet proberen te lopen voordat je je eerste stappen hebt gezet. Werkt al de rest nu naar behoren?

Kris
Ubuntu gebruiker #18341 | Linux gebruiker #456955
· Mijn persoonlijke Linux blog

vespertilio

  • Gast
server
« Reactie #14 Gepost op: 2008/03/26, 11:09:22 »
yep, ik kan al met ssh overweg, en ik heb gedaan wat in de tutorial op de site hier staat om hem vast te zetten.
Morgen zal ik weten of het ook effectief heeft gewerkt :p

vespertilio

  • Gast
server
« Reactie #15 Gepost op: 2008/03/26, 17:47:47 »
ben ik weer met mijn server :P
alles werkt nu, en ik heb phpmyadmin geïnstalleerd.
Dit met het commando sudo apt-get install phpmyadmin
Wat moet ik nu doen om phpmyadmin te laten werken?

(PS: en dit was mijn 100e bericht hier :p)

mickvdv

  • Gast
server
« Reactie #16 Gepost op: 2008/03/26, 18:25:05 »
Ga naar

/phpmyadmin

vespertilio

  • Gast
server
« Reactie #17 Gepost op: 2008/03/26, 19:19:25 »
dan krijg ik deze lijst te zien:

[DIR]   Parent Directory        -
[ ]   apache.conf   06-Mar-2008 00:48    1.0K
[ ]   config.footer.inc.php   06-Mar-2008 00:48    168
[ ]   config.header.inc.php   06-Mar-2008 00:48    168
[ ]   config.inc.php   06-Mar-2008 00:48    1.9K
[ ]   htpasswd.setup   26-Mar-2008 17:37    8

mickvdv

  • Gast
server
« Reactie #18 Gepost op: 2008/03/26, 21:03:42 »
dat is niet zo mooi, kan je /etc/apache2/sites-enabled/ en /etc/apache2/apache.conf ff posten? Misschien staat daar iets in. (wel ff tussen [ code ] tags).

vespertilio

  • Gast
server
« Reactie #19 Gepost op: 2008/03/26, 21:20:17 »
sites enabled:

000-defaultdit is de inhoud van 000-default:

NameVirtualHost *

        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/
       
                Options FollowSymLinks
                AllowOverride None
       

       
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
       


        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
       
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
       


        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
   
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
   
en de conf:

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
#
# 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.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# 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 "" will be interpreted by the
# server as "//var/log/apache2/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at );
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
#
#
LockFile /var/lock/apache2/accept.lock
#

#


#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile /var/run/apache2.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves

    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0


# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves

    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0


User www-data
Group www-data

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#

AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#

    Order allow,deny
    Deny from all

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain


#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a
# container, that host's errors will be logged there and not here.
#
ErrorLog /var/log/apache2/error.log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of:  Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
#
ServerTokens Full

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On



#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_.html.var response to
# our collection of by-error message multi-language collections.  We use
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /usr/share/apache2/error/include/ files and copying them to /your/include/path/,
# even on a per-VirtualHost basis.  The default include files will display
# your Apache version number and your ServerAdmin email address regardless
# of the setting of ServerSignature.
#
# The internationalized error documents require mod_alias, mod_include
# and mod_negotiation.  To activate them, uncomment the following 30 lines.
# The internationalized error documents require mod_alias, mod_include
# and mod_negotiation.  To activate them, uncomment the following 30 lines.

#    Alias /error/ "/usr/share/apache2/error/"
#
#    
#        AllowOverride None
#        Options IncludesNoExec
#        AddOutputFilter Includes html
#        AddHandler type-map var
#        Order allow,deny
#        Allow from all
#        LanguagePriority en cs de es fr it nl sv pt-br ro
#        ForceLanguagePriority Prefer Fallback
#    

#
#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var



# Include of directories ignores editors' and dpkg's backup files,
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
Include /etc/apache2/conf.d/

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
~ vespertilio ~