SnippetMaster Support Forums
Return to main website
 
April 20, 2008, 06:27:47 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2008, 06:27:47 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  Installation Issues  |  Topic: Installation error and upload folder not accessible « previous next »
Pages: [1] Print
Author Topic: Installation error and upload folder not accessible  (Read 469 times)
zwaluw
Beta Tester

Posts: 16


[-] Installation error and upload folder not accessible
« on: November 02, 2007, 03:24:38 AM »

Since my provider has installed PHP5 on his server I'am encountering some problems with Snippetmaster Pro 2, before there were no problems.
 
First the excisting Snippetmaster in DOMAIN/cms  ( or /var/www/p/DOMAIN/html/cms )  can't upload any images anymore in the folder DOMAIN/images (or /var/www/p/DOMAIN/html/images CHMOD value of 777).
(The altering of html pages with Snippettags in DOMAIN is still working.)
 
When trying to upload an image to this folder (.../images) I'am getting the next error message (translated from Dutch):
ERROR - The file could not be send
The file you tried to send could not be placed on the server.
 
I have contacted my provider to ask if they had changed the CHMOD value of my webroot, but it has still the CHMOD value of 755, so that can't be the problem.
 
Second I can't install Snippetmaster (using autoinstaller.php) on the server.
Here's the error message:
The Install Now! button will become enabled once you have selected the correct folder.
Warning: ftp_nlist() [function.ftp-nlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/p/DOMAIN) in /var/www/p/DOMAIN/html/cms2/autoinstaller.php on line 133
 
Warning: ftp_nlist() [function.ftp-nlist]: Unable to create temporary file. Check permissions in temporary files directory. in /var/www/p/DOMAIN/html/cms2/autoinstaller.php on line 133
 
But there is a Temp directory ( /var/www/p/DOMAIN/tmp) with a CHMOD value of 777.
 
What's wrong here?
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 347



[-] Re: Installation error and upload folder not accessible
« Reply #1 on: November 02, 2007, 05:04:36 AM »

I use SnippetMaster under PHP5 with no issues. Does sound to me like a host configuration issue. For the image upload issue have you checked php.ini to see if file upload is enabled? It does seem, though, that you don't have write permissions for temp files despite 777 permissions. Directory ownership???

You should be able to do a manual install even if you can't create temp files.
Report to moderator   Logged

Kelvyn
zwaluw
Beta Tester

Posts: 16


[-] Re: Installation error and upload folder not accessible
« Reply #2 on: November 03, 2007, 02:13:39 AM »

Hi Jenkinhill,

Thanks for the reply.

I'am not allowed to change php.ini, but I will ask my provider if they will check the settings.

If I will do a manual install of Snippetmaster, I'am afraid the folder /images will still not be accessible.
And besides, I have Snippetmaster already running on the server. The new install was only a attemp to solve the upload problem.

Because you and others don't have problems with Snippetmaster under PHP5, I think it's after all a provider issue.

Hope they will help me out.
« Last Edit: November 05, 2007, 01:14:51 PM by zwaluw » Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 347



[-] Re: Installation error and upload folder not accessible
« Reply #3 on: November 03, 2007, 05:13:20 AM »

You should also look to check that these entries in php.ini are correct:

session.save_path = /[your web home directory]/tmp
upload_tmp_dir = /[your web home directory]/tmp

You may be able to use .htaccess to "solve" the problem - although if the host is set up correctly you should not need to, and you may need to check the syntax with the host.

for the session save path:

php_value session.save_path /www/path_to_your_site/tmp

for the tmp directory:

php_value upload_tmp_dir /www/path_to_your_site/tmp

Of course, if Henri were here he could recommend a host where SnippetMaster is guaranteed to work. Smile
Report to moderator   Logged

Kelvyn
zwaluw
Beta Tester

Posts: 16


[-] Re: Installation error and upload folder not accessible
« Reply #4 on: November 03, 2007, 02:46:11 PM »

 Smile I've seen some server recommendations from Henri.
(Hopefully nothing the matter with Henri ?)

Thanks for the details, now I can be more specific when contacting my provider.
That will me monday I think.

How can I use .htaccess to "solve" the problem?
It's there and I can alter it, but I have no clue what to alter.
The only value in it is the ftp username connected with some code and I don't know where the code is coming from or refering to.
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 347



[-] Re: Installation error and upload folder not accessible
« Reply #5 on: November 03, 2007, 04:00:38 PM »

If the server is configured to allow .htaccess to overide php.ini then you would just add the lines I showed, corrected for your server path. You should be able to check the paths using phpinfo - there is a phpinfo.php file in snippetmaster/includes/diag which you can run.

The .htaccess file sits in the root of your website. Make a backup first, of course!
Report to moderator   Logged

Kelvyn
zwaluw
Beta Tester

Posts: 16


[-] Re: Installation error and upload folder not accessible
« Reply #6 on: November 06, 2007, 02:50:19 AM »

Well, I've contacted the provider.

There reply was the following:
"There is an error in the script of Snippetmaster. The /tmp folder has to be changed to tmp/
Then they suspect the script will probely work.
I've to change this setting in the configuration file or eventually in a databse (if used)."

Well, there is a problem, Henri has encrypted these files.

And, why did it work without any problem, before my provider changed to PHP5?

I'am affraid this problem won't be solved.
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  Installation Issues  |  Topic: Installation error and upload folder not accessible « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!