Jump to content
La fin ?! Elle est là ! ×
×
×
  • Create New...
  • 0

Impossible de make install


_DarkAngel62_
 Share

Question

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Pour désinstaller Apache22 ou Apache24 c'est comme ceci :

# cd /usr/ports/www/apache22 ou apache24
# make deinstall clean

 

Maintenant pour installer le serveur web Apache tu dois procéder comme ça, installations des ports.

# portsnap fetch extract

 

Mettre à jours les ports.

# portsnap fetch update

 

Installer Apache, ici je prend la version 22. Libre à toi de prendre la 24.

# cd /usr/ports/www/apache22
# make install
Laisse les informations par défaut.

 

Après avoir terminer l'installation tu ajoute apache au démarage

# ee /etc/rc.conf
Ajoute cette ligne à la fin :
# apache22_enable="YES"

 

Installer le PHP.

# cd /usr/ports/lang/php5
# make config (sélectionne apache et mysql)
# make install 

 

 

Installer les extensions.

# cd /usr/ports/lang/php5-extensions
# make config (sélectionne : pdo, pdo mysql, mysql, sockets et zlib)
# make install

 

Activer PHP dans Apache.

# cd /usr/local/etc/ ; cp php.ini-recommended php.ini
# ee /usr/local/etc/apache22/httpd.conf

Cherche "DirectoryIndex index.html", ensuite, ajoute "index.php", comme ceci "DirectoryIndex index.html, index.php.

 

Descend tout en bas et ajoute cette ligne :

AddType application/x-httpd-php .php

 

Pour Actualiser et allumer Apache.

# apachectl start
# apachectl restart
# apachectl stop
# apachectl start

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.