My 64bits app work well when i click phpdesktop-chrome.exe in phpdesktop-chrome-57 folder. after using inno setup compiler it show blank white screen

642 views
Skip to first unread message

bitwea...@gmail.com

unread,
May 25, 2019, 2:41:48 AM5/25/19
to PHP Desktop
- 07:25:16.109 ERROR: Opening log file for appending failed
- 07:25:16.109 INFO: --------------------------------------------------------
- 07:25:16.109 INFO: Started application
- 07:25:16.109 INFO: Logging to: C:\Program Files (x86)\Aston\debug.log
- 07:25:16.109 INFO: Log level = DEBUG4
- 07:25:16.109 INFO: Starting Mongoose 3.9c web server
- 07:25:16.109 INFO: WWW directory: C:\Program Files (x86)\Aston\www
- 07:25:16.109 INFO: Index files: index.php
- 07:25:16.109 INFO: CGI interpreter: C:\Program Files (x86)\Aston\php-cgi.exe
- 07:25:16.109 INFO: CGI pattern: **.php$
- 07:25:16.109 INFO: Hide files patterns:
- 07:25:16.109 DEBUG: The temp directory returned by OS contains unicode characters: C:\Users\BITWEA~1\AppData\Local\Temp\
- 07:25:16.125 INFO: CGI environment variables set: TMP=C:\Windows\Temp,TEMP=C:\Windows\Temp,TMPDIR=C:\Windows\Temp,PHPDESKTOP_VERSION=57.0
- 07:25:16.140 INFO: Web server url: http://127.0.0.1:54328/
- 07:25:16.140 INFO: remote_debugging_port = 53188
- 07:25:16.140 DEBUG: Command line string for the browser process: "C:\Program Files (x86)\Aston\phpdesktop-chrome.exe" --no-sandbox --lang=en-US --log-file="C:\Program Files (x86)\Aston\debug.log" --remote-debugging-port=53188 --disable-gpu
- 07:25:20.390 DEBUG: App::OnContextInitialized()
- 07:26:57.156 DEBUG: Window max width/height = 1286/680
- 07:26:57.156 DEBUG: GetBrowserWindow(): not found, hwnd = 263076
- 07:26:57.156 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch BrowserWindow
- 07:26:57.156 DEBUG: BrowserWindow::CreateBrowserControl()
- 07:26:57.156 DEBUG: StoreBrowserWindow(): hwnd = 263076
- 07:26:57.234 DEBUG: ClientHandler::OnAfterCreated()
- 07:26:57.234 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 07:26:57.281 DEBUG: OnLoadingStateChange: loading=1, url=
- 07:26:59.328 INFO: GET 404 /
- 07:26:59.390 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:54328/

bitwea...@gmail.com

unread,
May 25, 2019, 2:45:29 AM5/25/19
to PHP Desktop
this is my settings.json

{
"application": {
"single_instance_guid": "B0747924-46B9-4A9D-8F84-A64EF257FA3A",
"dpi_aware": true
},
"debugging": {
"show_console": true,
"subprocess_show_console": false,
"log_level": "DEBUG4",
"log_file": "debug.log"
},
"main_window": {
"title": "Anton Desktop Chrome",
"icon": "",
"default_size": [800, 600],
"minimum_size": [640, 480],
"maximum_size": [0, 0],
"disable_maximize_button": false,
"center_on_screen": true,
"start_maximized": false,
"start_fullscreen": false,
"always_on_top": false,
"minimize_to_tray": false,
"minimize_to_tray_message": "Minimized to tray"
},
"popup_window": {
"icon": "",
"fixed_title": "",
"center_relative_to_parent": true,
"default_size": [800, 600]
},
"web_server": {
"listen_on": ["*", 0],
"www_directory": "",
"index_files": ["index.php"],
"cgi_interpreter": "php-cgi.exe",
"cgi_extensions": [""],
"cgi_temp_dir": "",
"404_handler": "/pretty-urls.php",
"hide_files": []
},
"chrome": {
"log_file": "debug.log",
"log_severity": "default",
"cache_path": "",
"external_drag": true,
"external_navigation": true,
"reload_page_F5": true,
"devtools_F12": true,
"remote_debugging_port": 0,
"command_line_switches": {"disable-gpu": ""},
"enable_downloads": true,
"context_menu": {
"enable_menu": true,
"navigation": true,
"print": true,
"view_source": true,
"open_in_external_browser": true,
"devtools": true
}
}
}

bitwea...@gmail.com

