Question:
How do i install apache and php on linux?
Justwannaknow
2007-04-18 16:59:46 UTC
I started using linux and want to build a web server but i dont know how? where can i learn this.. using slackware
Four answers:
anonymous
2007-04-18 17:07:02 UTC
Compiling and installing apache and php together can be pretty easy.



Here is a turorial on how to setting it up from source code.



http://techblog.bluechiphosting.com/linux-tips-tricks/compile-apache-php-with-suhosin-patch-mod_perl





Hope it helps!







Blue Chip Hosting Staff,

http://www.bluechiphosting.com
anonymous
2007-04-18 17:01:18 UTC
Slackware comes with Apache and PHP built in. If you selected the default install, you'll already have Apache and PHP. You'll have MySQL too. If not, then just install the packages using "installpkg"



http://www.slackware.com/config/packages.php
anonymous
2016-12-04 11:53:00 UTC
David is amazingly proper. stay clean of source. between the great things about ubuntu is the equipment administration things you are able to also favor a sudo in the front of the apt-get on condition that via default ubuntu would not encourage you to be root. sudo apt-get deploy even as it asks you for a password, enter you undemanding password this can provide the 'apt-get' command root privileges to do the setting up. the different element about apt-get is that it will config apache and Hypertext Preprocessor (and in case you position in it mysql) for you so the servers start up up proper away.
Nick M
2007-04-18 17:14:49 UTC
If you're new to linux, you may want to start off with Debian instead of Slackware. I've found it to be a good balance of power and ease of use, letting you learn CLI linux without having a learning curve so steep you need a series of books to figure out how to install your wireless network card.



If you choose to go that route, the commands for installing apache and PHP on debian are as follows:



# apt-get install apache2

# apt-get install PHP5

# apt-get install libapache2-mod-php5 libapache2-mod-perl2 php5 php5-cli php5-common php5-curl php5-dev php5-domxml php5-gd php5-imap php5-ldap php5-mcal php5-mhash php5-mysql php5-odbc php5-pear php5-xslt

# /etc/init.d/apache2 start



Note that each hash is a new command. Type that long one out on one line..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...