• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

~/public_html verfügbar machen

Gerleg1

Member
Hallo Leute und Hallo Helfer,
ich habe folgendes Problem ich möchte gerne ~/public_html verfügbar machen

das ich es auf so auf rufen kann org/~gerleg/index.htm
ich hatte es schon mal so nur hatte ich denn an PHP rumgespielt dar ich PHP brachte
so hatte ich denn ein dummen fehler gemacht php5 Installiert und den wieder auf php 4 gewechselt
so mit ist aber klaue die ganze Einstehlungen kaputt gegangen
das ganze hatte mir mal ein freund gemacht aber weiß nicht wie ehr es gemacht hat
hat es auch wieder vergessen
sagt aber ehr musste eine Datei um schreiben wie immer der Name ist aber nicht bekannt
und denn musste ehr noch was Aktieviren

so frage ich mal kann mir einer sagen wie der name von der Datei heißt
die dar für zuständig ist
und flicht sagen kann was ich dar umschreiben muss
und was ich denn noch machen muss
 
OP
G

Gerleg1

Member
mh ich habe ein paar how to jetzt aus denn internet mal durch gelsen

http://www.farafin.de/faq/homepage.html

aber weiß nicht genau ob das das richtig ist für mich?

http://www.linux-club.de/viewtopic.php?t=59115&highlight=publichtml
da gehts nur nicht weiter^^

und sonst habe ich nicht das richtig für mich gefunden




und könnte man nicht extra für jeden bereicht einen Ordner anlegen für how to
so schaut man dar zu erst nach
dar der Sucher ja alles mögliche aus spuckt
Nur nicht was er soll
 

rolle

Guru
ich habe folgendes Problem ich möchte gerne ~/public_html verfügbar machen
Starte YaST->System->Editor für sysconfig..., gehe dort auf Network->WWW->Apache2->APACHE_MODULES und vergewissere Dich, daß dort 'userdir' in der Zeile mit drin steht. Wenn das so ist, dann kannst Du einfach per http://SERVERNAME/~NUTZERINNENNAME auf das jeweilige ~/public_html zugreifen. Natürlich muß das Verzeichnis und wohl auch das jeweilige /home-Verzeichnis für alle lesbar sein. (chmod 705)
 
OP
G

Gerleg1

Member
mh es gbit ein mal

access actions alias auth autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imap php 4

oder
access actions alias auth auth_dbm autoindex cgi dir expires include log_config mime negotiation setenvif ssl suexec userdir php 4

steht hier
 
OP
G

Gerleg1

Member
bei mir kommt immer

[an error occurred while processing this directive] Der Zugriff auf das angeforderte Objekt ist nicht möglich. Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt. [an error occurred while processing this directive]

der oder hatt 775 an rechten
 

rolle

Guru
Gut, dann poste mal die Ausgaben von 'ls -l /home' und von 'ls -l /home/gerleg' sowie den Inhalt von /etc/sysconfig/apache2.
 

rolle

Guru
Versuche es mal mit 'ls -l /home >> llhome', dann steht die Ausgabe in llhome oder kopiere einfach den Inhalt der Shell, so Du unter einer grafischen Oberfläche arbeitest.
 
OP
G

Gerleg1

Member
## Path: Network/WWW/Apache2
## Description: Configuration for Apache 2
## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Here you can name files, separated by spaces, that should be Include'd from
# httpd.conf.
#
# This allows you to add e.g. VirtualHost statements without touching
# /etc/httpd/httpd.conf itself, which makes upgrading easier.
#
APACHE_CONF_INCLUDE_FILES=""

## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Here you can name directories, separated by spaces, that should be Include'd
# from httpd.conf.
#
# All files contained in these directories will be recursively included by apache.
# If a pattern like *.conf is appended, apache will use it.
#
# Examples: "/etc/apache2/my_conf/"
# "/etc/apache2/virtual_hosts/*.conf"
# "local/*.conf /srv/www/virtual/"
#
APACHE_CONF_INCLUDE_DIRS=""

