Help Center Live Community

Support => Installation Help & Software Support => Topic started by: vksaini11 on June 16, 2007, 10:11:57 AM



Title: PHP admin
Post by: vksaini11 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


Title: Re: PHP admin
Post by: HCL Admin 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.


Title: Re: PHP admin
Post by: HCL Admin 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?


Title: Re: PHP admin
Post by: vksaini11 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?

 


Title: Re: PHP admin
Post by: HCL Admin 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 (http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=48813&forum=1&post_id=214262#forumpost214269) (different PHP script, but simular problem) it is in the admin section of the control panel.


Title: Re: SETUP
Post by: asanoli 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!


Title: Re: PHP admin
Post by: HCL Admin 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


Title: Re: PHP admin
Post by: asanoli on August 22, 2007, 11:43:49 PM
It is a Unix server.
 
:'(

I don't know nothing about shell!!!


Title: Re: PHP admin
Post by: HCL Admin on August 22, 2007, 11:56:38 PM
Are you using an FTP client to change the permissions or the control panel?


Title: Re: PHP admin
Post by: asanoli on August 23, 2007, 12:04:57 AM
I'm using an FTP client (Filezilla).


Title: Re: PHP admin
Post by: HCL Admin 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.


Title: Re: PHP admin
Post by: asanoli 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!


Title: Re: PHP admin
Post by: HCL Admin 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.


Title: Re: PHP admin
Post by: asanoli on August 23, 2007, 12:42:19 AM
Shure! It is almost empty.



Title: Re: PHP admin
Post by: HCL Admin 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.


Title: Re: PHP admin
Post by: asanoli on August 23, 2007, 12:55:50 AM
I made the upload. The file is here: http://portaldoblues.com.br/hcl/debug.php



Title: Re: PHP admin
Post by: HCL Admin on August 23, 2007, 01:09:32 AM
Hmm, it shows that as a valid path, but I had missed the warning in the first message you posted, could not create /home.  That usually indicates that it can not find the proper path, yet that's the path that phpinfo shows...


Title: Re: PHP admin
Post by: asanoli on August 23, 2007, 01:14:09 AM
This is the warning:

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/46ccd015e085c' 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

My english is poor, so, sometimes I don't understand very well...


Title: Re: PHP admin
Post by: HCL Admin on August 23, 2007, 01:14:48 AM
Ah, we might have a culprit, copy everything in your config.php file to a second file, and overwrite config.php with the second file, looks like your config.php may be corrupted.


BTW, your English is just fine! 


Title: Re: PHP admin
Post by: asanoli on August 23, 2007, 01:19:23 AM
I did this right now, but it didn't work yet... http://www.portaldoblues.com.br/hcl/setup/


Title: Re: PHP admin
Post by: HCL Admin on August 23, 2007, 01:23:04 AM
Can you PM me your config.php file (remove your mysql password first)?

Something is up with it, as I continue to see errors in it.


Title: Re: PHP admin
Post by: asanoli on August 23, 2007, 01:24:30 AM
Shure... Here it is!


Title: Re: PHP admin
Post by: HCL Admin on August 23, 2007, 01:44:30 AM
Ah, now see, this is where working on two different source codes can cause problems, you need to set:

Code:
$conf['safe_mode'] = false;

to:

Code:
$conf['safe_mode'] = true;


as your host has safe_mode='on' in the PHP configuration.


Title: Re: PHP admin
Post by: asanoli on August 23, 2007, 01:49:06 AM
 ;D

wow!!! Thank you very much! I hope some day I can help you too.

Alexandre - Brazil