Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

How to use OpenLitespeed? #5

Open
adaliszk opened this issue Oct 1, 2017 · 9 comments
Open

How to use OpenLitespeed? #5

adaliszk opened this issue Oct 1, 2017 · 9 comments
Labels

Comments

@adaliszk
Copy link

adaliszk commented Oct 1, 2017

For apache2 and nginx I know that I have to put my public code into /var/www/html but it doesn't seems working with openlitespeed. It seems after configuring itself it shuts down.

The issue is probably because I do not know how to use it properly. Where should I put my test code to get something on the output?

@petk
Copy link
Member

petk commented Oct 1, 2017

OpenLiteSpeed reads the location that is set in the OpenLiteSpeed server configuration /etc/litespeed/httpd_config.conf and furthermore in the virtualhost configuration /etc/litespeed/vhosts/Example/vhconf.conf. With this image that is in the /var/lib/litespeed/Example/html.

Coming up in the documentation.

@adaliszk
Copy link
Author

adaliszk commented Oct 2, 2017

Okay, I've tried to look the files but I didn't able to pinpoint the document root, I will do some research later about it.

@petk petk added the question label Oct 2, 2017
@adaliszk
Copy link
Author

adaliszk commented Oct 3, 2017

Okay, so here is what I found out:
http://open.litespeedtech.com/mediawiki/index.php/Help:Repositories
http://open.litespeedtech.com/mediawiki/index.php/Help:Default_PHP_Settings

The example output port is :8088 and you can reach an administration site on :7080
default login is admin / 123456

From there you need to create your vhost and listener where in the vhost settings you need to set the document root in the General tab and add a lsphp script handler for php files on the Script Handler tab. After you done then your script should be running.

I created a sample configuration and if you override this files in the /etc/litespeed location the :80 port will be active and the /var/www/html will be the document root.

@aadi-khan
Copy link

hello,

Hope you guys are doing well.

I need your assistance in setting up wordpress on litespeed server. I am running windows 10 pro, latest docker version and docker-compose. I have copied your Dockerfile-7.0-litespeed and tags folder into the separate directory in my computer drive and i run the docker command to build an image docker run --name openlitespeed -i -t -p 80:8088 -p 7080:7080 -d litespeed and it work, i can see the litespeed login page and now i m in the litespeed dashboard and i have no idea what to do next its very confusing do i have install the php again as i have done it with your provided dockerfile and what will be my root directory how can i access on computer drive and what about the mysql.

Please would really appreciate your help for understanding me all these things.

Thank you very much.

@adaliszk
Copy link
Author

adaliszk commented Dec 9, 2017

You don't have to reinstall php again, you can use the provided lsphp.

you need to create your `vhost´ and ´listener´ where in the vhost settings you need to set the document root in the ´General´ tab and add a ´lsphp´ script handler for php files on the ´Script Handler´ tab. After you done then your script should be running.

Alternatively you can download my provided configuration, copy it into the /etc/litespeed location and add your wordpress public root to the /var/www/html

@josenobile
Copy link

I have used you @adaliszk suggested configuration with no success. Litespeed keeps restarting even with the default configuration. Maybe can you create an example repo with a working configuration using phpearth/php:7.2-litespeed ?

 starts successfully!
2019-07-21 02:11:26.854149 [NOTICE] Child: 84] Core dump is enabled.
2019-07-21 02:11:26.854172 [NOTICE] [Child: 84] Setup swapping space...
2019-07-21 02:11:26.854259 [NOTICE] [Child: 84] LiteSpeed/1.5.0 Open
        module versions:
        modpagespeed 2.1-1.11.33.4
        cache 1.56
        modinspector 1.1
        uploadprogress LSIAPI_VERSION_STRING
 starts successfully!
[OK] Send SIGUSR1 to 30
2019-07-21 02:11:28.816947 [NOTICE] Server Restart Request via Signal...
2019-07-21 02:11:28.817307 [INFO] Pass listener *:7080, copy fd 10 to 1001.
2019-07-21 02:11:28.818528 [INFO] Pass listener *:8080, copy fd 11 to 1000.
2019-07-21 02:11:28.821566 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 77 !
2019-07-21 02:11:28.823044 [NOTICE] [AutoRestarter] child process with pid=77 exited with status=0!
2019-07-21 02:11:28.823168 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 78 !
2019-07-21 02:11:28.823373 [NOTICE] [AutoRestarter] child process with pid=78 exited with status=0!
2019-07-21 02:11:28.823447 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 79 !
2019-07-21 02:11:28.825037 [NOTICE] [AutoRestarter] child process with pid=79 exited with status=0!
2019-07-21 02:11:28.825121 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 80 !
2019-07-21 02:11:28.839430 [NOTICE] [AutoRestarter] child process with pid=80 exited with status=0!
2019-07-21 02:11:28.839654 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 81 !
2019-07-21 02:11:28.940002 [NOTICE] [AutoRestarter] child process with pid=81 exited with status=0!
2019-07-21 02:11:28.940056 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 82 !
2019-07-21 02:11:29.001752 [NOTICE] [AutoRestarter] child process with pid=82 exited with status=0!
2019-07-21 02:11:29.001810 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 83 !
2019-07-21 02:11:29.103394 [NOTICE] [AutoRestarter] child process with pid=83 exited with status=0!
2019-07-21 02:11:29.103461 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 84 !
2019-07-21 02:11:29.205518 [NOTICE] [AutoRestarter] child process with pid=84 exited with status=0!
2019-07-21 02:11:29.205586 [NOTICE] [PID:30] Server Stopped!
[OK] Send SIGUSR1 to 102
[OK] Send SIGUSR1 to 171
[OK] Send SIGUSR1 to 240
[OK] Send SIGUSR1 to 309
[OK] Send SIGUSR1 to 378
[OK] Send SIGUSR1 to 447
[OK] Send SIGUSR1 to 516
[OK] Send SIGUSR1 to 585
[OK] Send SIGUSR1 to 654
[OK] Send SIGUSR1 to 723
[OK] Send SIGUSR1 to 792
[OK] Send SIGUSR1 to 861
[OK] Send SIGUSR1 to 930
[OK] Send SIGUSR1 to 999
[OK] Send SIGUSR1 to 1068
[OK] Send SIGUSR1 to 1137

@adaliszk
Copy link
Author

Sorry for the late answer @josenobile, I'll set up one in the morning ;)

@mhadaily
Copy link

I have same issue similar to @josenobile, no luck to get it to work .

@adaliszk
Copy link
Author

adaliszk commented Feb 15, 2020

@josenobile, @mhadaily, @aadi-khan sorry for disappearing. I've created some examples and a little guide on how to set up the OpenLiteSpeed here: https://github.com/adaliszk/phpearth-litespeed-examples

The old zip had an issue that the Application folder wasn't wrapped with the vhosts folder, so it failed to load it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants