wolf3d Posted June 8, 2009 Report Share Posted June 8, 2009 (edited) Labdien! Nevaru nekādi tikt skaidrībā ar Session setingiem :( Pārbaudīju ar phpinfo(), ka Configure Command sadaļā ir rindiņa --enable-session. session.save_path man arī ir. Kaut kas līdzīgs šim /var/www/htdocs/tmp Pati php datne glabājas /var/www/htdocs/mySite Kad palaižu šādu skriptu <?php session_start(); if(isset($_SESSION['views'])) $_SESSION['views'] = $_SESSION['views']+ 1; else $_SESSION['views'] = 1; echo "views = ". $_SESSION['views']; ?> Logā vnk parādās šāds teksts Warning: session_start() [function.session-start]: open(/var/www/htdocs/tmp/sess_a1mq2ihngb26r02qn2asj5s472, O_RDWR) failed: No such file or directory (2) in /htdocs/mySite/test/ses.php on line 2 views = 1 Warning: Unknown: open(/var/www/htdocs/tmp/sess_a1mq2ihngb26r02qn2asj5s472, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/htdocs/tmp) in Unknown on line 0 tmp mapes permission setting man ir 0775 Edited June 8, 2009 by wolf3d Quote Link to comment Share on other sites More sharing options...
bubu Posted June 8, 2009 Report Share Posted June 8, 2009 Man jau izklausās pēc kļūdas teksta, ka tev vienkārši nav tādas direktorijas - /var/www/htdocs/tmp Pamēģini php kodā uzrakstīt: <?php file_put_contents("/var/www/htdocs/tmp/tests.txt", "testa fails"); ?> Vai tur izveidosies tests.txt fails? Quote Link to comment Share on other sites More sharing options...
wolf3d Posted June 8, 2009 Author Report Share Posted June 8, 2009 (edited) Es skaidri zinu, ka tur ir tāda tmp mape ;) Un to kodu palaizot rodas šāds Warnings Warning: file_put_contents(/var/www/htdocs/tmp/tests.txt) [function.file-put-contents]: failed to open stream: No such file or directory in /htdocs/mySite/test/ses2.php on line 1 Un fails tests.txt protams neizveidojas :( Edited June 8, 2009 by bubu Lūdzu netaisīt bezjēdzīgas QUOTEs Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted June 8, 2009 Report Share Posted June 8, 2009 safe mode? Quote Link to comment Share on other sites More sharing options...
werd Posted June 8, 2009 Report Share Posted June 8, 2009 No such file or directory in /htdocs/mySite/test/ses2.php on line 1 Tomēr neeksistē. Quote Link to comment Share on other sites More sharing options...
wolf3d Posted June 8, 2009 Author Report Share Posted June 8, 2009 (edited) safe mode? Nooot Safe Mode man ir ; ; Safe Mode ; safe_mode = Off Un to mapi es pats personiigi izveidoju :) Tikko apskatiijos, vinja tur tieshaam ir :@ Mani tas php apmierinaatu, ja vien Sesijas straadaatu :@ Edited June 8, 2009 by wolf3d Quote Link to comment Share on other sites More sharing options...
bubu Posted June 8, 2009 Report Share Posted June 8, 2009 Tiesības webserverim rakstīt tajā direktorijā ir? Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted June 8, 2009 Report Share Posted June 8, 2009 echo '<pre>'; system('ls /var/www/htdocs/tmp/');echo '</pre>'; ? Quote Link to comment Share on other sites More sharing options...
max Posted June 10, 2009 Report Share Posted June 10, 2009 (edited) Ja 100% direktorija eksistee, tad viennoziimiigi useris, zem kura skrien apacis (vai jebkursh cits web serveris), atrodas citaa grupaa (vai arii ar citu useri), nekaa ir iesetota temp direktorijai. Visbiezhaak shaados gadiijumos, ja direktoriju veido pats, useris un owneris ir root:root. Un ja taa, tad 775 noziimee, ka pilnas tiesiibas ir tikai ownerim un grupai, bet paareji rakstiit nevarees. ls -lah /var/www/htdocs/tmp & vi /etc/httpd/httpd.conf will be your friend :) Edited June 10, 2009 by max Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.