[Resolved] 404 not found

Status
Not open for further replies.

Mr_Parham

Well-Known Member
#1
Hi

I just installed Litespeed on one of my servers which currently run Apache, the server doesn't have any control panel, the installation was successful and I changed the default virtual host to point to the folder that I want, for some reason the webserver keep giving me 404 even though the file is there, here is the debug

Code:
Host: test.com:8088
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-GB,en-US;q=0.8,en;q=0.6,fa;q=0.4
Cookie: mage-translation-storage=%7B%7D; mage-translation-file-version=%7B%7D; mage-cache-storage=%7B%7D; mage-cache-storage-section-invalidation=%7B%7D; __atuvc=1%7C4%2C3%7C5%2C3%7C6; PHPSESSID=2koqi9iiecct0649f7mqilgts4; mage-cache-sessid=true; __zlcmid=elgB6Ji5DFRlpa; section_data_ids=%7B%22cart%22%3A1486593209%7D; LSWSWEBUI=cb730146728eba62ff2bc0aa42f71bda; lsws_uid=N2CXllu%2FEPQ%3D; lsws_pass=RP7RxlGTUT5b8SjQHg3w1g%3D%3D; form_key=4cev9xmEVR9WsrH1; _ga=GA1.3.134984054.1485384040; _gat=1; mage-messages=
2017-02-08 23:12:25.444 [NOTICE] [IPAddress:59197#wmf] Content len: 0, Request line: 'GET /test/index.html HTTP/1.1'
2017-02-08 23:12:25.444 [INFO] [IPAddress:59197#wmf] Cookie len: 504, mage-translation-storage=%7B%7D; mage-translation-file-version=%7B%7D; mage-cache-storage=%7B%7D; mage-cache-storage-section-invalidation=%7B%7D; __atuvc=1%7C4%2C3%7C5%2C3%7C6; PHPSESSID=2koqi9iiecct0649f7mqilgts4; mage-cache-sessid=true; __zlcmid=elgB6Ji5DFRlpa; section_data_ids=%7B%22cart%22%3A1486593209%7D; LSWSWEBUI=cb730146728eba62ff2bc0aa42f71bda; lsws_uid=N2CXllu%2FEPQ%3D; lsws_pass=RP7RxlGTUT5b8SjQHg3w1g%3D%3D; form_key=4cev9xmEVR9WsrH1; _ga=GA1.3.134984054.1485384040; _gat=1; mage-messages=
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] processNewReqInit(): HSPS_NEW_REQ -> HSPS_HKPT_HTTP_BEGIN
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] runEventHkpt(): HSPS_HKPT_HTTP_BEGIN -> HSPS_HKPT_RCVD_REQ_HEADER
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] runEventHkpt(): HSPS_HKPT_RCVD_REQ_HEADER -> HSPS_TRY_FINISH_REQ_BODY
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] NtwkIOLink::suspendRead()...
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] reqBodyDone(): HSPS_TRY_FINISH_REQ_BODY -> HSPS_HKPT_RCVD_REQ_BODY
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] runEventHkpt(): HSPS_HKPT_RCVD_REQ_BODY -> HSPS_PROCESS_NEW_URI
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] [CACHE] Assign no cache store, cache root: N/A
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] [CACHE] Early lookup, cache config: 0x1c2a250, private: 0, public: 0
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] processVHostRewrite(): HSPS_PROCESS_NEW_URI -> HSPS_CONTEXT_MAP
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] Find context with URI: [/], location: [/var/www/html/magento/]
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] processContext() returned 0.
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] processContextMap(): HSPS_CONTEXT_MAP -> HSPS_HKPT_URI_MAP
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] Run State: HSPS_HKPT_URI_MAP
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] runEventHkpt(): HSPS_HKPT_URI_MAP -> HSPS_FILE_MAP
2017-02-08 23:12:25.444 [INFO] [IPAddress:59197#wmf] File not found [/var/www/html/magento/test/index.html]
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] processContextPath() return 26
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] processFileMap(): HSPS_FILE_MAP -> HSPS_CHECK_AUTH_ACCESS
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] Run State: HSPS_CHECK_AUTH_ACCESS
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] checkAuthAccess(): HSPS_CHECK_AUTH_ACCESS -> HSPS_HKPT_HTTP_AUTH
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] runEventHkpt(): HSPS_HKPT_HTTP_AUTH -> HSPS_AUTH_DONE
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] smProcessReq(): HSPS_AUTH_DONE -> HSPS_HTTP_ERROR
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] HttpSession::sendHttpError(),code=404 Not Found
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] NtwkIOLink written: 1413
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] writeRespBody() sent: 1148
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] endResponse( 2 )
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] endResponseInternal()
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] mark COMPLETE.
2017-02-08 23:12:25.444 [DEBUG] [EvtcbQue:getNodeObj] Obj=0x1c2fdc0 Session= (nil) Param=(nil)
2017-02-08 23:12:25.444 [DEBUG] [EvtcbQue:schedule()] Obj=0x1c2fdc0 Session= 0x1c331a0 Param=(nil)
2017-02-08 23:12:25.444 [DEBUG] [EvtcbQue:runOne()] Obj=0x1c2fdc0 Session= 0x1c331a0 Param=(nil)
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197#wmf] HttpSession::nextRequest()!
2017-02-08 23:12:25.444 [DEBUG] [IPAddress:59197-1] nextRequest2(): HSPS_HTTP_ERROR -> HSPS_READ_REQ_HEADER
2017-02-08 23:12:25.444 [DEBUG] [EvtcbQue:recycle()] Obj=0x1c2fdc0 Session= 0x1c331a0 Param=(nil)
2017-02-08 23:12:25.444 [DEBUG] [*:8088] 1 connections accepted!
But the file is there, here is the command that I ran to check =/

Code:
root@WMF:/home/lsws-5.1.12# ls /var/www/html/magento/test/index.html
/var/www/html/magento/test/index.html
root@WMF:/home/lsws-5.1.12#
Any idea what the issue might be?

I have magecache license as well but I haven't tried setting it up or anything yet, want to get the webserver working first

Regards
Parham
 
Last edited by a moderator:

NiteWave

Administrator
#2
please check along the path /var/www/html/magento/test/index.html to see if nobody user can read it.
or command line
#sudo -u nobody ls -l /var/www/html/magento/test/index.html
(nobody is the user litespeed process running as)
 
Last edited by a moderator:
Status
Not open for further replies.
Top