Jump to content
shamcs89

Apacher Server

Recommended Posts

hello kawan2...

"OS - Redhat Server 5.3"

saya nak tanye satu perkara nie...saya ade satu server menggunakan OS macam kat atas ..

soalannye..saya ade menginstall liferay 5.2.3 dalam server tu..dan ianya berjalan lancar menggunakan port 80 ..so sekarang nie..ade x solution macam mana nak upkan lagi satu web site dengan port 80 jugak.

secara logic mmg x boleh..tapi sy ade baca solution untuk perkara nie dengan menggunakan virtual host..so macam mane nak buat virtual host tu dalam red hat nie..
nak kene install apache server lagi satu dan upkan website baru guna port y lain atau dalam liferay tu dah boleh set kan..

untuk pengetahuan umum..liferay tu dah ade apache server nye sendiri ..tapi ak x tau macam mane nak settup kat situ....

so harap2,,,otai2 leh membantu..sekian...

Share this post


Link to post
Share on other sites
[quote name='shamcs89' date='13 July 2010 - 10:50 AM' timestamp='1278989433' post='1041642']
soalannye..saya ade menginstall liferay 5.2.3 dalam server tu..dan ianya berjalan lancar menggunakan port 80 ..so sekarang nie..ade x solution macam mana nak upkan lagi satu web site dengan port 80 jugak.

secara logic mmg x boleh..tapi sy ade baca solution untuk perkara nie dengan menggunakan virtual host..so macam mane nak buat virtual host tu dalam red hat nie..
[/quote]
mungkin ni dapat membantu: http://wiki.centos.org/TipsAndTricks/ApacheVhostDir

buat tiap web app dalam satu folder berasingan, nanti kat setting vhost point la kt folder sepatutnya

Share this post


Link to post
Share on other sites
[quote name='umarzuki' date='13 July 2010 - 12:33 PM' timestamp='1278995580' post='1041667']
mungkin ni dapat membantu: http://wiki.centos.org/TipsAndTricks/ApacheVhostDir

buat tiap web app dalam satu folder berasingan, nanti kat setting vhost point la kt folder sepatutnya
[/quote]

virtual host mmg solutionnye..tapi macam mane nak setup dalam product liferay yang dah build in apache server..

untuk pengetahuan..liferay nie open source macam joomla...macam mane nk slesaikan tu...sy dah cuba install apache baru dan runkan new website..tapi problem..port 80 x leh pakai sebab liferay tu dah pakai dulu...kne pakai port lain..dan x bagus untuk taip url kat browser nnti..macam mane tu....??

Share this post


Link to post
Share on other sites
[quote name='shamcs89' date='13 July 2010 - 05:58 PM' timestamp='1279015110' post='1041719']
virtual host mmg solutionnye..tapi macam mane nak setup dalam product liferay yang dah build in apache server..

untuk pengetahuan..liferay nie open source macam joomla...macam mane nk slesaikan tu...sy dah cuba install apache baru dan runkan new website..tapi problem..port 80 x leh pakai sebab liferay tu dah pakai dulu...kne pakai port lain..dan x bagus untuk taip url kat browser nnti..macam mane tu....??
[/quote]
TOLONG ulangkaji pasal Web Server dan Apache. Tekankan pada bahagian VirtualHost. Baca dokumen rasmi Apache.

Share this post


Link to post
Share on other sites
[quote name='umarzuki' date='13 July 2010 - 09:38 PM' timestamp='1279028291' post='1041744']
TOLONG ulangkaji pasal Web Server dan Apache. Tekankan pada bahagian VirtualHost. Baca dokumen rasmi Apache.
[/quote]

adey disuruhnye ulang kaji pulak(baik x yah tnye kat forum)...terima kasih la bro ..menyusahkan je..
sbnarnye dah ulang kaji pn...dan kbnyakan akan berkata macam nie..

"set kan virtual host macam nie"
<VirtualHost x.x.x.x >
ServerAdmin [email protected]
DocumentRoot /var/www/html/example.com/public_html/
ServerName example.com
ServerAlias www.example.com
ErrorLog logs/example.com-error_log
TransferLog logs/example.com-access_log
AccessFileName .htaccess
</VirtualHost>


bla ..bla....enablekan virtual host....bla bla...

