简体   繁体   中英

how to run laravel application in phpdesktop application?

I have downloaded phpdesktop application and copied working laravel application into the phpdesktop www directory. Also enabled the necessary extension in php-ini file inside phpdesktop application.

Index page of the application is working properly. but I am getting the following error messages when accessing other pages.

Error 404: Not Found File not found

phpdesktop doesn't have apache server to enable mod_rewrite to solve this issue. How to overcome this issue? Plz guide.

for laravel, you need to change www_directory, point it towards "www/public"

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

phpDesktop 57 is currently using php 7.1.x if you want to run latest version of the laravel then just download the required version of php from official website and delete all the files and folder from the php folder inside phpDesktop except php.ini and put all the downloaded files and folder of php in php directory then you will be able to run laravel application inside phpDesktop.

you can have a reference from here: Just Check this article

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