warnings after new installation 1.3.2

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Christiaan

warnings after new installation 1.3.2

Post by Christiaan »

Warning: fopen("./data/tracking10062003", "a") - Permission denied in /home/faq/inc/functions.php on line 105

Warning: Supplied argument is not a valid File-Handle resource in /home/faq/inc/functions.php on line 107

The data directory is set to '777'
What to do?

:?:
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

change the directory data/ to the same user as your webserver runs.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Rastus
Posts: 2
Joined: Mon Nov 10, 2003 6:43 am

Post by Rastus »

I'm confused :? by your answer, you mean to move the directory or to rename it?
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

no, the directory has to be owned by the user under which is your webserver running.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hsspirit
Posts: 6
Joined: Sun Nov 23, 2003 4:29 am

Post by hsspirit »

Hi there,

Forgive me for asking, but I'm new at php. I am receiving the same warnings using 1.3.8

Code: Select all

Warning: flock(): supplied argument is not a valid stream resource in /home/xtremewa/public_html/faq/inc/functions.php on line 106

Warning: flock(): supplied argument is not a valid stream resource in /home/xtremewa/public_html/faq/inc/functions.php on line 106
How do I make the directory 'owned' by the user??? Could you provide an example to us newbies. Sorry to trouble you!

Thanx!
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you have access via SSH or Telnet?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hsspirit
Posts: 6
Joined: Sun Nov 23, 2003 4:29 am

Post by hsspirit »

I access through SSH, I hope that helps

Thanx once again!
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay, that's great. :)

1. Login and go to the directory where your FAQ is located.

2. Then write this:


Code: Select all

chown -R <username of your webserver>:<group name of your webserver> data/
chown -R <username of your webserver>:<group name of your webserver> xml/
chown -R <username of your webserver>:<group name of your webserver> pdf/
chown -R <username of your webserver>:<group name of your webserver> config/
On a Debian system, the username of the webserver is "www-server" and the group is "www-server", too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hsspirit
Posts: 6
Joined: Sun Nov 23, 2003 4:29 am

Post by hsspirit »

Hi there,

Where abouts to I write that because I only get a list of folders and nothing to write anything with. I think I just need to get the Data folder with access permissions, but it won't let me change the chmod to 744.

Code: Select all

Warning: fopen(./data/tracking23112003): failed to open stream: Permission denied in /home/xtremewa/public_html/faq/inc/functions.php on line 104
I think I forgot to mention that in my last post. Everything else works, the admin side of it etc.

-baffled- lol
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

an chmod 644 should be enough. Which rights do have the files inside the directory data/?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hsspirit
Posts: 6
Joined: Sun Nov 23, 2003 4:29 am

Post by hsspirit »

It won't even let me inside the directory to check lol! God knows why!
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

That's strange. :(

Can you delete the directory data/ ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hsspirit
Posts: 6
Joined: Sun Nov 23, 2003 4:29 am

Post by hsspirit »

I can if I'm using WS_FTP, but I can't if I'm doing my site web-based. Tis very odd, it wouldn't let me CHMOD in WS_FTP either...?
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

I'm looking for an solution for your problem. A quick fix could be disabling user tracking in the configuration.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hsspirit
Posts: 6
Joined: Sun Nov 23, 2003 4:29 am

Post by hsspirit »

Thank you! That's great :D I'll see if I can do anything my end lol, I was trying to install it at 3am in the morning, so that could be a problem rofl.

Cheers :D
Post Reply