Jump to content
Sign in to follow this  
sutaaanisu

Apache Aku Ader Error Masa Nk Buat Service Start

Recommended Posts

aku dh cuba dua cara utk buat service start apache nie..tp dua2 ada error..aku tktau menda aper yg error tu... ;)

"ni cara pertama aku cuba run apache"

[root@devcorptech bin]# service httpd start

Starting httpd: Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:

The port number "http://localhost" is outside the appropriate range (i.e., 1..65535).

[FAILED]

"ni cara kedua plak aku try..dua2 ader error"

[root@devcorptech bin]# apachectl start

Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:

The port number "http://localhost" is outside the appropriate range (i.e., 1..65535).

Edited by sutaaanisu

Share this post


Link to post
Share on other sites

eemmm.....kalau nk cuba install balik apache tue..camna nk uninstall balik yg aku dh install tu....ke nk main overwrite je balik . aku buat dlm terminal jer..sbb aku remote server aku tu....lgpun aku taktau camna nk install pakai gui..hehee...aha....camner nk buat yer..ko ader idea tk mohd zenal :D...aku pun baru lagi dlm linux nie...tp aku nk blajaq...bila part tatau tu terpaksala aku tnayer yg teror....sorry

Edited by sutaaanisu

Share this post


Link to post
Share on other sites

eemmm.....kalau nk cuba install balik apache tue..camna nk uninstall balik yg aku dh install tu....ke nk main overwrite je balik . aku buat dlm terminal jer..sbb aku remote server aku tu....lgpun aku taktau camna nk install pakai gui..hehee...aha....camner nk buat yer..ko ader idea tk mohd zenal :D...aku pun baru lagi dlm linux nie...tp aku nk blajaq...bila part tatau tu terpaksala aku tnayer yg teror....sorry

wah ini sulah dasat tuh..tak reti install guna GUI tapi reti lak guna CLI...hebat! (ikhlas ni..)

Maybe maksud MohdZainal tu.. reinstall je balik Linux yang guna tu..

Share this post


Link to post
Share on other sites

[root@devcorptech bin]# service httpd start

Starting httpd: Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:

The port number "http://localhost"'>http://localhost" is outside the appropriate range (i.e., 1..65535).

[FAILED]

"ni cara kedua plak aku try..dua2 ader error"

[root@devcorptech bin]# apachectl start

Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:

The port number "http://localhost"'>http://localhost" is outside the appropriate range (i.e., 1..65535).

buka fail /etc/httpd/conf/httpd.conf tu, pergi baris ke 1024, tukar http://localhost tu ke 80. save & restart apache...

Share this post


Link to post
Share on other sites

buka fail /etc/httpd/conf/httpd.conf tu, pergi baris ke 1024, tukar http://localhost tu ke 80. save & restart apache...

karam aku dh cuba buat cara yg ko suruh tu...error nie plak yg kluar, aku dh ubah kt baris 1024

"ServerName http://localhost' jadikan "Servername 80"....betul ker salah cara aku buat tu.

nie error yg kuar selepas setting spt en karam cakapkan..:P

root@devcorptech bin]# apachectl start

httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

satu lagi camner nk 'remove purge' tu...hehehe..sori arr..aku banyak bertanya sbb aku tktau...

alaa...cekgu reza...pasal nk reinstall linux Centos tu...kalau aku reinstall aku kena setting balik tk aper2 yg aku dh buat kt seber aku tue....ma kasih membantu..

Edited by sutaaanisu

Share this post


Link to post
Share on other sites

ko dah letak address ko ke belum kat dalam tu......

kan dia ada dua tempat satu kena tukar tu algi satu letak addres ko....

ex:192.168.0.1------------------>ni untuk localhost

Share this post


Link to post
Share on other sites

ko dah letak address ko ke belum kat dalam tu......

kan dia ada dua tempat satu kena tukar tu algi satu letak addres ko....

ex:192.168.0.1------------------>ni untuk localhost

# NOTE: NameVirtualHost cannot be used without a port specifier

# (e.g. :80) if mod_ssl is being used, due to the nature of the

# SSL protocol.

#

#

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for requests without a known

# server name.

#

#<VirtualHost *:80>

# ServerAdmin [email protected]

# DocumentRoot /www/docs/dummy-host.example.com

# ServerName dummy-host.example.com

# ErrorLog logs/dummy-host.example.com-error_log

# CustomLog logs/dummy-host.example.com-access_log common

#</VirtualHost>

<VirtualHost *>

ServerName 80 <<<------------------aku tukar tu jer asalnyer camnie "Servername http://localhost"..

</VirtualHost> maksud ko tukar kt ner lagi satu tue(copy maner patut jer) aku tk

paham ...jgn mare..tlg yer ajarkan...:D

Share this post


Link to post
Share on other sites

ko dah letak address ko ke belum kat dalam tu......

kan dia ada dua tempat satu kena tukar tu algi satu letak addres ko....

ex:192.168.0.1------------------>ni untuk localhost

192.168.0.1 tak semestinya utk localhost. Loopback address utk localhost secara default ialah 127.0.0.1

betul ker jugak baris 1024 tu ServerName... tu?

Kalau ServerName tu tak payah letak "http://" kat depan...

Share this post


Link to post
Share on other sites

Susah-susah, ko paste je la ko punye htttpd.conf tu. Kitorang tengok mana yang tak betul. Kalo dah tak boleh, ko guna yum la untuk remove dia. Aku penah guna yum untuk remove httpd tu pastu aku install balik. Aku guna fedora.

Share this post


Link to post
Share on other sites

# NOTE: NameVirtualHost cannot be used without a port specifier

# (e.g. :80) if mod_ssl is being used, due to the nature of the

# SSL protocol.

#

#

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for requests without a known

# server name.

#

#<VirtualHost *:80>

# ServerAdmin [email protected]

# DocumentRoot /www/docs/dummy-host.example.com

# ServerName dummy-host.example.com

# ErrorLog logs/dummy-host.example.com-error_log

# CustomLog logs/dummy-host.example.com-access_log common

#</VirtualHost>

<VirtualHost *>

ServerName 80 <<<------------------aku tukar tu jer asalnyer camnie "Servername http://localhost"..

</VirtualHost> maksud ko tukar kt ner lagi satu tue(copy maner patut jer) aku tk

paham ...jgn mare..tlg yer ajarkan...:D

Ada buat/guna virtual host/domain ke? kalo takde remark kan je semua line (letak # kat depan), kalau ada virtual host, guna FQDN yang sebenar.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...