F
FoKu
Mitglied
nein in 2 verschiedenen ordnern die da wären
sites-enabled und sites-available
sites-enabled und sites-available
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion erfordert derzeit den Zugriff auf die Seite über den integrierten Safari-Browser.
Du meinst:Der link ist das und in beiden Dateien steht das selbe drin.
NameVirtualHost *
# Hauptserver
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /htdocs) when you go to /
#RedirectMatch ^/$ /htdocs/
</Directory>
ScriptAlias /cgi-bin/ /var/www/htdocs/cgi-bin/
<Directory "/var/www/htdocs/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
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/"
<Directory "/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
</Directory>
</VirtualHost>
cr:/home/cr# ls /etc/apache2/mods-enabled
alias.load authz_host.load dir.load php5.conf
auth_basic.load authz_user.load env.load php5.load
authn_file.load autoindex.load mime.load setenvif.load
authz_default.load cgi.load negotiation.load status.load
authz_groupfile.load dir.conf perl.load
cr:/home/cr# grep -r "AddHandler" /etc/apache2/ | grep pl
cr:/home/cr#
-rwxr-xr-x 1 cr cr 271 2008-03-22 03:19 test.pl
apt-get install php5.0 php5.0-common php5.0-fcgi apache2-mpm-worker
echo "deb-src http://people.debian.org/~dexter php5.0 sarge" >> /etc/apt/sources.list
echo "deb http://people.debian.org/~dexter php5.0 sarge" >> /etc/apt/sources.list
apt-get install apache2.2-common apache2-mpm-worker apache2-threaded-dev
AddHandler cgi-script .cgi .pl
cr:/home/cr# grep -r "php" /etc/apache2
/etc/apache2/mods-enabled/php5.conf:<IfModule mod_php5.c>
/etc/apache2/mods-enabled/php5.conf: AddType application/x-httpd-php .php .phtml .php3
/etc/apache2/mods-enabled/php5.conf: AddType application/x-httpd-php-source .phps
/etc/apache2/mods-enabled/dir.conf: DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
/etc/apache2/mods-enabled/php5.load:LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
/etc/apache2/mods-available/php5.conf:<IfModule mod_php5.c>
/etc/apache2/mods-available/php5.conf: AddType application/x-httpd-php .php .phtml .php3
/etc/apache2/mods-available/php5.conf: AddType application/x-httpd-php-source .phps
/etc/apache2/mods-available/dir.conf: DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
/etc/apache2/mods-available/php5.load:LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
$z = str_replace( "\\" , "/" , $_SERVER["SCRIPT_FILENAME"] ); # Root Pfade echo substr( $z , 0 , strrpos( $z , "/" ) ) . "/"; // Gesamter Pfad // oder vieleicht echo getcwd();
<?
phpinfo();
?>