PennController for IBEX › Forums › Support › server issue – sources not preloading
- This topic has 4 replies, 2 voices, and was last updated 3 weeks ago by ElRk.
May 4, 2023 at 7:06 am #10505
I’m sorry because I know it’s a common problem but I’ve read all the relevant posts in the past and I really haven’t managed to find a solution for a long time.
The problem is that my resources are not preloading. I’ve hosted my files to a server in a folder containing a zip file with all my pictures and also the file .htaccess.
The link for both folders ends in “.zip”. I’ve also uploaded a csv file with the items, their names etc.to the resources section of the platform
The experiment is running properly only if I upload all the photos in the resources which means that it is highly possible that it crashes.
Can you think of something else that could be wrong?
I’m sending the demo link wishing that you can find some mistake: https://farm.pcibex.net/r/gqNPhx/
thanks a lot!May 4, 2023 at 7:45 am #10507JeremyKeymaster
AddHostin place of
You also need to upload a
.htaccessfile to your server in the directory that contains your zip file to grant CORS access. Currently your server does not respond with the right access headers, so something must be misconfigured on your server’s side
JeremyMay 4, 2023 at 3:53 pm #10510
I’m not 100% sure that I’ve understood correctly.
I think that I’ve already done this with the .htaccess. I have uploaded to the server a folder which contains the following: a zip file with all my photos and also the .htaccess file. Do I need to do sth else?
Unfortunately I don’t really understand what’s the problem with the server and what needs to change.
Sorry for wasting your time..May 5, 2023 at 5:39 am #10512JeremyKeymaster
Make sure your file .htaccess is owned by the user running PHP. If you need to find out that user, you can upload a PHP file containing
<?php echo exec('whoami'); ?>and visit the page in your browser. Once you know the username, just use
chown apache .htaccess(assuming
apacheis the username). Also make sure its permissions are 755:
chmod 755 .htaccess. If you do not know how to execute
chmod, some programs such as FileZilla will let you modify the owner and permissions of files via their graphic interface (usually through a right-click on the file and an option like “properties”)
JeremyMay 7, 2023 at 6:08 am #10518
Thank you so much Jeremy! It finally works 🙂
- You must be logged in to reply to this topic.