Wiki
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

litespeed_wiki:php_lsapi:generate_source [2013/09/24 15:07]
Michael created
litespeed_wiki:php_lsapi:generate_source [2013/09/24 15:16] (current)
Michael
Line 5: Line 5:
 ===== Command line option ===== ===== Command line option =====
  
-You can set LSPHP to generate source code using the command line option -s.+You can set LSPHP to generate source code using the command line option -s. For example:
  
-  /path/to/​lsphp ​-s+  ​$SERVER_ROOT/fcgi-bin/lsphp5 ​-s
  
 ===== Setting it up within the WebAdmin console ===== ===== Setting it up within the WebAdmin console =====
  
-If you want LSWS to generate PHP source code for files with certain suffix, "​phps"​ for example, ​add a dedicated external application with "​-s"​ at the end of the "Command" ​setting. ​Then add a script handler ​for the suffix "phps".+If you add "​-s"​ at the end of the Command setting ​in the WebAdmin console (Configuration > External App > your external application > Command), that external application will now generate PHP source code in HTML for the files it readsYou can now set up [[litespeed_wiki:​how_do_i_configure_lsws_for_php#​the_script_or_context_handler|script handler]] (WebAdmin console > Configuration > Script Handler) pointing to that external application,​ directing all files with a certain ​suffix ​("phpsc", for example) to the external application that will generate their source code.
 
litespeed_wiki/php_lsapi/generate_source.txt ยท Last modified: 2013/09/24 15:16 by Michael