openSUSE Forums > Network/Internet » Apache without write permissions

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-Dec-2008, 14:31
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 2
thiagofesta hasn't been rated much yet
Default Apache without write permissions

Hi people,

I installed the OpenSuSE 11, and I installed the Apache with the installation... after the os installed, I tried to use the Apache, and it's ok.

But, I have a problem. Apache doesn't have write permissions.
I give chmod 777 to all the folders and files of document root of apache, but it not works!

A simple code to test it:
PHP Code:
<?php
$handle 
fopen("test.txt""w+");
fwrite($handle"abc");
fclose($handle);
this code generate this warnings:
Quote:
Warning: fopen(test.txt): failed to open stream: Permission denied in /srv/www/htdocs/test.php on line 7 Warning: fwrite(): supplied argument is not a valid stream resource in /srv/www/htdocs/test.php on line 8 Warning: fclose(): supplied argument is not a valid stream resource in /srv/www/htdocs/test.php on line 9
Alright, what is happening here?
Reply With Quote
  #2 (permalink)  
Old 23-Dec-2008, 17:16
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,232
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Apache without write permissions

See my answer re open_basedir in another thread.
Reply With Quote
  #3 (permalink)  
Old 24-Dec-2008, 08:14
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 2
thiagofesta hasn't been rated much yet
Default Re: Apache without write permissions

Quote:
Originally Posted by ken_yap View Post
See my answer re open_basedir in another thread.
Thanks guy! it worked...

Here is his reply: Sorting file permissions.. failed badly - openSUSE Forums
Reply With Quote
Reply

Bookmarks

Tags
apache, error, permission, php, write


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2