unread,
May 25, 2019, 2:47:07 AM5/25/19
to PHP Desktop
this is my inno setup compiler script

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Aston"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "phpdesktop-chrome.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{B0747924-46B9-4A9D-8F84-A64EF257FA3A}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=C:\Users\BITWEALTH\Desktop\installer
OutputBaseFilename=Aston
SetupIconFile=C:\Users\BITWEALTH\Documents\netbeans.ico
Compression=lzma2
SolidCompression=yes
WizardStyle=modern

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\phpdesktop-chrome.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\php\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\www\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\locales\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\webcache\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\cef.pak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\cef_100_percent.pak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\cef_200_percent.pak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\cef_extensions.pak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\chrome_elf.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\d3dcompiler_43.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\d3dcompiler_47.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\devtools_resources.pak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\icudtl.dat"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\libcef.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\libEGL.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\libGLESv2.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\license.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\natives_blob.bin"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\settings.json"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\snapshot_blob.bin"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\widevinecdmadapter.dll"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

bitwea...@gmail.com

unread,
May 25, 2019, 3:18:20 AM5/25/19
to PHP Desktop
before using the inno compiler the app works fine from the www folder when i click the phpdesktop-chrome.exe. and this is the debug.log it produced

- 08:03:32.110 INFO: --------------------------------------------------------
- 08:03:32.110 INFO: Started application
- 08:03:32.110 INFO: Logging to: C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log
- 08:03:32.110 INFO: Log level = DEBUG4
- 08:03:32.110 INFO: Starting Mongoose 3.9c web server
- 08:03:32.110 INFO: WWW directory: C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\www
- 08:03:32.110 INFO: Index files: index.php
- 08:03:32.110 INFO: CGI interpreter: C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\php\php-cgi.exe
- 08:03:32.110 INFO: CGI pattern: **.php$
- 08:03:32.110 INFO: Hide files patterns:
- 08:03:32.110 DEBUG: The temp directory returned by OS contains unicode characters: C:\Users\BITWEA~1\AppData\Local\Temp\
- 08:03:32.110 INFO: CGI environment variables set: TMP=C:\Windows\Temp,TEMP=C:\Windows\Temp,TMPDIR=C:\Windows\Temp,PHPDESKTOP_VERSION=57.0
- 08:03:32.141 INFO: Web server url: http://127.0.0.1:54470/
- 08:03:32.141 INFO: remote_debugging_port = 50786
- 08:03:32.141 DEBUG: Command line string for the browser process: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\phpdesktop-chrome.exe" --no-sandbox --lang=en-US --log-file="C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log" --remote-debugging-port=50786
- 08:03:32.297 DEBUG: App::OnContextInitialized()
- 08:03:32.297 DEBUG: Window max width/height = 1286/680
- 08:03:32.297 DEBUG: GetBrowserWindow(): not found, hwnd = 1444490
- 08:03:32.297 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch BrowserWindow
- 08:03:32.297 DEBUG: BrowserWindow::CreateBrowserControl()
- 08:03:32.297 DEBUG: StoreBrowserWindow(): hwnd = 1444490
- 08:03:32.000 DEBUG: Command line string for the gpu-process process: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\phpdesktop-chrome.exe" --type=gpu-process --no-sandbox --lang=en-US --log-file="C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log" --disable-direct-composition --supports-dual-gpus=false --gpu-driver-bug-workarounds=7,10,18,19,20,23,41,61,74 --disable-gl-extensions="GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent" --gpu-vendor-id=0x8086 --gpu-device-id=0x0416 --gpu-driver-vendor="Intel Corporation" --gpu-driver-version=20.19.15.4531 --gpu-driver-date=9-29-2016 --lang=en-US --log-file="C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log" --service-request-channel-token=93B7875AF749347CAFC12EAC9743F1AF --mojo-platform-channel-handle=1628 /prefetch:2
- 08:03:32.391 DEBUG: ClientHandler::OnAfterCreated()
- 08:03:32.391 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 08:03:32.453 DEBUG: OnLoadingStateChange: loading=1, url=
- 08:03:32.016 DEBUG: Command line string for the renderer process: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\phpdesktop-chrome.exe" --type=renderer --no-sandbox --disable-databases --primordial-pipe-token=3D4ED91B07B63F7F107033F52FA1977B --lang=en-US --lang=en-US --log-file="C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log" --enable-pinch --device-scale-factor=1 --num-raster-threads=2 --enable-main-frame-before-activation --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,3553;0,11,3553;0,12,3553;0,13,3553;0,14,3553;0,15,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,3553;1,11,3553;1,12,3553;1,13,3553;1,14,3553;1,15,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,3553;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,3553;2,13,3553;2,14,3553;2,15,3553;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,3553;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,3553;3,13,3553;3,14,3553;3,15,3553 --service-request-channel-token=3D4ED91B07B63F7F107033F52FA1977B --renderer-client-id=3 --mojo-platform-channel-handle=1980 /prefetch:1
[0525/080332.682:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
- 08:03:32.172 DEBUG: OnBrowserCreated()
- 08:03:33.844 INFO: GET 200 /truestyle.css
- 08:03:33.844 INFO: GET 200 /jquery.js
- 08:03:33.860 INFO: GET 200 /
- 08:03:33.375 DEBUG: OnContextCreated()
- 08:03:34.156 INFO: GET 200 /images/295388_262782867184961_1406737706_n.png
- 08:03:34.469 INFO: GET 200 /fk2s.js?_=1558767814386
- 08:03:36.453 DEBUG: WM_DESTROY
- 08:03:36.453 DEBUG: RemoveBrowserWindow(): hwnd = 1444490
- 08:03:36.453 INFO: Stopping Mongoose web server
- 08:03:36.453 DEBUG: Mongoose webserver stopped immediately
- 08:03:36.453 DEBUG: OnBeforeClose() hwnd=983950
- 08:03:36.453 DEBUG: RemoveBrowserWindow(): hwnd = 983950
- 08:03:36.469 DEBUG: GetBrowserWindow(): not found, hwnd = 983950
- 08:03:36.469 WARNING: RemoveBrowserWindow() failed: GetBrowserWindow() failed
- 08:03:36.469 DEBUG: Calling CefQuitMessageLoop()
- 08:03:36.531 INFO: Ended application
- 08:03:36.531 INFO: --------------------------------------------------------

with this settings.json
"www_directory": "www",
"index_files": ["index.php"],
"cgi_interpreter": "php/php-cgi.exe",
"cgi_extensions": ["php"],
"cgi_temp_dir": "",
"404_handler": "/pretty-urls.php",
"hide_files": []
},
"chrome": {
"log_file": "debug.log",
"log_severity": "default",
"cache_path": "",
"external_drag": true,
"external_navigation": true,
"reload_page_F5": true,
"devtools_F12": true,
"remote_debugging_port": 0,
"command_line_switches": {},
"enable_downloads": true,
"context_menu": {
"enable_menu": true,
"navigation": true,
"print": true,
"view_source": true,
"open_in_external_browser": true,
"devtools": true
}
}
}




