Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1542 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  problème de serveur php sous debian 3.0

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

problème de serveur php sous debian 3.0

n°629275
mmuzzik
Posté le 31-01-2005 à 17:50:14  profilanswer
 

bonjour,
j'ai deja poster consernant la creation d'une machine serveur imap sur un vieux pc
suite aux différent conseil je suis passé a debian 3.0
jusqu'ici tout est bon
control ssh
serveur imap/pop
 
le tout fonctionne a merveille
j'ai voulu alors ajouter une partie web mail
 
donc j'ai fais
apt-get install mysql
apt-get install apache
apt-get install php4
apt-get install horde
apt-get install imp
 
et .....en fait j'arrive pas a faire fonctionner correctement le serveur php
quand j'utilise l'alias pour passé sur imp (la 1er page de apache fonctionne correctement)
bah aulieu d'interpréter le code php il me fait télécharger la page php......
au secours
 
si vous voulez je peux mettre dans le prochaine post le httpd.conf??
 
merci


Message édité par mmuzzik le 31-01-2005 à 17:52:56
mood
Publicité
Posté le 31-01-2005 à 17:50:14  profilanswer
 

n°629358
Tomate
Posté le 31-01-2005 à 20:07:56  profilanswer
 

t'as décommenté dans apache les lignes où il y a .php ?


---------------
:: Light is Right ::
n°629359
Tomate
Posté le 31-01-2005 à 20:08:02  profilanswer
 

les addtype je crois


---------------
:: Light is Right ::
n°629367
mmuzzik
Posté le 31-01-2005 à 20:43:50  profilanswer
 

oui j'ai bien dans le httpd.conf  
les addtype ok
 
voila le fichier de conf ss les commentaires
 

Citation :


ServerName mail.muzik.serveftp.org
ServerType standalone
ServerRoot /etc/apache
LockFile /var/lock/apache.lock
PidFile /var/run/apache.pid
ScoreBoardFile /var/run/apache.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 100
#
# Please keep this LoadModule: line here, it is needed for installation.
# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
# LoadModule env_module /usr/lib/apache/1.3/mod_env.so
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
# LoadModule info_module /usr/lib/apache/1.3/mod_info.so
# LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
# LoadModule asis_module /usr/lib/apache/1.3/mod_asis.so
# LoadModule imap_module /usr/lib/apache/1.3/mod_imap.so
# LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
# LoadModule speling_module /usr/lib/apache/1.3/mod_speling.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
# LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
# LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
# LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so
# LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so
# LoadModule digest_module /usr/lib/apache/1.3/mod_digest.so
# LoadModule cern_meta_module /usr/lib/apache/1.3/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
# LoadModule headers_module /usr/lib/apache/1.3/mod_headers.so
# LoadModule usertrack_module /usr/lib/apache/1.3/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
# LoadModule sys_auth_module /usr/lib/apache/1.3/mod_auth_sys.so
# LoadModule put_module /usr/lib/apache/1.3/mod_put.so
# LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
# LoadModule allowdev_module /usr/lib/apache/1.3/mod_allowdev.so
# LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
# LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so
 
ExtendedStatus On
 
Port 80
 
User www-data
Group www-data
ServerAdmin webmaster@muzik.myftp.org
ServerName mail.muzik.myftp.org
DocumentRoot /var/www
<Directory />
    Options SymLinksIfOwnerMatch
    AllowOverride None
</Directory>
<Directory /var/www>
    Options Indexes Includes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
 
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>
<IfModule mod_dir.c>
    DirectoryIndex index.html index.php3 index.php index.htm index.shtml index.cgi
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
UseCanonicalName On
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile share/magic
</IfModule>
HostnameLookups Off
ErrorLog /var/log/apache/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v" full
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %P %T" debug
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
CustomLog /var/log/apache/access.log combined
ServerSignature On
Alias /icons/ /usr/share/apache/icons/
 
<Directory /usr/share/apache/icons>
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
<IfModule mod_autoindex.c>
    IndexOptions FancyIndexing NameWidth=*
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
 
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
 
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/deb.gif .deb
 
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    DefaultIcon /icons/unknown.gif
    ReadmeName README
    HeaderName HEADER
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
 
</IfModule>
<IfModule mod_mime.c>
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .se
    AddLanguage cz .cz
    <IfModule mod_negotiation.c>
        LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv
    </IfModule>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php .php
    AddType application/x-tar .tgz
    AddType image/bmp .bmp
    AddType text/x-hdml .hdml
    AddHandler cgi-script .cgi .sh .pl
</IfModule>
 
AddDefaultCharset on
ErrorDocument 404 /404.php
<IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
 
 
# If the perl module is installed, this will be enabled.
<IfModule mod_perl.c>
  Alias /perl/ /var/www/perl/
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
  </Location>
