Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: ubuntu server apache 2 wont load pictures from sub directory

  1. #21
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: ubuntu server apache 2 wont load pictures from sub directory

    Quote Originally Posted by ThaDoctor99 View Post
    I just have a little problems with getting a listing...
    Out of the vps.
    How are you accessing the server, ssh, putty? You should be able to copy and paste with either solution.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  2. #22
    Join Date
    Mar 2006
    Location
    127.0.0.1
    Beans
    198

    Re: ubuntu server apache 2 wont load pictures from sub directory

    I have ssh inside tmux (d'oh) Hmm... Although I did take pictures

  3. #23
    Join Date
    Mar 2006
    Location
    127.0.0.1
    Beans
    198

    Re: ubuntu server apache 2 wont load pictures from sub directory


  4. #24
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: ubuntu server apache 2 wont load pictures from sub directory

    Those pictures are difficult to read.

    If you need help copy/paste in a terminal session, use the shift key.

    copy = <shift> + <ctrl> + c
    paste = <shift> + <ctrl> + v

    Please post your vhost file for the site in question and the permissions for said root folder.



    Code:
    cat /etc/apache2/sites-available/ziggy-dog.eu
    Code:
    ls -al /var/www/ziggy-dog.eu/public_html
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  5. #25
    Join Date
    Mar 2006
    Location
    127.0.0.1
    Beans
    198

    Re: ubuntu server apache 2 wont load pictures from sub directory

    /etc/apache2/sites-enabled/ziggy-dog.eu

    Code:
    <VirtualHost *:80>
    	ServerAdmin Tobias.private@gmail.com
    	ServerName ziggy-dog.eu
    	ServerAlias www.ziggy-dog.eu
    	DocumentRoot /var/www/ziggy-dog.eu/public_html
    	<Directory /var/www/ziggy-dog.eu/public_html>
    		Options Indexes FollowSymLinks
    		AllowOverride None
    		Order allow,deny
    		Allow from all
    	</Directory>
    	ErrorLog /var/www/ziggy-dog.eu/logs/error.log
    	CustomLog /var/www/ziggy-dog.eu/logs/access.log combined
    </VirtualHost>
    ls -al /var/www/ziggy-dog.eu/public_html

    Code:
      total 16
      drwxr-xr-x 3 www-data www-data 4096 Jan 14 15:16 .
      drwxr-xr-x 4 root     root     4096 Jan 12 21:20 ..
      drw-r--r-- 2 www-data www-data 4096 Jan 13 14:16 images
      -rw-r--r-- 1 www-data www-data  266 Jan 14 15:16 index.php

  6. #26
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: ubuntu server apache 2 wont load pictures from sub directory

    Your directory is not executable.

    You need to make the permissions read and executable for it to work.

    Code:
    sudo chmod 755 /var/www/ziggy-dog.eu/public_html
    This is also true for you pics directory.

    To bad you didn't post this when it was first requested (three days ago)

    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  7. #27
    Join Date
    Mar 2006
    Location
    127.0.0.1
    Beans
    198

    Re: ubuntu server apache 2 wont load pictures from sub directory

    Thanks a lot, now it works fine.
    Gee wonder why I couldn't make it work when I tried making the pics directory 777 ?
    Well never mind it works now

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •