Jump to content

Images not displaying in Admin UI


Recommended Posts

I started doing the upgrade to v4 and as part of the pre-config, I wanted to move the images to a separate folder.

Revive is installed in /opt/revive-current

The images were at /opt/revive/current/www/images

I copied them all to /opt/revive-images and gave them all 777 permissions.

I changed the .conf file in 2 places: 

1) under [webpath]
images="mysite.com/images"
imagesSSL="mysite.com/image"
2) under [store]
webDir="/opt/revive-images"

I rebooted the server and now I can't see the image in the Admin UI when I click on Banners and then click on a banner. It just shows the empty block. The url its trying to get it from is: http://mysite.com/www.images/blah.png

Its also not available at http://mysite.com/images/blah.png

 

Anyone know what is wrong? I'm still on v3

Link to comment
Share on other sites

Hi @Bernard O,

I was going to say something very similar, which is to ask to make sure that you have also updated your webserver configuration to ensure that the URL you have configured under the [webserver] section of the configuration file is valid, and points to the directory you have configured for the images under the [store] section of the configuration file.

In your web server logs, do you see requests coming in for the images? If so, then you should hopefully also see any errors as to why they cannot be loaded.

Link to comment
Share on other sites

Hi

Thanks for the feedback.

My [store] section looks like this:

[store]
mode=0
webDir="/opt/revive-images"
ftpHost=
ftpPath=
ftpUsername=
ftpPassword=
ftpPassive=

 

My [webpath] section looks like this:

[webpath]
admin="mydomain.com/admin"
delivery="mydomain.com/delivery"
deliverySSL="mydomain.com/delivery"
images="mydomain.com/images"
imagesSSL="mydomain.com/images"

 

My webserver config looks like this:

<VirtualHost *:80>
  ServerName mydomain.com
  DocumentRoot /opt/revive-adserver-4.0.1/www
  <Directory /opt/revive-adserver-4.0.1>
    Require all granted
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/mydomain.com_error.log
  CustomLog ${APACHE_LOG_DIR}/mydomain.com.log combined
</VirtualHost>

 

The folder structure on disk looks like this:

/opt/revive-adserver-4.0.1

/opt/revive-images

 

So to me it all looks correct :(

Edited by Bernard O
Link to comment
Share on other sites

According to this webserver config, any request like mydomain.com/images/image.jpeg would be fetched from /opt/revive-adserver-4.0.1/www/images/image.jpeg.

You have to configure your webserver accordingly if you want to serve over HTTP anything that is outside of www folder. You can use Alias or RewriteRule directives.

 

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...