</IfModule>
Alias /doc/ /usr/share/doc/
 
<Location /doc>
  order deny,allow
  deny from all
  allow from 127.0.0.0/255.0.0.0
  Options Indexes FollowSymLinks MultiViews
</Location>
 
<IfModule mod_proxy.c>
</IfModule>
 
Include /etc/horde/apache.conf
Include /etc/imp/apache.conf
Include /etc/phpmyadmin/apache.conf


 
 
au secours!!!! :bounce:  :bounce:  :bounce:  :bounce: :hello:  :hello:  :hello:  :pt1cable:  :pt1cable:


Message édité par mmuzzik le 31-01-2005 à 20:57:45
n°629374
arghbis
salops de dauphins
Posté le 31-01-2005 à 21:09:29  profilanswer
 

sous deb, pour activer un module installé, faut utiliser apache-modconf

n°629375
Pizz
Vive les Tomates !
Posté le 31-01-2005 à 21:12:24  profilanswer
 

à partir d'une install minimale :
 

apt-get install apache mysql-server php4 phpmyadmin


 
 
et ça fonctionne correctement  :jap:


---------------
C'est quand on a le nez dans la tomate qu'on voit mieux la tomate !
n°629412
mmuzzik
Posté le 31-01-2005 à 22:32:44  profilanswer
 

arghbis a écrit :

sous deb, pour activer un module installé, faut utiliser apache-modconf


 
hum j'ai pas apache-modconf .....
comment je l'install...?
 
(normalement php est activer car quand je fait un serveur status(apachectl status) j'ai
apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2

n°629430
Tomate
Posté le 31-01-2005 à 23:15:45  profilanswer
 

je crois qu'il y a un apache-php ou un truc du genres


---------------
:: Light is Right ::
n°629433
Tomate
Posté le 31-01-2005 à 23:16:50  profilanswer
 

tomate@gate:~$ COLUMNS=200 dpkg -l | grep apache
ii  apache                                       1.3.33-3                                     versatile, high-performance HTTP server
ii  apache-common                                1.3.33-3                                     support files for all Apache webservers
ii  apache-ssl                                   1.3.33-3                                     versatile, high-performance HTTP server with SSL support
ii  apache-utils                                 1.3.33-3                                     utility programs for webservers
ii  libapache-mod-gzip                           1.3.26.1a-8                                  HTTP compression module for Apache
ii  libapache-mod-php4                           4.3.10-2                                     server-side, HTML-embedded scripting language (apache 1.3 module)


 
;)


---------------
:: Light is Right ::
n°629466
mmuzzik
Posté le 01-02-2005 à 00:35:51  profilanswer
 

quand je fais la mm commande
 
voila ce que j'obtient......
 
ii  apache                                       1.3.26-0woody6                               Versatile, high-performance HTTP server
ii  apache-common                                1.3.26-0woody6                               Support files for all Apache webservers
ii  libapache-mod-auth-mysql                     3.2-1                                        Apache module for MySQL authentication
 
et quand je fais apt-get install libapache-mod-php4...bah il le trouve pas....:'(:'(
 
je suis une kiche ca me soul....;:(

mood
Publicité
Posté le 01-02-2005 à 00:35:51  profilanswer
 

n°629480
THRAK
- THR4K -
Posté le 01-02-2005 à 02:12:13  profilanswer
 

mmuzzik a écrit :


et quand je fais apt-get install libapache-mod-php4...bah il le trouve pas....:'(:'(
 
je suis une kiche ca me soul....;:(


Non tu n'es pas une kiche  :D  
 
Tu es sous Debian Woody (stable) or le paquet libapache-mod-php4 n'est disponible que sous Sarge (testing) ou Sid (unstable), il est donc normal qu'il ne trouve pas ce paquet.


---------------
THRAK (def.) : 1) A sudden and precise impact moving from intention, direction and commitment, in service of an aim. 2) 117 guitars almost striking the same chord simultaneously.
n°629482
mmuzzik
Posté le 01-02-2005 à 02:33:21  profilanswer
 

ok
le probleme était avec les type le type php3 n'était pas reconnu il a fallu que je mette le type php3 avec x-httpd-php et non php3 avec x-httpd-php3


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  problème de serveur php sous debian 3.0

 

Sujets relatifs
Installation d'une distribution pour un serveur.[samba] partage des rep ok, pour en faire un domaine NT => problème
Problème de Lecture des midi sous Linux[Debian] Netgear ma401
souris usb debianproblème après windaube
[Debian] problème avec XFS (serveur de fontes)probleme serveur graphique sous Debian 3.0 Woody
Debian Woody : problème au lancement du serveur X[DEBIAN] Problème avec le serveur XFREE
Plus de sujets relatifs à : problème de serveur php sous debian 3.0


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR