Install problem

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read How To Solve Problems By Yourself

Install problem

Postby LinuxLove » Wed Oct 10, 2012 1:34 am

Trying to install on my cPanel / Centos server running Apache 2/ PHP 5.3 / MySQL 5. Its not working.

Error log shows:

root@server [/home/username/public_html/owncloud]# cat error_log
[10-Oct-2012 00:18:25 UTC] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_5927cd6db7d5e7568bc241c8684c1abb, O_RDWR) failed: Permission denied (13) in /home/username/public_html/owncloud/lib/base.php on line 264
[10-Oct-2012 00:18:52 UTC] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_5927cd6db7d5e7568bc241c8684c1abb, O_RDWR) failed: Permission denied (13) in /home/username/public_html/owncloud/lib/base.php on line 264
[10-Oct-2012 00:22:26 UTC] PHP Warning: mysql_close(): 32 is not a valid MySQL-Link resource in /home/username/public_html/owncloud/lib/setup.php on line 149
[10-Oct-2012 00:24:48 UTC] PHP Warning: mysql_close(): 32 is not a valid MySQL-Link resource in /home/username/public_html/owncloud/lib/setup.php on line 149



I installed under my main domain and permissions are:
drwxr-xr-x 14 nobody nobody 4.0K Oct 9 19:18 owncloud/


However, when it asks to create an admin and in advanced setup area for MySQL info, I put everything correctly and hit finish setup. All it does is refresh the page again, all blank fields.
LinuxLove
Beginner
 
Posts: 23
Joined: Wed Oct 10, 2012 1:30 am

Re: Install problem

Postby mycloud » Wed Oct 10, 2012 2:48 am

I think that changing owner as apache.apache for owncloud root directory maybe helpful.
mycloud
Beginner
 
Posts: 12
Joined: Mon Oct 08, 2012 3:02 am

Re: Install problem

Postby LinuxLove » Wed Oct 10, 2012 1:57 pm

Apache runs as "nobody" on a cpanel server
LinuxLove
Beginner
 
Posts: 23
Joined: Wed Oct 10, 2012 1:30 am

Re: Install problem

Postby RandolphCarter » Wed Oct 10, 2012 1:59 pm

You could try running the tools script to check for potential problems.
RandolphCarter
Inventory
 
Posts: 3953
Joined: Wed May 30, 2012 7:42 am
ownCloud version: 6.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Install problem

Postby LinuxLove » Wed Oct 10, 2012 2:33 pm

Thanks. Ran that and all it says "Cloud not found"
LinuxLove
Beginner
 
Posts: 23
Joined: Wed Oct 10, 2012 1:30 am

Re: Install problem

Postby LinuxLove » Wed Oct 10, 2012 2:39 pm

Sorry tried again and it says this;

Before we can start

Please edit line 1 in tools.php

Line 1 shows

<?php
LinuxLove
Beginner
 
Posts: 23
Joined: Wed Oct 10, 2012 1:30 am

Re: Install problem

Postby RandolphCarter » Wed Oct 10, 2012 2:59 pm

it probably means that you need to adapt the line
Code: Select all
    $PASSWORD= ...;

(which is line 1 if you start counting from 0, as many computer scientists do - I know, not very intuitive for non-computer-scientists, but that's like it is ;)).
Enter a password of your choosing there - you'll then have to enter that when calling the script in the browser.

Oh and btw. regarding the "Permission denied" error in your logfile:
Code: Select all
[10-Oct-2012 00:18:25 UTC] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_5927cd6db7d5e7568bc241c8684c1abb, O_RDWR) failed: Permission denied (13) in /home/username/public_html/owncloud/lib/base.php on line 264

See here for a detailed discussion - your apache user most probably doesn't have write permissions on the /tmp directory - that could also cause a load of other problems; the easiest solution (if possible) is to run
Code: Select all
chmod 777 /tmp
RandolphCarter
Inventory
 
Posts: 3953
Joined: Wed May 30, 2012 7:42 am
ownCloud version: 6.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Install problem

Postby LinuxLove » Wed Oct 10, 2012 5:34 pm

This is so irritating :(

Data directory (/home/user/public_html/owncloud/data) not writable by ownCloud

Permissions can usually be fixed by giving the webserver write access to the ownCloud directory

I changed it to 0770 and that's what I get. If I change it to 777, it complains that is writable by public.

What gives? This software install is insanely complicate for nothing. I've had no trouble installing enormous amount of other script with similar common requirements.
LinuxLove
Beginner
 
Posts: 23
Joined: Wed Oct 10, 2012 1:30 am

Re: Install problem

Postby RandolphCarter » Wed Oct 10, 2012 6:07 pm

Data directory (/home/user/public_html/owncloud/data) not writable by ownCloud

Permissions can usually be fixed by giving the webserver write access to the ownCloud directory

I changed it to 0770 and that's what I get. If I change it to 777, it complains that is writable by public.


Who's the owner of the data directory? Sounds like it's not the webserver user
RandolphCarter
Inventory
 
Posts: 3953
Joined: Wed May 30, 2012 7:42 am
ownCloud version: 6.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Install problem

Postby LinuxLove » Wed Oct 10, 2012 8:02 pm

My account username is, and that is how it works by default in cpanel / apache 2.2 server environment. The domain user is the owner and apache runs that way.
LinuxLove
Beginner
 
Posts: 23
Joined: Wed Oct 10, 2012 1:30 am

Next

Return to ownCloud Community Edition 4.x and older

Who is online

Users browsing this forum: breid and 12 guests