2016-09-14

Hello, I am pretty new to all this .. having difficulty reaching my instance via browser, and also don't have permission to make changes via WinSCP ... so I think I have some user permissions not set, or set incorrectly ..

Is there a walk through checklist I could do for my 'dhc-user' and also the user I created, in this case it is 'vgmag', to make sure my instance has proper permissions?

I am loosely following this tutorial, on installing WordPress, to Ubuntu instance ... but I am using Centos ... so, maybe have missed a step with the users creation/group settings? https://help.dreamhost.com/hc/en-us/arti...eamCompute

To reach via browser, I have used my hosts file ..

64.111.99.68 vgstore.vintageguitar.com

64.111.99.68 http://www.vgstore.vintageguitar.com

Which seems to work... but, when trying to access the magento install wizard at vgstore.vintageguitar.com/store/setup ... I get a message in browser, "Not Found The requested URL /store/setup was not found on this server."

When I try to make changes to files via WinSCP, I get Error code 3 permission denied ... that is with either 'dhc-user' and also the 'vgmag' user I created.

So something in the Apache or CentOS files, is not allowing my users the correct access I need, I think. Any ideas, anyone?

Thanks!

Joe

(p.s. I have managed to get further than this, on an Ubuntu instance .. so there's that .. but yeah I wanted to go with CentOS, because I've heard it works well as a website server running magento. thanks)

I should mention, that when I visit vgstore.vintageguitar.com in web browser, after having set my hosts file, I do get the Apache welcome page:

Testing 123..

This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page it means that this site is working properly. This server is powered by CentOS.

But the problem occurs when I try to go to that address, with /store , or /store/setup .... that is when I get the message in browser, "Not Found

The requested URL /store/ was not found on this server."

when in fact, those directories and files ARE there (which I can see via SSH and also via WinSCP ... but cannot move or edit, because I get 'permission denied') ..

so maybe there is just something wrong with the file permissions of those sudirectories? I tried changing those, but still hadn't any luck.

i am pretty lost here. maybe it is something to do with mod_rewrite (which I believe I enabled) and/or htaccess (couldn't adjust conf files because user permission denied).

lost, please help, thanks!

I think my problem maybe has to do with my VirtualHosts file, conf file ... which I'm unable to edit, I get permission denied. The instructions for CentOS must be a little different than the instructions provided in the wordpress install article:

Add Your Domain

There are a few steps to set up your domain. First you’ll need to Setup DNS for DreamCompute for all your domains.

Next you’ll want to configure VirtualHosts so your server knows how to handle the domain.

To do this, you need to make a .conf file:

sudo touch /etc/apache2/sites-available/example.com.conf

It’s recommended you name the file after your domain, so you can always know what file is for what domain.

Edit that file and put this in:

<VirtualHost *:80>

ServerName example.com

ServerAdmin admin@example.com

DocumentRoot /var/www/example.com

<Directory /var/www/example.com>

AllowOverride all

</Directory>

ErrorLog ${APACHE_LOG_DIR}/example.com-error.log

CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined

</VirtualHost>

Once the site is added, we’ll need to enable it via a command called a2ensite (if you want to disable, it’s a2dissite):

sudo a2ensite

This will prompt you to pick what site you want to enable. Type it in, hit enter, and you’ll be told what’s next.

Your choices are: 000-default default-ssl example.com

Which site(s) do you want to enable (wildcards ok)?

example.com

Enabling site example.com.

To activate the new configuration, you need to run:

service apache2 reload

Remember this command. It’s a fast way to enable sites without having to rename or mess with files. Finally bounce your apache service so it reads the changes:

sudo service apache2 reload

I went back to these instructions https://help.dreamhost.com/hc/en-us/arti...-or-CentOS

And tried to create

/etc/httpd/conf.d/YOURSITEHERE.conf

For each site you wish to configure, we recommended you name a file similar to your site name in the /etc/httpd/conf.d/ directory.

There are several example virtual hosts available on the Apache Wiki Example Vhosts page but you can view a basic one listening on port 80 (http) with custom logging here:

<VirtualHost *:80>

ServerName example.com

ServerAlias http://www.example.com

DocumentRoot /var/www/www.example.com

CustomLog /var/log/httpd/www.example.com-access.log combined

ErrorLog /var/log/httpd/www.example.com-error.log

</VirtualHost>

But when trying to create and save the file in WinSCP, I get 'Permission denied' error. dhc-user or my vgmag user don't have permission .. thanks.

Show more