Currently connecting to a Ubuntu 14.04 LTS server from a Windows pc using WinInet.Dll.
The root folder on the server is the 'home' folder whereas the required folders/files are situated at /var/www/www.mysite.com/htdocs/.
Can retrieve directory listings, upload, download etc from subfolders of the 'home' folder but unable to determine a path to the required folders/files.
The uploading, downloading etc will be done via a Windows app that automatically and periodically updates the websites on the server.
One alternative would be to place the websites, etc in subfolders of the home folder.
Alternatively, please advise suitable path(s)?
You have to use sudo if you don't have connected with root user to access those files/folders. I don't know about Winlnet.dll , but to connect Ubuntu server you can use Putty/Kitty or other similar.
Related
I am trying to install moodle and I need to put moodledata on server A and install moodle on other server B
I did a directory named dataroot on server A and installed virtual host to be accessed through http://A.A.A.A/moodledata and I accesses it through google chrome and gave permissions to apache to read/write on it
I stared installing moodle on Server B but when I asked to put the dataroot directory, I put it http://A.A.A.A/moodledata but I received an error message Data directory (http://A.A.A.A/moodledata ) cannot be created by the installer
I changed the dataroot directory by deleting http so that it is now A.A.A.A/moodledata and it is accepted but when I finished I received an error $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
and when I trying to install moodle again, I receive the same error without allowing me to complete the installation
What do you suggest?
I am trying to install Moodle 3.5.3 on centos7
Thanks and best regards
The dataroot directory on your server should be somewhere that is not accessible from the internet and you should specify the path, not the URL of the directory.
e.g. if the code for your site was on your server at:
/var/www/moodle
And your dataroot directory was
/var/moodledata
Then you should write:
$CFG->dataroot = '/var/moodledata';
Moodle expects the dataroot to be a local directory, preferably outside of the web root.
You could create an NFS share on Server A and mount it on Server B, that way dataroot will appear to Moodle like it is a local folder.
To give a little background information:
I have a Windows directory (Host OS) that I am sharing to CentOS (Guest OS) that serves as my local web server. For some odd reason, I cannot access any of the files in that share from a web browser. For example, if my address is http://192.168.1.200/home.html it gives me a "Forbidden: You don't have permission to view this page" error. When accessing the shared directory from Linux and try to perform a chmod -R 777 on the parent folder, I receive an access denied even running as root. The Windows side of the house has "Authenticated Users" and "Everyone" with full control. And this is with the assumption that the /etc/httpd/conf/httpd.conf is modified correctly.
Outside of this, if I just SCP the contents to the server and modify the httpd.conf file to reflect the new directory, I am able to access everything. The point of this is to be able to modify the local file on the Host OS and not having to SCP it over. Essentially, everything is updated on the server automatically when I save it on the Host OS side.
For my web database I am trying to create a webserver so I need to make a conf file. When I try to edit my conf file and save it wont let me and says permission denied. I have already given myself read and write access, but I still don't have access to the edit the file. Here is the link to the resource I am using to set up my webserver : https://github.com/orsenthil/adminer-on-mac
I've been working with local web servers and mysql on Mac for over 15 years, so this recommendation is coming from that experience.
OS X updates will destroy your local web development environment every time you do a major OS update... Don't use the built in Apache, PHP and MySQL. Use Homebrew to install independent web server components.
Now to your problems:
/etc/hosts is a file not a directory. Each line is a separate record. The line they gave 127.0.0.1 apache.local just means that your local computer will be accessible from http://apache.local. This hosts file can be used to avoid DNS lookups for any website.
The conf file you are referring to is the Apache VirtualHost file? OS X is very protective about files in etc. Have you tried sudo? If you change the permissions to your user, Apache may not be able to function.
I am running an apache server on computer A. I use computer B with ubuntu desktop and A lamp server to develop code because it's more portable. I use ftp to put html files on computer A and they can be opened by connecting to computer A's ip via the browser, all simple enough. Now I would like via a link on my default page index.html to be redirected to an html file stored in a shared folder on computer B. Is such a thing possible and if so how can I make apache render the html page at such a location as smb://<network location>/var/www?
mkdir /var/www/remote # assuming your current document root is /var/www/
mount smb://network.host/var/www /var/www/remote/
Once you have it working you can edit /etc/fstab to make it permanent, or script step 2.
This will keep your current local server working, and allow you to access the remote path at http://127.0.0.1/remote/
What I need is a web server hosting just for saving large files on it and share it online, so today I downloaded XAMPP Control Panel V3.2.1 as I read on a topic that it can help me.
Actually, I don't have enough knowledge about XAMPP, can I use it to upload files with normal domain(like: www.mydoamin.com/myfile)?, how can I connect the server I build with a domain after purchasing it? and how can I upload files to this domain.
Till now I done all the needed setup, and here's what I get when I start the application:
Also I can use the "MySQL" in the webpage after log-in, and here's how the page looks like:
Is there any recommendation for other application that helps me uploading files to my own domain/server and share it, if this one isn't for these stuff?
XAMPP is software bundle containing cross OS solutions (X) for webserver Apache (A), MySQL database (M), and server-side language PHP (P) and Perl (P).
If you got a domain you need to redirect it to IP on which this XAMPP server works. To do it call/mail your domain registrator (a company that sold you a domain) and ask about it. It involves DNS (Domain Name Server) configuration - ask them how to change DNS to direct it to your XAMPP server.
PS To add files go to htdocs direcotry in your XAMPP instalation or whatever you defined to store files (and websites) and drop your files in there.
As I can see you are not experienced in that kind of things so maybe ask company that sold you a domain name about "shared hosting"? It's preconfigured ready to go server where you send files over FTP