.htaccess Option All not allowed by hoster

My hoster does not allow following command in .htaccess:

/home/xxx/www/myWebsite.ch/myBasePath/.htaccess:

Option All

not allowed here

If I disable this command. I’ll receive an 500 Error

You may try to modify the generated .htaccess as:

# Disable directory listing
# Options All -Indexes

# Enable rewrite engine
Options +FollowSymLinks

# Disable directory listing
Options -Indexes

If it works, you may disable Generate .htaccess so it will not overwritten by next generation.

Seems, that the problem with .htaccess has been solved.

Now - I guess - the greatest mistery. Launching phpMaker gives me an Error 500 Internal Server Error back. https://MyWebsite.ch/xxx2026/index.php

What I did:
With phpMaker connected to the database.
No customizing, I can see al my tables and views
Generate files (no errors at all)
Upload to the server (hosting)

Any idea how to approach this problem ?

To mention, I am using phpMaker to manage (inserting, adding) dat inmy database. For this reason, phpMaker is just fantastic. But I am a user with limited php programming knowledge, I am user of this tool.

Whenever you see 500, you should enable Debug, re-generate scripts, run again and check the exact error info.

Please have a look at:

Attempted to load class “Requirement” from namespace “Symfony\Component\Routing\Requirement”.
Did you forget a “use” statement for another namespace?

You can go to Custom Files → ApiController.php → Content, add:

use Symfony\Component\Routing\Requirement\Requirement;

at the top of page (after the namespace statement).

If you have Custom Files → RouteController.php, also add the same use statement.

There is also a line:

// #[IsGranted('IS_AUTHENTICATED')] // Note: Uncomment if security is required

If you uncomment it, you need to add use statement for IsGranted also:

use Symfony\Component\Security\Http\Attribute\IsGranted;

Is already in ApiController.php:

namespace PHPMaker2026\Bierglaeser2026;

use Symfony\Component\Routing\Requirement\Requirement; // <---
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\Security\Http\Attribute\IsGranted;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use RuntimeException;
use Exception;

Error

ClassNotFoundError

Code Context

90.
91. /**
92.  * View
93.  */
94. #[Route('/view/{table}/{key}', methods: ['GET', 'OPTIONS'], requirements: ['key' => Requirement::CATCH_ALL], name: 'api.view')]
95. public function view(string $table, ?Entity $entity): Response
96. {
97.     if ($entity === null) {
98.         return new JsonResponse([
99.             "success" => false,
100.            "version" => PRODUCT_VERSION,
101.            "failureMessage" => $this->language->phrase("NoRecord", true)
102.        ]);
103.    }

This is correct:

use Symfony\Component\Routing\Requirement\Requirement;

See the source.

But the error still said: Attempted to load class “Requirement” from namespace “Symfony\Component\Routing\Requirement”.

It seems that it cannot find Symfony\Component\Routing\Requirement\Requirement. Are your sure you are using symfony/routing 7.3? You can check composer.lock in your project folder, open it a text editor, and search for “symfony/routing”, you should find:

        {
            "name": "symfony/routing",
            "version": "v7.3.4",
...

Also make sure your server is using PHP >= 8.2.

Yes

“name”: “symfony/routing”,
“version”: “v7.3.4”,
“source”: {
“type”: “git”,
“url”: “https://github.com/symfony/routing.git”,
“reference”: “8dc648e159e9bac02b703b9fbd937f19ba13d07c”
},

PHP PHP Version 8.4.12 on Server

Then you better try:

  1. Delete the “vendor” folder, open a command prompt at the project folder and run “composer update” again.
  2. Delete var/cache/dev and var/cache/prod under the project folder.

Then run the site from the index page (e.g. https://yourcompany.com/your/base/path/) again.

I still cannot access my data.

An exception occurred while establishing a connection to figure out your platform version.
You can circumvent this by setting a ‘server_version’ configuration value.

This is not working for me.

Be patient. Almost done. The error message means it could run but it could not connect to your database to check the server version. You might have just forgotted to update the connection info for your server.

If you have generated your site as “production” environment and uploaded to your server, fix the connection info in the .env.prod.local which contains your database connection info. If you are still using “development” environment, fix the connection info in the .env.dev.local.

See .env, .env.dev.local and .env.prod.local Files for more info about the environment files.

If you are a registered user, you can also seek help from support directly.