Etant intéressé par le rôle de serveur pour mon Linux, j'ai essayé d'installer <acronym title="Linux Apache MySQL PHP">LAMP</acronym>P.
Le problème est qu'il semble qu'un autre service FTP et MySQL soit déjà lancé, comme en témoigne la console, lors du lancement de LAMPP :
diti@Diti:~$ sudo lampp start
Password:
Starting XAMPP for Linux 1.5...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Another MySQL daemon is already running.
XAMPP: Another FTP daemon is already running.
XAMPP for Linux started.
En clair, quelqu'un saurait-il comment désactiver/supprimer l'ancien programme (ou paquet) ?
Je ne sais même pas lequel c'est...
lol mais pourquoi t'a installé xampp, en fait le problème c'est que tu as les service mysql et ftp qui sont déjà lancé avant que tu lance xampp, pour les désactiver
soit tu va dans administration >> service et tu décoche les deux services concerné
soit tu fait /etc/init.d/mysql ou mysqld stop
et pareil pour ton serveur ftp
puis après tu lance xampp
mais perso je te conseil de désinstallé xampp et d'installé simplement apache, mysql, php, phpmyadmin (et tout les modules apache que tu voudra) c'est beaucoup plus simple
C'est bon, j'ai installé LAMP avec des paquets (c'est tout en indépendant), mais je tape http://localhost/ et impossible d'afficher la page, pourquoi ?
J'ai bien un fichier index dans /var/www, j'ai mis en CHMOD 605...
essaie de taper /etc/init.d/apache restart ou start
et regarde se qu'il te dit
et essaie l'adresse http://127.0.0.1/ (mais à mon avis ça ne changera rien au problème, normalement si apache est lancé il devrait afficher la page par défaut..
sinon moi j'ai déplacé mon www dans mon home lol (mais bon je l'utilise pour du développement local)
bon je pense que je vais te monter mes fichier de configuration apache peut-être que cela va t'aider
tout ces fichier se trouve dans /etc/apache2/
http.conf
# This is here for backwards compatability reasons and to support # installing 3rd party modules directly via apxs2, rather than # through the /etc/apache2/mods-{available,enabled} mechanism. # #LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
apache2.conf
# Based upon the NCSA server configuration files originally by Rob McCool. # Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net> # and also by Thom May <thom@debian.org>.
# 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 <URL:http://www.apache.org/docs/mod/core.html#lockfile>); # you will save yourself a lot of trouble.
ServerRoot"/etc/apache2"
# The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename.
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.
Timeout300
# KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate.
KeepAliveOn
# 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.
MaxKeepAliveRequests100
# KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection.
# 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
<IfModule prefork.c> StartServers5 MinSpareServers5 MaxSpareServers10 MaxClients20 MaxRequestsPerChild0
</IfModule>
# pthread MPM # StartServers ......... initial number of server processes to start # MaxClients ........... maximum number of server processes allowed to start # 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
<IfModule worker.c> StartServers2 MaxClients150
MinSpareThreads 25
MaxSpareThreads 75 ThreadsPerChild25 MaxRequestsPerChild0
</IfModule>
# perchild MPM # NumServers ........... constant number of server processes # StartThreads ......... initial number of worker threads in each server process # MinSpareThreads ...... minimum number of worker threads which are kept spare # MaxSpareThreads ...... maximum number of worker threads which are kept spare # MaxThreadsPerChild ... maximum number of worker threads in each server process # MaxRequestsPerChild .. maximum number of connections per server process (then it dies)
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20 MaxRequestsPerChild0
AcceptMutex fcntl
</IfModule>
User www-data Group www-data
# 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
# Global error log. ErrorLog /var/log/apache2/error.log
# 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
# Include generic snippets of statements Include /etc/apache2/conf.d/[^.#]*
#Let's have some Icons, shall we? Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons"> Options Indexes MultiViews AllowOverrideNone Orderallow,deny Allowfromall
</Directory>
# Set up the default error docs. # # 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_<error>.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_<error>.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/local/apache2/error/include/ files and # copying them to /your/include/path/, even on a per-VirtualHost basis. #
<IfModule mod_negotiation.c>
<IfModule mod_include.c> Alias /error/ "/usr/share/apache2/error/"
<Directory "/usr/share/apache2/error"> AllowOverrideNone Options IncludesNoExec
AddOutputFilter Includes html AddHandler type-map var Orderallow,deny Allowfromall LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
# # The following directive disables redirects on non-GET requests for # a directory that does not include the trailing slash. This fixes a # problem with Microsoft WebFolders which does not appropriately handle # redirects for folders with DAV methods. #
BrowserMatch"Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch"^WebDrive" redirect-carefully BrowserMatch"^gnome-vfs" redirect-carefully BrowserMatch"^WebDAVFS/1.[012]" redirect-carefully
# Allow server status reports, with the URL of http://servername/server-status # Change the ".your_domain.com" to match your domain to enable. # #<Location /server-status> # SetHandler server-status # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location>
# Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".your_domain.com" to match your domain to enable. # #<Location /server-info> # SetHandler server-info # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location>
# Include the virtual host configurations: Include /etc/apache2/sites-enabled/[^.#]*
DocumentRoot /home/mythrys/www/
<Directory /> OptionsFollowSymLinks AllowOverrideNone
</Directory>
<Directory /home/mythrys/www/> Options Indexes FollowSymLinks MultiViews AllowOverrideNone Orderallow,deny allowfromall # Uncomment this directive is you want to see apache2's # default start page (in /apache2-default) when you go to / #RedirectMatch ^/$ /apache2-default/
</Directory>
Une proposition de téléchargement de fichier (pas d'exécution, en fait) quand je fais http://localhost/phpinfo.php
Tes fichiers étaient presque identiques au miens, à une chose près : mon DocumentRoot était à /var/www pour la ligne la plus haute et /var/www/ pour la ligne plus en bas.
si il te propose le téléchargement du fichier phpinfo, c'est déjà bon signe => apache fonctionne bien
mais pas ton modules php
alors 1) vérifie bien que les paquets php5 et libapache2-mod-php5 sont installé
et ensuite dans le dossier /etc/apache2/mods-avaible tu ai deux fichiers
En clair, quand je recharge Apache, ça recharge mais c'est le 1.3, quant je recharge Apache 2, ça marche pas, je suis obliger de redémarrer pour que ça prenne effet...
PS : Saurais-tu pourquoi je me retrouve avec rien quand je tape http://localhost/validateur/ ? Avec ce tuto
C'est parce que je l'ai intégralement traduit et je voulais voir mon travail
Merci d'avance.
EDIT : Si ça ne fonctionne pas, c'est parce qu'un lien vers le Validateur est fait dans Apache 2, mais les pages m'indiquent :
je pense qu'après tout tes tuto c'est un peu le bordel, figure toi que tu as deux apache sur ton ubuntu et donc il faut que tu en désinstalle un parce que sinon c'est le bordel, moi tout ce que je t'ai dit concerne apache2 donc je te conseillerais de désinstaller apache 1.3 de tout vérifier
ps: restart est plus efficasse que reload et en cas de prob
fait stop puis start
lol utilise synaptic espèce de geek (non sérieux comme ca tu vois la version exacte du paquet que tu désinstall)
[Linux (ubuntu)]Désinstaller Apache et Cie
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
Ancien validateur du SdZ.
Ancien validateur du SdZ.
Ancien validateur du SdZ.
Ancien validateur du SdZ.
Ancien validateur du SdZ.
Ancien validateur du SdZ.
Ancien validateur du SdZ.
Ancien validateur du SdZ.