Litespeed can only serve html page and phpinfo.php

Discussion in 'Install/Configuration' started by Dondy Bappedyanto, Jul 3, 2014.

  1. Dondy Bappedyanto

    Dondy Bappedyanto New Member

    Hi,

    I just installed LS on my Parallels Plesk Automation box. The installation was smooth and I can change the web server without any sweat. However, there is a problem when I tried to install wordpress and any other application. It gives me default Apache Test Page or a blank page. I created a single page with only phpinfo, and it actually can show me the php configuration. Here's the screenshot of the phpinfo http://grab.by/yi8G

    PS: I'm using /etc/hosts to bind my local IP to litespeedtest.com

    Any ideas ?

    Dondy
  2. mistwang

    mistwang LiteSpeed Staff

    Please check error.log and stderr.log under /usr/local/lsws/logs/, I think it is likely due to problem with PHP binary.
    You may need to rebuild PHP binary and/or change php.ini.

    you can try remove "/etc/php.d" from the "Scan this dir for addditional .ini files", see if it helps.
  3. Dondy Bappedyanto

    Dondy Bappedyanto New Member

    Well..

    stderr give me an error for library that I don't have. Already remove that but nothing change.
    If I remove /etc/php.d it won't load all the module that I have..

    Anyway, this error is also happen even when I compile using standard configuration ..

    Regards,
  4. mistwang

    mistwang LiteSpeed Staff

    The modules added through /etc/php.d may not be built properly for the lsphp5 binary, so it will crash lsphp5 process.
    The problem is the combination of lsphp5 binary + old module binary + bad php.ini .

    The easiest fix is to compile required modules into the lsphp5 binary statically, so it will not break lsphp5 process even /etc/php.d is added.
  5. Dondy Bappedyanto

    Dondy Bappedyanto New Member

    I thought that the compilation from admin GUI will also compile the module ? No? Because the all the ini on /etc/php.d just tell to load the module respectively..

    Anyway, let me compile the mod static to PHP

    Regards,
  6. Dondy Bappedyanto

    Dondy Bappedyanto New Member

    Nope doesn't work even after I compile statically. Here's my new phpinfo http://grab.by/yitu

    stderr.log only give me this:
    2014-07-03 22:36:06.949 [STDERR] curl: tryurl --manual' for more i2014-07-03 22:36:06.949 [STDERR] 'curl --help' or 'cnformation
    curl: try 'curl --help' or 'cu
    2014-07-03 22:37:20.926 [STDERR] rl --manual' for more informationl: try 2014-07-03 22:47:44.867 [STDERR] cur'curl --help' or 'curl --manual' for more information
    2014-07-03 23:01:36.248 [STDERR] 2014-07-03 23:01:36.248 [NOTICE] Memory size is: 8388608KB.
    2014-07-03 23:27:19.418 [STDERR] curl: try 'curl --help' or 'curl --manual' for more information

    and error.log only give me this
    2014-07-03 23:01:36.287 [NOTICE] litespeed (15008) is ready
    2014-07-03 23:01:36.287 [NOTICE] [AutoRestarter] new child process with pid=15010 is forked!
    2014-07-03 23:01:36.287 [NOTICE] [Child: 15010] Setup swapping space...
    2014-07-03 23:01:36.288 [NOTICE] [child: 15010] Successfully change current user to apache
    2014-07-03 23:01:36.288 [NOTICE] [Child: 15010] Core dump is enabled.
  7. mistwang

    mistwang LiteSpeed Staff

    looks like you need to strace to find out what happened in the php process.

    at the beginning of the PHP script add something like "sleep(30)", to give you some time to locate the PHP process.
    ps -ef | grep lsphp5

    locate the PHP process running the script from the command.
    strace -tt -T -p <pid_of_lsphp5>

    then analyze the output to find out what breaks it.

Share This Page