[Closed] 404 not found on all domain

Status
Not open for further replies.

prandah

Well-Known Member
#1
Hi
after i install litespeed on cPanel/WHM my all website got 404 not found
any advice for my issue ?

here is my sample

http://www.tokokbola.com:2080/ << run with litespeed
http://www.tokokbola.com << run with apache


thanks in advance
prandah
 
Last edited by a moderator:

NiteWave

Administrator
#2
what's user home directory->public_html folder's permission ?
Code:
#ls -ald /home/user/public_html
and the settings of
lsws web admin->Server->General->Using Apache Configuration File
 
Last edited by a moderator:

prandah

Well-Known Member
#3
hi sir
here is the result

Code:
root@server.xxxx.com [home]# ls -ald /home/ezithrsi/public_html
drwxr-x--- 35 ezithrsi ezithrsi 4096 Oct  3 10:03 /home/ezithrsi/public_html
root@server.xxxx.com [home]# ls -ald /home/fzone/public_html
drwxr-x--- 16 fzone fzone 4096 Aug  3 08:34 /home/fzone/public_html
root@server.xxxx.com [home]#
and

 

NiteWave

Administrator
#4
are you using mod_ruid2 instead of suPHP ?
please use suPHP, so public_html
Permissions: 0750
Ownership: Username:Nobody

since litespeed process run as nobody, so it can't enter document root if such permission:
Code:
root@server.xxxx.com [home]# ls -ald /home/ezithrsi/public_html
drwxr-x--- 35 ezithrsi ezithrsi 4096 Oct 3 10:03 /home/ezithrsi/public_html
please refer cpanel's document:
http://forums.cpanel.net/f5/when-cp...public_html-has-wrong-permissions-357851.html

another factor is relating to EasyApache -> FileProtect setting. please refer
http://forums.cpanel.net/f185/publi...s-owned-user-group-instead-nobody-403401.html
 
Last edited by a moderator:

prandah

Well-Known Member
#6
Hi
currently i run with litespeed
but i disable php suexec
when i enable php su exec it will 503 error ( i was increase it to 10000 but still error )
here is my tuning inside

http://prntscr.com/4t5ra9
http://prntscr.com/4t5qzv
 
Last edited by a moderator:

NiteWave

Administrator
#7
have you done "Build Matching LSPhp" ?
compare the output of phpinfo.php on both apache and litespeed, they should be almost same.
otherwise, you've not built matching lsphp correctly.

yes, first to ensure phpinfo.php under litespeed is woring, no 503 error.

please don't change the settings in your attached screenshot -- the default value is optimized, you needn't change them unless you full understand what you've done.

503 error is relating to php, here's a full document about how to troubleshoot various 503:
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:503-errors
 

prandah

Well-Known Member
#8
Hi sir
i was build match php but still 503 error
and i was disable opcode cache ( xcache ) but still error

http://prntscr.com/4t7dvh
 
Last edited by a moderator:

NiteWave

Administrator
#11
I mean
1.put phpinfo.php under a user's document root, /home/user/public_html/
2. enable php suEXEC. restart lsws
3. access http://users-domain/phpinfo.php
will show 503 error as well ?
 
Last edited by a moderator:

prandah

Well-Known Member
#12
hi sir
yes sir i mean still show 503 error sir

you can try check this

http://www.tokokbola.com:2080/phpinfo.php << Litespeed
http://www.tokokbola.com/phpinfo.php << apache
 
Last edited by a moderator:

prandah

Well-Known Member
#13
and here from error_log : /usr/local/apache/logs/error_log

Code:
2014-10-05 09:41:18.362 [INFO] [36.85.27.52:54025-0#APVH_tokokbola.all1bose.com] File not found [/home/ezithrsi/public_html/tokokbola.com/503.shtml]
2014-10-05 09:41:35.088 [INFO] [APVH_ezithrsi_Suphp:] PID: 7278, add child process pid: 8461, procinfo: 0xb91080
2014-10-05 09:41:35.117 [INFO] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] connection to [/tmp/lshttpd/APVH_all1bose.com_Suphp.sock] on request #0, confirmed, 1, associated process: 8461, running: 0, error: Connection reset by peer!
2014-10-05 09:41:35.121 [INFO] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] PID: 7278, add child process pid: 8463, procinfo: 0xb91080
2014-10-05 09:41:35.121 [INFO] Remove pid: 8461, exitcode: 1
2014-10-05 09:41:35.121 [INFO] Pid: 8461 does not associate with any external app
2014-10-05 09:41:35.153 [INFO] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] connection to [/tmp/lshttpd/APVH_all1bose.com_Suphp.sock] on request #0, confirmed, 1, associated process: 8463, running: 0, error: Connection reset by peer!
2014-10-05 09:41:35.153 [NOTICE] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] Max retries has been reached, 503!
2014-10-05 09:41:35.153 [INFO] Remove pid: 8463, exitcode: 1
2014-10-05 09:41:35.154 [NOTICE] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] oops! 503 Service Unavailable
2014-10-05 09:41:35.154 [NOTICE] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] Content len: 0, Request line: 'GET /phpinfo.php HTTP/1.1'
2014-10-05 09:41:35.154 [INFO] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] Cookie len: 664, _ga=GA1.2.149869252.1411484665; popup_user_login=yes; wp-settings-1=m9%3Do%26hidetb%3D1%26libraryContent%3Dbrowse%26editor%3Dtinymce%26advImgDetails%3Dshow%26ed_size%3D388%26posts_list_mode%3Dlist%26align%3Dcenter%26urlbutton%3Dpost%26imgsize%3Dlarge; wp-settings-time-1=1411717693; __utma=54873006.149869252.1411484665.1412127061.1412130522.5; __utmz=54873006.1411576327.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __cfduid=d20486ee43da81dc1b749bacd93f824e21411738058682; wordpress_logged_in_013c60d165bd0768776997a019e3e158=admin%7C1413340610%7CK95pdEo0AMHDwR0H9V6uXXkRRchyrnBId0kFIcUHmGT%7C4a9388d3ec44bee3ad5424cffdbca4883b75e59e7ab38f6d88a6f372650a4e2a
2014-10-05 09:41:35.154 [INFO] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] abort request..., code: 4
2014-10-05 09:41:35.154 [INFO] [36.85.27.52:54034-0#APVH_tokokbola.all1bose.com] File not found [/home/ezithrsi/public_html/tokokbola.com/503.shtml]
 

prandah

Well-Known Member
#15
Hi
thanks for your support
thsats you mean this ?

Code:
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
enchant
ereg
exif
filter
ftp
gd
hash
homeloader
iconv
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
Phar
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
the ionCube PHP Loader


http://prntscr.com/4tqunr
 
Last edited by a moderator:

prandah

Well-Known Member
#17
here is sir

Code:
root@server.xxxx.com [~]# grep extension /usr/local/lib/php.ini
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
; leading '/'. You must also specify the file extension being used including
; Directory in which the loadable extensions (modules) reside.
;extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20100525"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.4.so"
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/homeloader.so
; If you wish to have an extension loaded automatically, use the following
;   extension=modulename.extension
;   extension=msql.dll
;   extension=msql.so
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/ffmpeg.so
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zip.dll
; dictionary files.  Include the base filename, but not the file extension.
root@server.xxxx.com [~]#
 

NiteWave

Administrator
#18
1. comment out all current extensions:

2. restart lsws

3. test domain.com/phpinfo.php, see if 503 disappear.
Code:
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.4.so"
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/homeloader.so
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/ffmpeg.so
 
Last edited by a moderator:
Status
Not open for further replies.
Top