mende nie senang je nak buat .. instruction kat internet melambak ..

[quote]tapi macam mane nak setup dalam product liferay yang dah build in apache server[/quote]

sebenarnyye nie la masalah ku...semua file yang nak diote supaye leh set virtual host tu x de dan x jumpa dalam liferay nye folder...dah try cari kat catalina pn x jmpe...dalam file server.xml(dalam folder liferay) ade tulis pasal virtual host ...tapi setting nye x jumpa macam mane nak buatt.... tah mane die simpan,,,problem tol..

x pe la bro..tq kerana reply...sekian,, penyelesaian x kesampaian...

Share this post


Link to post
Share on other sites
Salam,

Boleh rujuk wiki Liferay: http://www.liferay.com/community/wiki/-/wiki/Main/Virtual+Hosting+%28Communities%29

Share this post


Link to post
Share on other sites
[quote name='BasicCX' date='14 July 2010 - 09:35 AM' timestamp='1279071356' post='1041795']
Salam,

Boleh rujuk wiki Liferay: http://www.liferay.com/community/wiki/-/wiki/Main/Virtual+Hosting+%28Communities%29
[/quote]

Thanks sebab reply...emm...link dari liferay wiki tu sy dah try..dan x berjaya ...wiki could be correct or could be wrong...so wiki tu hampeh tol..huhu...interface y die bg pn x same macam liferay 5.2.3 free punye..so sy suspect gambar2 y dia bg tu untuk liferay Enterprice Edition(EE)...

[quote]cuba tanya / google kat liferay forum :D sure da pernah ada orang buat[/quote]

masih bertnye la nie..smpai dah tnye ke forum2..adey ..ssh tol nak dapatkan documentation die...

::TAK DE KE SESAPE ADE PENGALAMAN DALAM LIFERAY NIE::....wuwu... Edited by shamcs89

Share this post


Link to post
Share on other sites
else ko boleh guna apache proxy

[code]
<Location /liferay>
ProxyPass http://192.168.1.1:65355/
Order allow,deny
Allow from all
</Location>
[/code]

e.g : http://localhost/liferay

ataupun ko buat rules kat firewall port forward ke apache liferay

2 different server guna port sama mmg tak boleh, salah satu kena la beralah :P kita buat dia hehe..

Share this post


Link to post
Share on other sites
[quote name='FryShadow' date='14 July 2010 - 10:39 AM' timestamp='1279075173' post='1041801']
else ko boleh guna apache proxy

[code]
<Location /liferay>
ProxyPass http://192.168.1.1:65355/
Order allow,deny
Allow from all
</Location>
[/code]

e.g : http://localhost/liferay

ataupun ko buat rules kat firewall port forward ke apache liferay

2 different server guna port sama mmg tak boleh, salah satu kena la beralah :P kita buat dia hehe..
[/quote]


terima kasih atas jawapan y diberikan....situasi sy sebenarnye skrang nie amcam nie,,,

"server liferay dah up dan memakai port 80 dan berjalan lancar...so mmg x boleh nak guna port tu ...tujuan sy nak upkan lagi satu web site ...yang ni y masalah ...dah cuba buat virtual host kat liferay tu mengikut contoh mcm2 website ..yang paling latest ikut website nie..[url="http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html"]ApacheTomcat6.0[/url] ...pon x berjaya .."

persoalannye...ade x application lain macam IIS(dalam window) untuk website baru tu dalam Red Hat ...kalau x de..alamatnye..bye2 la redhat..install window la pulak....

sy dah gunakan Apache 2.2.15 dan diinstall menggunakan command rpm dalam redhat dan menggunakan port 8281 ..tapi mendapat masalah..hanye pc sy dapat view content untuk website baru tu ....pc lain akan kluar error "page cannot display" ...

apekah maksud error ni ek..??Harap dapat membantu ...

Thanks

Share this post


Link to post
Share on other sites
ok, yang ko ikut tu, dapat x bukak admin page tomcat?
by right, URL dia patut lebih kurang macam

http://localhost:8080/ren/
http://localhost:8080/stimpy/

as for the redhat, mungkin ko tak open port ke PC ko :D so of course orang lain dapat error

Share this post