but after using inno setup compiler app doesn't work, it just loads and shows a blank white screen. i am using 64-bit windows 10 OS

Czarek Tomczak

unread,
May 25, 2019, 5:13:11 AM5/25/19
to PHP Desktop
It shows 404 error when accessing / url. It looks like you are missing www/ scripts after compiling with Inno setup. Check the directory where application installed and compare all files with your phpdesktop directory before compiling. Check all files including binary files, subdirectories.

Czarek Tomczak

unread,
May 25, 2019, 5:16:31 AM5/25/19
to PHP Desktop
In settings.json you are setting www_directory to an empty string which is an error unless you keep your PHP scripts along with binary files in a root directory.

bitwea...@gmail.com

unread,
May 25, 2019, 5:47:07 AM5/25/19
to PHP Desktop
yes i set the www_directory to an empty string because after installation with inno setup compiler the www directory does not exist

Czarek Tomczak

unread,
May 25, 2019, 7:01:45 AM5/25/19
to PHP Desktop
You cannot set www_directory to an empty string. After you've set it to an empty string, in the logs you can see that phpdesktop expects www_directory to be:

- 07:25:16.109 INFO: WWW directory: C:\Program Files (x86)\Aston\www

bitwea...@gmail.com

unread,
May 26, 2019, 6:21:23 AM5/26/19
to PHP Desktop
i have fixed the json file

{
"application": {
"single_instance_guid": "",


"dpi_aware": true
},
"debugging": {
"show_console": true,
"subprocess_show_console": false,
"log_level": "DEBUG4",
"log_file": "debug.log"
},
"main_window": {

"title": "PHP Desktop Chrome",


"icon": "",
"default_size": [800, 600],
"minimum_size": [640, 480],
"maximum_size": [0, 0],
"disable_maximize_button": false,
"center_on_screen": true,
"start_maximized": false,
"start_fullscreen": false,
"always_on_top": false,
"minimize_to_tray": false,
"minimize_to_tray_message": "Minimized to tray"
},
"popup_window": {
"icon": "",
"fixed_title": "",
"center_relative_to_parent": true,
"default_size": [800, 600]
},
"web_server": {
"listen_on": ["*", 0],

"www_directory": "www",
"index_files": ["index.html", "index.php"],


"cgi_interpreter": "php/php-cgi.exe",
"cgi_extensions": ["php"],
"cgi_temp_dir": "",

"404_handler": "/404.html",


"hide_files": []
},
"chrome": {
"log_file": "debug.log",
"log_severity": "default",

"cache_path": "webcache",


"external_drag": true,
"external_navigation": true,
"reload_page_F5": true,
"devtools_F12": true,
"remote_debugging_port": 0,

"command_line_switches": {},


"enable_downloads": true,
"context_menu": {
"enable_menu": true,
"navigation": true,
"print": true,
"view_source": true,
"open_in_external_browser": true,
"devtools": true
}
}
}


