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.
Related
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.
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.
I am having trouble conecting to a mysql server that is runing on ubuntu 14.04. i can log into phpmyadmin and upload webpages via ftp but when i go to create a record set and define a database i get a 403 access forbiden. does any one have any ideas.
A 403 error doesn't mean your script is having trouble connecting to the database server, it means your client (the web browser) is not permitted to access the file/web page you're trying to access.
Most likely your permissions aren't set properly on the files you've uploaded by FTP. Check the owner and permissions and verify that they're appropriate for your situation (for instance, on my system files are 644 and directories are 755 and the file owner doesn't matter. Your mileage may vary).
I created a LAMP stack instance on Google Compute Engine and followed the instructions for setting up FTP as described here.
Most of this worked, I can view files and ftp files to my local workstation FROM the instance. The problem is I can't ftp files TO the instance. Whenever I try to do so Filezilla gives me a permission denied error.
I tried right clicking on the "www" folder in Filezilla to set the permissions but that didn't work.
I'm guessing that write permissions have to be set by SSH-ing to the server and executing some sort of command but I'm not sure how to do that.
Any ideas as to how to go about doing this would be appreciated.
By default the /var/www directory is owned by 'www-data' on the debian instance. You should add your user to the 'www-data' group, and give the directory +rw (read and write) for groups.
I need to access some image file from my PC of any other PC in local. I have IP address of the server PC. I need to access the file (eg:img.png) at the server using http, Like http://192.168.1.30/home/user/img.png. So for accessing file from server do I need to install web server at the server side ?. And what are the procedure I have to follow on the server side?.
I want to do this in Linux.
Thanks in advance.......
Change your hyperlink tag by
\\IPAddress\folder\filename
Ensure you have python on your computer.(linux)
verify that you have linux by running python -V you should see something like v3.10
Navigate to the directory that you want to share files from
run python -m http.server 8000
Go to another device and access this newly created server by typing http://ipaddress:8000
You should see the files