Help Center Live Community
April 18, 2014, 04:02:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: PHP admin  (Read 22400 times)
vksaini11
Not too much to say...
*
Offline Offline

Posts: 2


« on: June 16, 2007, 10:11:57 AM »

Dear Friends,

I have installed HCL on my website - online, but i am getting following error
**********************************
PHP Warning: Smarty error: problem creating directory 'E:/Ensim/SiteData' in E:\Ensim\SiteData\Domains\Domains\mydomain.com\ROOT\Inetpub\wwwroot\helpcenter\class\smarty\Smarty.class.php on line 1115 PHP Warning: Smarty error: problem writing temporary file 'E:\Ensim\SiteData\Domains\Domains\mydomain.com\ROOT\Inetpub\wwwroot\helpcenter\class\..\compile\%%157\%%1577182921\4673a1b4d1cfb' in E:\Ensim\SiteData\Domains\Domains\mydomain.com\ROOT\Inetpub\wwwroot\helpcenter\class\smarty\Smarty.class.php on line 1115 PHP Warning: Failed opening 'E:\Ensim\SiteData\Domains\Domains\mydomain.com\ROOT\Inetpub\wwwroot\helpcenter\class\..\compile\%%157\%%1577182921\mod_HelpCenter.tpl.php' for inclusion (include_path='.;c:\php4\pear') in E:\Ensim\SiteData\Domains\Domains\mydomain.com\ROOT\Inetpub\wwwroot\helpcenter\class\smarty\Smarty.class.php on line 1279 PHP Warning: open(C:\WINDOWS\Temp\php\sess_f7805800d5263e8ef2f075b0b65ebd81, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\WINDOWS\Temp\php) in Unknown on line 0
***************************************************
I tried the chmod 777 through ftp interface to some files and folder, but it says "command not understood". The hosting is on windows and even the ensim dashboard is not showing the file permission change option for all the required files.

I am new to PHP MYSQL. Can anyone can help me please because I am not able to proceed from here.

Thanks in advance
VKS
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #1 on: June 16, 2007, 10:16:52 AM »

chmod 777 will only work on a Unix server.  On windows the directory simply needs Write permissions.

--------

Just for others that may be looking up chmod:

Each digit represents a class of users.  First digit is user, second is group, third is everyone else.

The number can be worked out with math.

0 = no rights
1 = execute rights
2 = write rights
4 = read rights.

So the above would allow everyone the ability to execute, read, and write the file or directory.

Under windows, the rights are simpler, however a little less flexible.
Logged

how may I help you today?
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #2 on: June 16, 2007, 10:19:47 AM »

Whoops, just noticed another error, the admin of the system needs to allow the PHP temp (C:\WINDOWS\Temp\) write permissions.  A user will never be able to adjust that.  Is this on your home machine or a server you own?

If so, what version of Windows?
Logged

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

Posts: 2


« Reply #3 on: June 16, 2007, 10:46:10 AM »

Whoops, just noticed another error, the admin of the system needs to allow the PHP temp (C:\WINDOWS\Temp\) write permissions.  A user will never be able to adjust that.  Is this on your home machine or a server you own?

If so, what version of Windows?

Thanks!
The site is hosted on a public domain server and probably window 2000  (not sure for current version) is the version

The helpcenter directory is loaded as one of the subdomain. As per install file instruction, there are certain folder in it which should have  write permission.
### Method 1 - FTP ###
  - Unzip the files on your local machine
  - If you have safe_mode on, change the config setting $conf['safe_mode'] to true in the config.php file
  - Upload the entire 'hcl' directory (you can re-name the directory if you wish)
  - CHMOD /config.php to 777
  - CHMOD /icons/ to 777
  - CHMOD /compile/ to 777
  - CHMOD /cache/ to 777

The problem seems to be - These folders are not having write permission in the wwwroot/helpcenter folder and this is causing the warning.

