fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
June 19, 2013, 08:31:00 AM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27508 Posts in 6074 Topics by 1524 Members
Latest Member: fmwebster
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  FMStudio
| |-+  FMStudio
| | |-+  FMStudio Connection and Installation Problems
| | | |-+  Warning: session_start() - Permission denied
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Warning: session_start() - Permission denied  (Read 9058 times)
klatil
Newbie
*
Offline Offline

Posts: 12


« on: June 30, 2008, 11:35:34 PM »

When following a tutorial in 3rd chapter of the FMStudio complete guide : Perofrming a Find-all and displaying a table of records, I get the following error message:

Warning: session_start() [function.session-start]: open(C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp\\sess_vnh0hst61d9g3e9p729sm49jk1, O_RDWR) failed: Permission denied (13) in C:\inetpub\wwwroot\local\FileMaker\FMStudio_Tools.php on line 8

How do I correct this problem?

Thanks franK
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #1 on: July 01, 2008, 06:37:05 AM »

This is an issue with the windows auto installer for PHP. You will have to do the following:
- get a PHP Info page and preview it in your browser (find it in the commands menu of DW)
- read on the first page of the phpinfo for the location of the loaded php.ini file
- open that file with notepad
- find session.save_path a number of times until you find a setting that references the path in your error
- change the path to C:\Windows\Temp\
- do the same for the upload_tmp_dir setting
- restart IIS for settings to take effect

Best Regards,
Michael Petrov
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
klatil
Newbie
*
Offline Offline

Posts: 12


« Reply #2 on: July 01, 2008, 10:45:52 PM »

phpinfo has the following path to the php.ini

Loaded Configuration File    C:\Program Files\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\php.ini

If this is the file I'm supposed to modify, then I see the following in the "File uploads" section:

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =


Am I supposed to change ";upload_tmp_dir =" to "upload_tmp_dir ="C:\Windows\Temp\" ?


And in the sessions section should I change ";session.save_path = "/tmp" to "session.save_path = "C:\Windows\Temp\"?

I have attached my php.ini file (I had to change its extension from .ini to txt to be able to upload it.) since I do not see any  setting that would reference the path in my error.

Am I looking at the right file or am I on a completely wrong path?

Thanks franK



* php.txt (45.86 KB - downloaded 222 times.)
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #3 on: July 04, 2008, 07:20:06 AM »

Hi Frank,

The issue is probably because you let FMS install PHP for you instead of doing it manually. Therefore now it is using a mix of settings and is generally not optimized for proper testing. Your best bet is to grab the installer from http://php.net and install that copy. However you will have to delete/rename the PHP ini from the FMI folder to prevent it from loading, specifically rename/delete this file:
 C:\Program Files\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\php.ini

Then install the installer version, modify the PHP ini for correct temp folders, and hten copy it into C:\Windows. Once done restart IIS and it should work better.
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!