简体   繁体   中英

my laravel php desktop application doesn't work after creating installer with inno installer

I have converted this php application into a windows application using php desktop. I have converted mysql db to sqlite and it works fine. However, after creating its setup using inno installer, the app returns a blank page and I cannot understand the message returned by the debug console(I have attached a screenshot).

debug-console

I have figured out that I had to change some web_server settings in the settings.json file in my installer path so that they look like this

 "web_server": {
    "listen_on": ["127.0.0.1", 0],
    "www_directory": "/public",
    "index_files": ["index.html", "index.php"],
    "cgi_interpreter": "/php-cgi.exe",
    "cgi_extensions": ["php"],
    "cgi_temp_dir": "",
    "404_handler": "/public/index.php",
    "hide_files": []
},

(remove the www from the paths). This is because after compiling the project files and folders using inno installer, the www folder is no longer there.

Thanks @Czarek and @Martin for answering my question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM