Solved

Owncloud Config Problems

Posted on 2014-12-12
18
413 Views
Last Modified: 2015-04-10
I have setup my server with owncloud but I'm pretty sure my config is not right.I have it set to https port 443 only.

I get a couple of errors on the admin page:

"Your data directory and your files are probably accessible from the internet. The .htaccess file is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root. "
"
Setup Warning
Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken. Please double check the installation guides. "

All transactions seem to be dragging and my phone tried for days to upload content to the server until it used up my data plan with T mobile.

No clear answers online so could some one walk me through this?

I setup a web redirect with no-ip.com ( I have static IPs but I still use them) and it doesnt seem to work.

cloud.apelectricservices.com
But you could use https://apelectricservices.com
0
Comment
Question by:A_AmericanELectric
  • 8
  • 8
  • 2
18 Comments
 

Expert Comment

by:Erich Tiong
Comment Utility
Try the following:
/config/config.php installed=true;
change to
installed=false

reload & access it again.

[OR]
try to add following line into .htaccess
deny from all
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
Thanks. We are getting somewhere but now its changing to  installed=false;  has taken me to a new setup page for the login and DB info and when I try to use original credentials it says its already used.

Like a brand new setup.
0
 

Expert Comment

by:Erich Tiong
Comment Utility
Can you please explain details installation steps & version of OS you use?
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
Sorry for the delay.I will get back ASAP
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
Hi. I apologize for the long delay but I just had spine surgery and I'm just now getting my stuff together.
I have a dedicated (V) ownCloud server setup on 2012.
I realize this is a wide open question but I kinda need to know what the next step is and actually how to utilize what I built here.
The 1st image is the result of that code change you suggested. The other 2 images are simply showing you the layout of the virtual server


/config/config.php installed=true;
change to
installed=false

cannot login now
Result of script changestorageServer.PNG
ThisPC.PNG
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
p.s.
 I also have a dedicated SQL Server that run a very light load. It handles the streaming video site at my church and the forms for my business. I wonder if I should copy the DB to that virtual server
0
 
LVL 13

Expert Comment

by:Michael Machie
Comment Utility
The screen you are seeing is exactly normal for the first launch for Owncloud setup. You need to create a new Owncloud admin account and provide all the info requested. Once provided you will be able to login and start to configure other things. You are almost there!

Www.owncloud.org has all the info and details everything. In the meantime, since you have the database info you can tie it in but if you are not real savvy I would install a new instance of MySQL.

I run 3 of these servers for different environmemts. It is not too difficult to do but does take diligence. Owncloud.org has everything you need.
But to start, installation of packages should have been:
1) PhP
2) MySQL (MS SQL not supported)
3) Owncloud
Then run the setup webpage shown in your picture.
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
Ok so put the config back like Erich said, right?
If I had to login to my SQL server I could with no problem but
I'm not sure how I configureed the mySQL version. Is there a credential recovery procedure?
0
 
LVL 13

Accepted Solution

by:
Michael Machie earned 500 total points
Comment Utility
The first thing you need to do before dealing with any errors or warnings is to get logged in. If you do not remember your MySQL credentials then there is not much we can do to help that. you may need to reinstall it, which is what I did once when I forgot my credentials, and pay close attention to your credentials.

You should not need to do anything with the config file itself just yet. When you launch the web portal (your screenshot), those settings you input will save to the config file. It seems like we are jumping around a little bit like I did for my first few installs, so lets start at the beginning. Unless you know the process you will always have questions.

Every time you edit the config file, prior to fully logging in,  you run the risk of needing to re-run the setup again. I would wait until you are fully logged in before making edits to the config file, because once logged in, the permanent config file will be available to make your edits. If you see that screen, the config file you are using is a temporary config file and will be overwritten when finished with that setup. This is why you are running into the situation where Users are already created - you are trying to re-create Users in your installations that already exist, but Owncloud setup does not understand they are already created. I needed to delete my config file (not config.sample) and re-run the setup portal again.
   
1) Install PhP - x86 or x64 Non-Thread Safe version.

2) Install MySQL. If you already have a database to use skip this step.
- MySQL is the easiest one to install and use in my opinion.
- During setup you will specify the database 'Root' User credentials.
- You can use the default settings for the instance, which will be MySQL56 (or whichever version MySQL you install), or you can specify a new name, which I suggest.
- Take note of these two pieces of info as you need them on the Portal page you posted.  

3) Install (unzip and copy) owncloud files, version 7.0 or higher.

4) Launch the Owncloud portal setup. You will receive some generic warnings (the ones you see).
- Ignore them for now, until you get logged in as the Admin

5) "Create an admin account"
- Specify a Admin Username and password for Owncloud specifically in this field. If it is already used, create a different one and delete the ones you don't want later after gaining access. This is not the database Admin account , this is a User you are creating in the database to be a dedicated Admin User in Owncloud.

6) "Storage + Database":
- Storage denotes where your User Data folders will reside. This should not be in the same directory as your Owncloud data. Move it to a different volume or at least outside your Website directory. Specify the path to your Data folder in that field.

7) "Configure the Database":
- Select the type of Database from the two choices on your screen. My versions did not have MS SQL as an option and the documentation states MS SQL is not supported, so I don't know if MS SQL will actually work, but that is up to you to figure out. I would suggest using MySQL for your first installation to rule out problems with MS SQL if you have issues with that DB.
- Specify the 'Root' User credentials you created while installing MySQL, if using MySQL.
- Otherwise, specify your MS SQL SA User credentials, or other full admin account credentials, if you chose MS SQL as your database to use.
- Input the database name. This would be the Instance Name of your database.
- If installing Owncloud on the same server as your database server, use 'localhost' in the last field. If using a different server you will need to specify that Server here.

Once that info is all correct you will be able to log into the Owncloud Admin account, which grants access to your installed Apps, configuration, and User setups. The config file will now re-write itself as the permanent version that you can edit as needed and you will see warning messages after logging into the Admin account. Now that you are logged in, you will be able to edit the config file as directed, and those edits will stick. The config file will be named 'Config.php', or 'Config', based on your file extension views. Config.sample is the temp one you use while accessing the Owncloud setup portal you posted in the screenshot.

Let us know when you get logged in or if you need further detailed info.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 13

Expert Comment

by:Michael Machie
Comment Utility
If you wanted to work with the Users within MySQL, then if you have Workbench installed and have saved the 'Root' User credentials in the vault, you can log into your DB and change the credentials. I will look for a recovery option but I have never seen one yet.
0
 
LVL 13

Expert Comment

by:Michael Machie
Comment Utility
Also, you can undo the edit from False to True on the config file to get you back where you were before you lost access.

To paraphrase, the False statement tells Owncloud that it has not finished the configuration and to use the 'setup' config file. The True statement lets Owncloud know it is configured and to use the permanent config file. Once you can get back to where you were you can re-address those errors individually.
0
 
LVL 13

Expert Comment

by:Michael Machie
Comment Utility
I assume everything is good to go at this point? I have become an ownCloud fanatic recently and would like to assist if you have any other problems or are not 100% satisified with your results.
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
That's great.  I would love to take a Saturday night if you have it available to show me the ends and outs of ownCloud. Thanks.
if you have an hour or so tomorrow evening let me know
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
I'm a little unclear on how to utilize it properly.
I have many TBs of disk space but I'm unclear on how to use it like dropbox for instance.

Presently I'm trying to create a media server which would be on a different VM than the OwnCloud server. So how would I designate the storage space for the server as a volume is Owncloud?
I know how to create the new volume but what I'm asking is how to access it as a storage location afterward.
I know I can map a drive to it locally but that has always been the case.
Should I mat the https// address?
0
 
LVL 13

Expert Comment

by:Michael Machie
Comment Utility
To keep things clean, start a new question and link to it here. I will be happy to help.
0
 

Author Comment

by:A_AmericanELectric
Comment Utility
ID: 28641705
0
 
LVL 13

Expert Comment

by:Michael Machie
Comment Utility
You left this question's id#, not the new question's id#.
0
 
LVL 13

Expert Comment

by:Michael Machie
Comment Utility
Hi, i can help with this as I did the same thing.

I cant find your question anywhere else... would you please provide a full http link to your new question?
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now