## Type: string
## Default: "access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php4"
## ServiceRestart: apache2
#
# [It might look silly to not simply edit httpd.conf for the LoadModule statements.
# However, since the LoadModule statements might need an absolute path to the modules,
# switching between MPMs can be quite a hassle. It's easier to just give the names here.]
#
# * list of all modules shipped with the base distribution:
#
# access actions alias asis auth auth_anon auth_dbm auth_digest auth_ldap
# autoindex cache case_filter case_filter_in cern_meta cgi charset_lite
# dav dav_fs deflate dir disk_cache dumpio echo env expires ext_filter
# file_cache headers imap include info ldap log_config log_forensic logio
# mem_cache mime mime_magic negotiation proxy proxy_connect proxy_ftp
# proxy_http rewrite setenvif speling ssl status suexec unique_id userdir
# usertrack vhost_alias
#
# see http://httpd.apache.org/docs-2.0/mod/ !
#
# * It pays to use IfDefine statements... like
# <IfModule mod_xyz.c>
# ....
# </IfModule>
#
# * In the APACHE_MODULES variable, you can use mod_xyz or just xyz syntax.
# You may also name an absolute path if you like.
#
# * NOTE ON MOD_SSL: before you can enable this module, you need a server certificate.
# A test certificate can be created by entering
# 'cd /usr/share/doc/packages/apache2; ./certificate.sh' as root.
# Also, you need to set the ServerName inside the <VirtualHost _default_:443>
# block to the fully qualified domain name (see /etc/HOSTNAME).
#
# * if your server certificate is protected by a passphrase you should increase the
# APACHE_START_TIMEOUT (see above)
#
# * modules listed here will be ignored if they are not installed
#
#
# EXAMPLES:
#
# fairly minimal
# APACHE_MODULES="access alias auth dir log_config mime setenvif"
#
# apache's default installation
# APACHE_MODULES="access actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir"
# your settings
APACHE_MODULES="access actions alias auth autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imap php4"

## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Additional server flags:
#
# Put here any server flags ("Defines") that you want to hand over to
# httpd at start time, or other command line flags.
#
# Background: Any directives within an <IfDefine flag>...</IfDefine>
# section are only processed if the flag is defined.
# This allows to write configuration which is active only in a
# special cases, like during server maintenance, or for testing
# something temporarily.
#
# Notably, to enable SSL support, 'SSL' needs to be added here.
# To enable the server-status, 'STATUS' needs to be added here.
#
# It does not matter if you write flag1, -D flag1 or -Dflag1.
# Multiple flags can be given as "-D flag1 -D flag2" or simply "flag1 flag2".
#
# Specifying such flags here is equivalent to giving them on the commandline.
# (e.g. via rcapache2 start -DReverseProxy)
#
# Example:
# "SSL STATUS AWSTATS SVN_VIEWCVS no_subversion_today"
#
APACHE_SERVER_FLAGS=""

## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Which config file do you want to use?
# (if not set, /etc/apache2/httpd.conf is used.)
# It is unusual to need to use this setting.
#
APACHE_HTTPD_CONF=""

## Type: list(prefork,worker,leader,metuxmpm)
## Default: ""
## ServiceRestart: apache2
#
# MPM (multi-processing module) to use.
#
# Needed to determine with which MPM apache will run, as well as
# against which header files modules will be built.
#
# If not set, the system will simply pick one of the installed MPMs.
#
# The implementation of the logic is in /usr/share/apache2/find_mpm,
# a script which can be used standalone as well if needed.
#
APACHE_MPM=""

## Type: string
## Default: ""
## ServiceReload: apache2
#
# email address of the server administrator (ServerAdmin directive)
# This address is added to the server's responses if APACHE_SERVERSIGNATURE
# is set to "email".
#
# If empty ("") it defaults to webmaster@$FQHOSTNAME, where FQHOSTNAME is
# taken from /etc/HOSTNAME.
#
# Note that ServerAdmin directives inside VirtualHost statements are not
# changed, even not the one in the stock SSL virtual host block.
#
APACHE_SERVERADMIN="root@linux"

## Type: string
## Default: ""
## ServiceReload: apache2
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
APACHE_SERVERNAME="linux"

## Type: integer
## Default: 2
#
# timeout during server startup (seconds)
# after this time, the start script decides wether the httpd process started without error.
#
# Increase it, if you use mod_ssl and your certificate is passphrase protected!
#
APACHE_START_TIMEOUT="2"

## Type: list(on,off,email)
## Default: "on"
## ServiceReload: apache2
#
# Configures the footer on server-generated documents
# This correlates to the ServerSignature directive.
#
APACHE_SERVERSIGNATURE="on"

## Type: list(debug,info,notice,warn,error,crit,alert,emerg)
## Default: "warn"
## ServiceReload: apache2
#
# LogLevel: Control the number of messages logged to the error_log.
#
APACHE_LOGLEVEL="warn"

## Type: string
## Default: "/var/log/apache2/access_log combined"
## ServiceRestart: apache2
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrarywise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
# Simply set it to empty, if you configure it yourself somewhere else.
#
# Examples:
#
# If you would like to have agent and referer logfiles:
#
# setting it to "/var/log/apache2/referer_log referer, /var/log/apache2/agent_log agent"
# corresponds to
# CustomLog /var/log/apache2/referer_log referer
# CustomLog /var/log/apache2/agent_log agent
#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format):
#
# setting it to "/var/log/apache2/access_log combined"
# corresponds to
# CustomLog /var/log/apache2/access_log combined
#
APACHE_ACCESS_LOG="/var/log/apache2/access_log combined"

## Type: list(On,Off,DNS)
## Default: "Off"
## ServiceReload: apache2
#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
APACHE_USE_CANONICAL_NAME="off"