i have also re run the inno setup script

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Aston"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "phpdesktop-chrome.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{B0747924-46B9-4A9D-8F84-A64EF257FA3A}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=C:\Users\BITWEALTH\Desktop\installer
OutputBaseFilename=Aston

SetupIconFile=C:\Users\BITWEALTH\Documents\nets.ico
Compression=lzma2
SolidCompression=yes
WizardStyle=modern

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]

Source: "C:\Users\BITWEALTH\Documents\phpdesktop-chrome.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\BITWEALTH\Desktop\phpdesktop-chrome-57.0-rc-php-7.1.3\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs


; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent


After running the installer, all files and directory are the same, the only problem is that i cant see any php files in the www directory (C:\Program Files (x86)\Aston\www), and the app window only shows a directory list of folders and html files in the www folder.

this is the log on the console
- 11:04:42.125 ERROR: Opening log file for appending failed
- 11:04:42.125 INFO: --------------------------------------------------------
- 11:04:42.125 INFO: Started application
- 11:04:42.125 INFO: Logging to: C:\Program Files (x86)\Aston\debug.log
- 11:04:42.125 INFO: Log level = DEBUG4
- 11:04:42.125 INFO: Starting Mongoose 3.9c web server
- 11:04:42.125 INFO: WWW directory: C:\Program Files (x86)\Aston\www
- 11:04:42.125 INFO: Index files: index.html,index.php
- 11:04:42.140 INFO: CGI interpreter: C:\Program Files (x86)\Aston\php\php-cgi.exe
- 11:04:42.140 INFO: CGI pattern: **.php$
- 11:04:42.140 INFO: Hide files patterns:
- 11:04:42.140 DEBUG: The temp directory returned by OS contains unicode characters: C:\Users\BITWEA~1\AppData\Local\Temp\
- 11:04:42.140 INFO: CGI environment variables set: TMP=C:\Windows\Temp,TEMP=C:\Windows\Temp,TMPDIR=C:\Windows\Temp,PHPDESKTOP_VERSION=57.0
- 11:04:42.156 INFO: Web server url: http://127.0.0.1:59333/
- 11:04:42.156 INFO: remote_debugging_port = 61229
- 11:04:42.156 DEBUG: Command line string for the browser process: "C:\Program Files (x86)\Aston\phpdesktop-chrome.exe" --no-sandbox --lang=en-US --log-file="C:\Program Files (x86)\Aston\debug.log" --remote-debugging-port=61229
- 11:04:45.484 DEBUG: App::OnContextInitialized()
- 11:04:45.484 DEBUG: Window max width/height = 1286/680
- 11:04:45.484 DEBUG: GetBrowserWindow(): not found, hwnd = 1576182
- 11:04:45.484 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch BrowserWindow
- 11:04:45.484 DEBUG: BrowserWindow::CreateBrowserControl()
- 11:04:45.484 DEBUG: StoreBrowserWindow(): hwnd = 1576182
- 11:04:46.187 DEBUG: ClientHandler::OnAfterCreated()
- 11:04:46.187 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 11:04:46.234 DEBUG: OnLoadingStateChange: loading=1, url=
- 11:04:49.578 INFO: GET 200 /
- 11:04:50.719 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:59333/


Any help please

bitwea...@gmail.com

unread,
May 26, 2019, 7:10:52 AM5/26/19
to PHP Desktop
The app now works fine but it is showing my php files in the C:\Program Files (x86)\Aston\www directory is there no way of protecting these php files from being viewed or copied?

Czarek Tomczak

unread,
May 26, 2019, 2:55:33 PM5/26/19
to PHP Desktop
You have to create "index.php" file or edit settings.json file and change the "index_files" option.

Czarek Tomczak

unread,
May 26, 2019, 2:56:28 PM5/26/19
to PHP Desktop


On Sunday, May 26, 2019 at 11:10:52 AM UTC, bitwealthapps wrote:

bitwea...@gmail.com

unread,
Jun 8, 2019, 4:12:04 AM6/8/19
to PHP Desktop
Thanks for you time and support

shau...@gmail.com

unread,
Jun 26, 2019, 4:26:44 AM6/26/19
to PHP Desktop
Hi I have the same issue, blank white screen and no \www dir created. I have followd this conversation to the T but still cannot get it to work

andr...@gmail.com

unread,
Jul 18, 2019, 9:15:23 AM7/18/19
to PHP Desktop
I had the same problem after following the tutorial which says to add everything else in the directory to the additional files. Instead click add folder and select the only folder where phpdesktop is.
[Files]
Source: "C:\phpdesktop\phpdesktop-chrome.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\phpdesktop\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Reply all
Reply to author
Forward
0 new messages