I have administrator rights on the alloted space and can RWE. But the scripts / functions are not able to write the output to various files inside those folders.

How to resolve this?

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

Posts: 882


WWW
« Reply #4 on: June 16, 2007, 10:59:13 AM »

Since the host is using Ensim, I believe you can modify file permissions through the built in file manager (of the control panel).  However, unless the admin fixes the \windows\temp permissions, php sessions will not work.  For that you probably will have to e-mail your hosting companies support staff or put in a trouble ticket.

According to this (different PHP script, but simular problem) it is in the admin section of the control panel.
Logged

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

Posts: 12


« Reply #5 on: August 22, 2007, 11:15:03 PM »

I'm having the same trouble...
Quote
Warning: Smarty error: problem creating directory '/home' in /home/portalbl/public_html/hcl/class/smarty/Smarty.class.php on line 1115

Warning: Smarty error: problem writing temporary file '/home/portalbl/public_html/hcl/class/../compile/%%196/%%1964540384/46ccb360de92c' in /home/portalbl/public_html/hcl/class/smarty/Smarty.class.php on line 1115

Warning: Smarty::include() [function.Smarty-include]: Unable to access /home/portalbl/public_html/hcl/class/../compile/%%196/%%1964540384/setup.tpl.php in /home/portalbl/public_html/hcl/class/smarty/Smarty.class.php on line 1279

Warning: Smarty::include(/home/portalbl/public_html/hcl/class/../compile/%%196/%%1964540384/setup.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /home/portalbl/public_html/hcl/class/smarty/Smarty.class.php on line 1279

Warning: Smarty::include() [function.include]: Failed opening '/home/portalbl/public_html/hcl/class/../compile/%%196/%%1964540384/setup.tpl.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/portalbl/public_html/hcl/class/smarty/Smarty.class.php on line 1279

I follow the instructions puting CHMOD 777 to the folders icons, cache and compile, and the config.php but it is not working yet. It is hosted at this adress: http://portaldoblues.com.br/hcl/setup/

Thanks for help!
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #6 on: August 22, 2007, 11:38:43 PM »

And this is a Unix server, correct?  If you have shell access try this (A BSD varient ran into a simular problem, not sure what was up):

Code:
$ chmod 777 icons/ icons/* compile/ compile/* cache/ cache/* config.php -R
Logged

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

Posts: 12


« Reply #7 on: August 22, 2007, 11:43:49 PM »

It is a Unix server.
 
Cry

I don't know nothing about shell!!!
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #8 on: August 22, 2007, 11:56:38 PM »

Are you using an FTP client to change the permissions or the control panel?
Logged

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

Posts: 12


« Reply #9 on: August 23, 2007, 12:04:57 AM »

I'm using an FTP client (Filezilla).
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #10 on: August 23, 2007, 12:08:51 AM »

Ensure that it's actually setting the directories and files to 777 (it should show -rwxrwxrwx in the permissions column.
Logged

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

Posts: 12


« Reply #11 on: August 23, 2007, 12:21:58 AM »

There are some different code as you can at the attachment, but I'm shure that it is 777 at the 3 folders. I try to install in an other server and it occurs the same!

Thanks for your patience!
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #12 on: August 23, 2007, 12:29:38 AM »

Can you post a shot of the inside of the compile directory?  Maybe that will shed some light on this.
Logged

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

Posts: 12


« Reply #13 on: August 23, 2007, 12:42:19 AM »

Shure! It is almost empty.

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

Posts: 882


WWW
« Reply #14 on: August 23, 2007, 12:49:25 AM »

Hmm, almost looks like the root path is messed up, however it shouldn't be since it's passed by php to the script.  The uploading the attached debug.php script to your site, and we'll see what's going on.
Logged

how may I help you today?
Pages: [1] 2   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.173 seconds with 20 queries.

Google visited last this page April 13, 2014, 10:02:48 PM