Link to post
Share on other sites
[quote name='FryShadow' date='14 July 2010 - 01:28 PM' timestamp='1279085315' post='1041828']
pon tak berjaya tu disebabkan ape ? ada ape2 log file,error yang boleh dirujuk :D
[/quote]

x ade error..sebab...main server adalah apachetomcat ..yang runkan liferay punya portal ...

setting tu untuk diset kat apache server y baru diinstall..mmg x berjaya la...so far smua macam ok ...cuma..masalah sekarang..web site baru dah dapat diview melalui pc saya je...lain pc hampeh..x dapat...sebab ape ek..??

log error kluar nie..

[code][Tue Jul 13 16:38:31 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:40:52 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:40:54 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:41:21 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:30:13 2010] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Tue Jul 13 16:30:13 2010] [alert] Child 29031 returned a Fatal error... Apache is exiting![/code]


kalau access log ade nie..
[code]
172.19.37.205 - - [13/Jul/2010:15:52:51 +0800] "GET /Common%20Shopping%20List%20JPN.htm HTTP/1.1" 200 10052 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
172.19.37.205 - - [13/Jul/2010:15:52:52 +0800] "GET /Common%20Shopping%20List%20JPN_files/sheet001.htm HTTP/1.1" 200 11626 "http://itekgembo2.heitech.com.my:8080/Common%20Shopping%20List%20JPN.htm" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
172.19.37.205 - - [13/Jul/2010:15:52:52 +0800] "GET /Common%20Shopping%20List%20JPN_files/stylesheet.css HTTP/1.1" 200 2613 "http://itekgembo2.heitech.com.my:8080/Common%20Shopping%20List%20JPN_files/sheet001.htm" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
172.19.37.205 - - [13/Jul/2010:15:52:53 +0800] "GET /favicon.ico HTTP/1.1" 404 302 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
172.19.37.205 - - [13/Jul/2010:15:53:25 +0800] "GET /Common%20Shopping%20List%20BHEUU.htm HTTP/1.1" 200 10070 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
172.19.37.205 - - [13/Jul/2010:15:53:25 +0800] "GET /Common%20Shopping%20List%20BHEUU_files/sheet001.htm HTTP/1.1" 200 10025 "http://itekgembo2.heitech.com.my:8080/Common%20Shopping%20List%20BHEUU.htm" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
172.19.37.205 - - [13/Jul/2010:15:53:26 +0800] "GET /Common%20Shopping%20List%20BHEUU_files/stylesheet.css HTTP/1.1" 200 2247 "http://itekgembo2.heitech.com.my:8080/Common%20Shopping%20List%20BHEUU_files/sheet001.htm" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)[/code]


*tarikh tu mmg lambat sehari..server tu salah set time.....

Share this post


Link to post
Share on other sites
[quote name='unexistance' date='14 July 2010 - 02:25 PM' timestamp='1279088734' post='1041835']
ok, yang ko ikut tu, dapat x bukak admin page tomcat?
by right, URL dia patut lebih kurang macam

http://localhost:8080/ren/
http://localhost:8080/stimpy/

as for the redhat, mungkin ko tak open port ke PC ko :D so of course orang lain dapat error
[/quote]
SELinux ??? better off dari awal benda alah ni.. hehehe...

[quote name='shamcs89' date='14 July 2010 - 02:35 PM' timestamp='1279089302' post='1041839']
[code][Tue Jul 13 16:38:31 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:40:52 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:40:54 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:41:21 2010] [error] [client 172.19.37.205] Directory index forbidden by Options directive: /var/www/html/Web Site/
[Tue Jul 13 16:30:13 2010] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jul 13 16:30:13 2010] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Tue Jul 13 16:30:13 2010] [alert] Child 29031 returned a Fatal error... Apache is exiting![/code]

[/quote]

check balik syntax untuk option kat <Directory> untuk Web Site
last skali tu dia exit, fatal error.. something wrong la tue :)

Share this post


Link to post
Share on other sites
huhu..ak dah x tau ape y ak allow kan...bro tolong tengokkan..ak dah set semua allow from all...tang mane error pn ak dah x tau..huhu..

[code]
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html/Web Site"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html/Web Site">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>
[/code]


rase macam nak uninstall semua dan install balik... :wacko:

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...

×
×
  • Create New...