Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP-Apache Folder / DocumentRoot problem

Featured Replies

Hello,

we have a selfmade small crm which is running on a hosting-provider. For better and faster testing and devlopment, I tried to setup a php-apache server with same conditions as the live-server has. This worked with one exception:

version: "'2'"
services:
    ApachePHP839:
        image: php:8.3.9-apache
        container_name: ApachePHP_8.3.10
        build: 
            context: .
            dockerfile: Dockerfile
        volumes:
            - /sharedFolderName/ProjectName/VersionName/public:/var/www/html
        ports:
            - 8945:80
        environment:
            USER_UID: 1026
            USER_GID: 100
        networks:
            - mariadb_net

networks:
  mariadb_net:
    name: mariadb_mariadb_net
    external: true 

 

CRM Website folder Structure:

ProjectName
	Uploads
	VersionName
		libs
		configs
		public //EntryPoint "DocumentRoot"
		etc..

 

On our webhosting-server, I can create the same Structure and tell the ConrolPanel what domain points to the DocumentRoot directory ( .../ProjectName/VersionName/public ) and I still have access to the folders before public.

 

Because of linking folder VersionName/public to www/html I dont have access to the folders in ProjectName/VersionName or ProjectName/Uploads. I understand that the  folders before public not exists for the image because www is the root folder of /public because of linking. But i dont understand how to change this. Not even sure what keywords I'm looking for.

 

Goal is:

Pointing DocumentRoot to /public but be able to access the folders before /public.

 

I tried to link /ProjectName/VersionName to /var/www

 

This works somehow. But I'm looking for the right way to do it. Maybe someone can give a hint what keywords to search or have a idea/solution for making this work.

 

Thanks a lot

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.