Help Center Live Community
July 22, 2014, 02:25:30 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Install bug?  (Read 8391 times)
shawn
Not too much to say...
*
Offline Offline

Posts: 10


« on: June 18, 2007, 03:38:20 AM »

I installed an older version of HCL just fine... however trying to reinstall it again and getting this error:

[client **.***.**.***]  PHP Warning:  Smarty error: problem creating directory '/var/www/vhosts/mydomain.com/httpdocs/hcl/class/../compile/%%196/%%1964540384' in /var/www/vhosts/mydomain.com/httpdocs/hcl/class/smarty/Smarty.class.php on line 1115
[client **.***.**.***]  PHP Warning:  Smarty error: problem writing temporary file '/var/www/vhosts/mydomain.com/httpdocs/hcl/class/../compile/%%196/%%1964540384/4675eefbd1842' in /var/www/vhosts/mydomain.com/httpdocs/hcl/class/smarty/Smarty.class.php on line 1115
[client **.***.**.***] PHP Warning:  fetch(/var/www/vhosts/mydomain.com/httpdocs/hcl/class/../compile/%%196/%%1964540384/setup.tpl.php): failed to open stream: Permission denied in /var/www/vhosts/mydomain.com/httpdocs/hcl/class/smarty/Smarty.class.php on line 1279
[client **.***.**.***]  PHP Warning:  fetch(): Failed opening '/var/www/vhosts/mydomain.com/httpdocs/hcl/class/../compile/%%196/%%1964540384/setup.tpl.php' for inclusion (include_path='.:') in /var/www/vhosts/mydomain.com/httpdocs/hcl/class/smarty/Smarty.class.php on line 1279

Thanks for giving new life into this project!!!!  It is a very awesome script, congrats to everyone who has contributed.

Shawn
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #1 on: June 18, 2007, 04:09:24 AM »

Shawn, welcome!  The error gives it away, there's a permissions issue in the smarty compile directory.  What you need to do is using your FTP client or shell login, is chmod (or set permissions in some FTP clients) the directory 777 (Owner, group and everyone to read,write,execute).

The error indicates a unix type of server, so that should do it.  You should also set icons and cache to 777.

Side note here, I just noticed that WinSCP you can type in the number, but it seems to expect a leading 0, so it would be 0777
Logged

how may I help you today?
shawn
Not too much to say...
*
Offline Offline

Posts: 10


« Reply #2 on: June 18, 2007, 01:27:37 PM »

Update...

I didn't know if it was a script bug or something going crazy with my server.

What the script did was, created the /httpdocs/hcl/compile/%%196/ directory, however it was not writeable.  Then I permissioned it 0777.  Then it created the /httpdocs/hcl/compile/%%196/%%1964540384/ directory, however it was not writeable.  So, I permissioned it to 0777. Then it completed the install.

Just wanted to update you, not sure if this is a server issue with me (running a VPS on plesk 8.1) or if it is a script issue.  Just trying to help out a little.

mlzhosting, Thank you for your contribution to this script... very nice work.

Shawn
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #3 on: June 18, 2007, 03:19:37 PM »

That could be a server wide setting.  You can set in Unix/Linux how files and directories are set (umode) when they are created.  A truly evil sysadmin can set it that all files are set this way. 
Logged

how may I help you today?
dclune
Guest
« Reply #4 on: July 19, 2007, 12:22:18 PM »

Bastard! I just realized default apache does this... took me whole 4.63 minutes to work out what the heck was going on when I got the aforementioned errors.... then I realized that the script had created a folder chowned as apache with chmod as 660....

Grrr, I think its probably a plesk thing. I brought plesk just recently as an upgrade from cPanel... I quite like plesk, its alot nicer to use, but I do miss the functions that can be accomplished in WHM and cPanel...
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #5 on: July 19, 2007, 01:46:23 PM »

Hmm, someone should ask plesk about this, I'd imagine there is a setting somewhere in it that allows the umode to be set.  Generally, you would set the users umask for web to be 022 (User read/write/execute, Group read, world read).  However it sounds like plesk is setting the umask to 110.  That's not what I would call a good web environment.  If you change the system bashrc (usually /etc/bashrc) to a more sane setting, it will work better.  However there is also the possiblity it is being set in the user bashrc (~/.bashrc) in which case you would change the /etc/skel/.bashrc (notice the period there!)  Here is a snip of a bash RC:

Code:
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
        umask 002
else
        umask 022
fi

The second umask is the users, the first is for system accounts.  Also, it may be stored in the /etc/profile or ~/.bash_profile files.

When HCL creates the directory, who owns the files (apache or httpd or Huh).
Logged

how may I help you today?
dclune
Guest
« Reply #6 on: July 19, 2007, 02:04:07 PM »

When HCL creates the directory, who owns the files (apache or httpd or Huh).

Apache "660"

I have logged a plesk desk call to enquire Smiley Stupid defaults!
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #7 on: July 19, 2007, 02:18:39 PM »

I should explain umask a little, it's the complement to the final mode, so if you want 777 you would set it to 000, if you set 022, you get permissions of 755 (fairly permissive)

Hmm, I think I'll add a Unix permissions primer to the HCL install guide.  Once you get your brain wrapped around the way permissions works, it really does make sense, and the numbers are actually the easiest way to manipulate things, since they handle everything.

As Daryl pointed out, there is actually a forth bit, what's called the sticky bit, but going into that gets a little more complicated, and in most hosting environments, it's not used.
Logged

how may I help you today?
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.155 seconds with 19 queries.

Google visited last this page July 18, 2014, 01:52:20 PM