nginstal apche manual berformat .tar.gz

https://github.com/php/php-src/blob/master/INSTALLhttp://jensontaylor.blogspot.com/2010/09/manual-apache-httpd-22-installation-on.html
Manual Apache HTTPd 2.2 installation on Ubuntu Linux

1. get sources

 nb:
 pertama download dulu dari  http://archive.apache.org/dist/httpd/
kedua pindahkan ke komputer server melalui uplod ssh di directory /home/..
ketiga lanjut no.2
2. extract sources
tar xzfv httpd-2.2.16.tar.gz 

3. Configure various aspects of apache (you can choose where apache shall be installed and run from. These paths will be written and compiled into the binaries so this step is important).
more on this at: 

I don't want to change the default configurations so I just run:
./configure

nb:
 jika terjadi error disini bertuliskan
http://www.linuxquestions.org/questions/linux-distributions-5/no-acceptable-c-compiler-found-in-$path-i-can't-make-237970/page3.html

http://ubuntu-indonesia.com/forums/ubbthreads.php/topics/110416/Re_Help_Tidak_bisa_instal_file
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
 maka instal dulu gccny
$ apt-get install gcc

setelah itu ./configure    lagi ya jangan lupa klo udah lanjut bawah


4. To build apache:
make

5. To install(copy the files to the right places)
sudo make install

since I didn't configure the installation path, the default value (/usr/local/apache2) was used to install apache in.

6. Start the Apache server program

To test the server, first I go to the correct directory:
cd /usr/local/apache2/bin


then run the following command:
sudo ./apachectl -k start

7. Associate Apache webserver with a domain name
I get the following error:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

The reason for this error is that a domain name is not associated with this web server so to overcome this problem, I need to edit httpd.conf:
vi /usr/local/apache2/conf/httpd.conf

change the line 
#ServerName www.example.com:80

To something like (assuming you own the domain radep.com and it points at this machine):
ServerName radep.com:80

nb :
untuk keluar tekan esc lalu :w setelah itu :q

8. Restart server
then restart the server(assuming you are in /user/local/apache2/bin):
sudo ./apachectl -k restart

9. Test it from your browser
Now you can use your browser to visit radep.com
lynx radep.com

you should see the text "It works!" which is the text that is contained in the file /usr/local/apache2/htdocs/index.html
If you need to go deeper into this process check out:

or just ask me.

install php nya
http://unix.stackexchange.com/questions/45849/how-do-i-fix-broken-libxml2-dev-dependency-on-debian-using-apt

sudo apt-get purge -f libxml2-dev
sudo apt-get clean
sudo apt-get update
sudo apt-get install libxml2 libxml2-dev


perhatikan derectory nya ya...

https://www.google.com/search?q=kenapa+no+acceptable+C+compiler+found+in+%24PATH&oq=kenapa+no+acceptable+C+compiler+found+in+%24PATH&aqs=chrome..69i57.4903j0j8&sourceid=chrome&espv=2&es_sm=93&ie=UTF-8



https://www.google.com/search?q=kenapa+no+acceptable+C+compiler+found+in+%24PATH&oq=kenapa+no+acceptable+C+compiler+found+in+%24PATH&aqs=chrome..69i57.4903j0j8&sourceid=chrome&espv=2&es_sm=93&ie=UTF-8

http://musaamin.web.id/install-web-server-apache-mysql-php-phpmyadmin-di-ubuntu/
http://askubuntu.com/questions/191390/how-to-use-sudo-command-to-install-tar-gz
http://askubuntu.com/questions/25961/how-do-i-install-a-tar-gz-or-tar-bz2-file
http://askubuntu.com/questions/40779/how-do-i-install-a-deb-file-via-the-command-line

Subscribe to receive free email updates:

0 Response to "nginstal apche manual berformat .tar.gz"

Post a Comment