| Pages: [1] |
|
|
Author |
Topic: Installation error and upload folder not accessible (Read 275 times) |
|
zwaluw
Beta Tester
Posts: 16
|
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?
|
|
|
|
|
|
Jenkinhill
|
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.
|
Kelvyn
|
|
|
|
zwaluw
Beta Tester
Posts: 16
|
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.
|
|
|
|
|
|
Jenkinhill
|
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. 
|
Kelvyn
|
|
|
|
zwaluw
Beta Tester
Posts: 16
|
 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.
|
|
|
|
|
|
Jenkinhill
|
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!
|
Kelvyn
|
|
|
|
zwaluw
Beta Tester
Posts: 16
|
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.
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|