## Type: list(Major,Minor,Minimal,ProductOnly,OS,Full)
## Default: "OS"
## ServiceReload: apache2
#
# How much information the server response header field contains about the server.
# (installed modules, versions, etc.)
# see http://httpd.apache.org/docs-2.0/mod/core.html#servertokens
#
APACHE_SERVERTOKENS="OS"

## Type: list(on,off)
## Default: "off"
## ServiceReload: apache2
#
# If mod_status is used, include extended information about the server, like
# CPU usage, in the status report. It is a server-wide setting, and it can cost
# some performance!
#
APACHE_EXTENDED_STATUS="off"

## Type: list(on,off)
## Default: "off"
## ServiceRestart: apache2
#
# Enable buffered logging
#
APACHE_BUFFERED_LOGS="off"

## Type: integer
## Default: 300
## ServiceReload: apache2
#
# Timeout: The number of seconds before receives and sends time out.
# It is a server wide setting.
#
APACHE_TIMEOUT="300"

## Path: Network/WWW/Apache/SuSEhelp
## Description: SuSE help doc server configuration
## Type: yesno
## Default: no
## Config: apache
## ServiceRestart: apache
## Command:
#
# Set this to yes on the central documentation server
# or to configure apache for local use of susehelp.
# Then the online-help-system indices are automatically adjusted
# and access to the help-files is allowed as specified in DOC_ALLOW.
# To run as a client for the central documentation server who's name
# is specified in DOC_HOST, just set DOC_SERVER to no.
# The DOC_HOST and DOC_ALLOW variables are in the file /etc/sysconfig/susehelp.
#
DOC_SERVER="no"
 
OP
G

Gerleg1

Member
drwxr-xr-x 4 gerleg users 168 Aug 1 20:56 .
drwxr-xr-x 9 root root 208 May 20 16:08 ..
-rw------- 1 gerleg users 3090 Aug 1 14:02 .bash_history
drwxr-xr-x 2 gerleg users 120 Apr 7 20:54 .mc
-rwxr--r-- 1 gerleg users 414740480 Jul 25 23:52 e racser.iso
drwx---r-x 12 gerleg users 336 Aug 1 20:52 public_html
 

rolle

Guru
Fein, das nötige Apache2-Modul wird also schon einmal geladen.
Läuft der apache2 auch? Das kannst Du als root per 'rcapache2 status' überprüfen. Die Meldung sollte 'running' lauten. Steht da 'unused', ist der apache2 gar nicht an.
Die Berechtigungen auf public_html sehen gut aus.
 
OP
G

Gerleg1

Member
und der server lauft auf running

aber wenn das alles gut aus seht warum kann ich nicht zu greifen und bekomm immer diese meldung hier

Der Zugriff auf das angeforderte Objekt ist nicht möglich. Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt.
 
OP
G

Gerleg1

Member
drwxr-xr-x 9 root root 208 May 20 16:08 .
drwxr-xr-x 22 root root 520 Aug 5 03:10 ..
drwx------ 4 root root 96 May 21 01:15 .Trash-0
drwxrwxrwx 4 mario users 96 Mar 10 22:41 .Trash-1000
drwxr-xr-x 4 gerleg users 168 Aug 1 20:56 gerleg
drwxr-xr-x 26 mario users 1608 Aug 5 19:02 mario
drwxr-xr-x 4 ts root 200 Aug 3 17:47 ts



aber wenn das alles gut aus seht warum kann ich nicht zu greifen und bekomm immer diese meldung hier

Der Zugriff auf das angeforderte Objekt ist nicht möglich. Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt.
 

rolle

Guru
Mist, so langsam gehen mir die Ideen aus. :?
Aber eine Frage habe ich noch: Gibt es 'index.htm' unter /home/gerleg/public_html und wird bei der Fehlermeldung eine Nummer (404, 403 oder eine andere) mit ausgegeben?
 
OP
G

Gerleg1

Member
immer und immer wieder nur die

[an error occurred while processing this directive] Der Zugriff auf das angeforderte Objekt ist nicht möglich. Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt. [an error occurred while processing this directive]

und es gibt na klar eine index.htm datei nicht nur eine dar war meine ganze homepage daruf die immer noch daruf ist^^
 
OP
G

Gerleg1

Member
Naja wie gesagt ich hatte mal an php rum gefummelt dar ich php bracht und dar habe ich
Php5:modul Installiert und denn aber wieder php 4

Wie man auch gut hier an denn url sehen kann

http://www.linux-club.de/ftopic65526.html



Und seit dem ist das auch kaputt irgendwie

Und so habe ich geklaubt das ich eine Datei umgeschrieben habe
 
OP
G

Gerleg1

Member
hey das kommt doch immer und immer wieder

Der Zugriff auf das angeforderte Objekt ist nicht möglich. Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt.

also die zugriffsgeschützt können wir aus schlissen aber

was ist wenn der server das nicht lesen kann??
 
Oben