Now I get the PHPMaker Main web page and the left column shows my database dao contrib but right side shows 404 Route ‘index.php’ not found.Virtual Server folder is /var/html and project is in daocontrib folder so url is https://servername/daocontrib/index.phpEverything should load relative to /daocontrib
Make sure you have set up URL Rewrite properly.
It’s set in apache Virtual Server and there is an .htaccess file in /daocontrib as well.For testing purposes, I’ve set my Virtual Server folder to the project folder location /var/www/html/daocontribI go to https://servername/index.php and get the project main web page with ‘dao contrib’ on left and ‘404 Route ‘index.php’ not found.’ on rightClicking on ‘dao contriub’ tries to go to URL https://servername/DaoContribList which doesn’t exist as a folder or php file under /daocontribIf I just use https://servername (without index.php) it also tries to go to https://servername/DaoContribList.htaccess exists in /daocontrib and apache2 Virtual Server directive has ‘DocumentRoot /var/www/html/daocontrib’ and ‘DirectoryIndex index.php index.html’
I want to generate a simple data entry form based on table columns and formatted to run on a Mobile device.I started by generating a test project using all defaults.PHPMaker is running on Win-10 with required apps installed: .NET Framework 4.6.2 Developer Pack , php8.1, Composer, node.js, Webview2 Runtime.Tried adding Testing root url as http://127.0.0.1/daocontrib/ which launches MS-Edge but gets ‘refused to connect’ error.No browser launch with root url blankCouldn’t get project to load in browser on development laptop, so copied entire project to working server.Turned on debug options before generateRunning the project from web server brings up a web page with error info:Slim \ Exception \ HttpNotFoundException (404)
Route ‘index.php’ not found.How can I get the development laptop to launch the browser (MS Edge?) (MS Edge Webview2?) I have Vivaldi but doubt it gets used after generate since Webview is part of the process.Why is the default project build set up to look for things that don’t exist?
UPDATE: I now have the project loading on the development laptop.I have to manually start php from the project folder with 'php -S localhost:80’Then I run http://localhost/index.php and get the Route index.php not found error.If I run http://localhost/ I get a dao contrib search page with zero records and no way to get to a form to enter recordsEntering http://localhost/ redirects to localhost/daocontriblist (as mentioned above)I can change daocontriblist to daocontribadd and now get the add record page.Shouldn’t there be menu selections for the various data pages like add, list, search, edit, delete?There is a dao contrib menu entry in the left pane but it only goes to daocontriblist
skyking wrote:
For testing purposes, I’ve set my Virtual Server folder to the project folder location /var/www/html/daocontrib
So ‘daocontrib’ is a sub folder under the ‘html’ folder (the webroot of your site), then your URL should be https://servername/daocontrib/, not https://servername/index.php.If you meant you have a table named “DaoContrib”, you may go to the List page by https://servername/daocontrib/DaoContribList.Since routing is used, never enter .php in your URL.skyking wrote:
I have to manually start php from the project folder with ‘php -S localhost:80’
You cannot use the PHP built-in web server which does not support URL Rewrite, you may use Apache with mod_rewrite enabled instead. If you test on your own PC and you have not set up Apache before, I suggest you try XAMPP.Again, make sure you follow URL Rewrite and set it up correctly for your testing site. Since your site uses a base path (“daocontrib”), make sure you configure the RewriteBase directive correctly.skyking wrote:
Shouldn’t there be menu selections for the various data pages like add, list, search, edit, delete?
Make sure you table has primary key, and make sure you have enabled the wanted features for the table in Table Setup page.
- I have apache virtual server for project root folder set to /var/www/html/daocontrib so I can access via http://servername/
- php running from project website folder on dev laptop works fine - processing redirects seems to work
- I can get browser to autolaunch after generate if I put http://localhost in Testing root URL. If I leave blank browser doesn’t launch.
- Project is now loading correctly on production server after I remembered to change AllowOverride None to All for /var/www