All about webserver configurations, PHP and databases.
Moderator: Thorsten
DogTags
Posts: 9 Joined: Sun Oct 17, 2004 7:24 am
Post
by DogTags » Tue Nov 16, 2004 7:42 pm
All files and directories owned by username:
Code: Select all
-rw-r--r-- 1 username username 2204 Nov 11 13:42 add.php
drwxr-xr-x 4 username username 2048 Nov 11 13:42 admin
-rw-r--r-- 1 username username 5887 Nov 11 13:42 artikel.php
-rw-r--r-- 1 username username 1522 Nov 11 13:42 ask.php
drwxr-xr-x 2 username username 1024 Nov 11 13:44 attachments
-rw-r--r-- 1 username username 1509 Nov 11 13:42 contact.php
drwxr-xr-x 2 username username 1024 Nov 11 13:44 data
drwxr-xr-x 2 username username 1024 Nov 11 13:42 docs
drwxr-xr-x 3 username username 1024 Nov 11 13:42 font
-rw-r--r-- 1 username username 1054 Nov 11 13:42 help.php
drwxr-xr-x 3 username username 1024 Nov 11 13:42 images
drwsrwsrwt 2 username username 1024 Nov 11 13:42 inc
-rw-r--r-- 1 username username 8669 Nov 11 13:42 index.php
drwxr-xr-x 2 username username 1024 Nov 11 13:42 install
drwxr-xr-x 2 username username 1024 Nov 11 13:42 lang
-rw-r--r-- 1 username username 2270 Nov 11 13:42 mailsend2friend.php
-rw-r--r-- 1 username username 1366 Nov 11 13:42 main.php
-rw-r--r-- 1 username username 1229 Nov 11 13:42 open.php
drwxr-xr-x 2 username username 1024 Nov 11 13:44 pdf
-rw-r--r-- 1 username username 14121 Nov 11 13:42 pdf.php
-rw-r--r-- 1 username username 5325 Nov 11 13:42 printing.php
-rw-r--r-- 1 username username 3131 Nov 11 13:42 save.php
-rw-r--r-- 1 username username 2033 Nov 11 13:42 savecomment.php
-rw-r--r-- 1 username username 2795 Nov 11 13:42 savequestion.php
-rw-r--r-- 1 username username 2292 Nov 11 13:42 savevoting.php
-rw-r--r-- 1 username username 1591 Nov 11 13:42 search.php
-rw-r--r-- 1 username username 1809 Nov 11 13:42 send2friend.php
-rw-r--r-- 1 username username 1874 Nov 11 13:42 sendmail.php
-rw-r--r-- 1 username username 1846 Nov 11 13:42 show.php
drwxr-xr-x 2 username username 1024 Nov 11 13:42 template
-rw-r--r-- 1 username username 1564 Nov 11 13:42 writecomment.php
drwxr-xr-x 2 username username 1024 Nov 11 13:42 xml
-rw-r--r-- 1 username username 1240 Nov 11 13:42 xml.php
-rw-r--r-- 1 username username 3465 Nov 11 13:42 xmlrpc.php
Thorsten
Posts: 15561 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Tue Nov 16, 2004 8:05 pm
Hi,
all files should be owned by the apache user.
bye
Thorsten
wrinkled
Posts: 5 Joined: Tue Nov 16, 2004 5:03 am
Post
by wrinkled » Wed Nov 17, 2004 3:18 am
Thorsten
I too just tried installing 1.4.3. Even with the INC directory set to (777) I could not get past the INC not writable error. I finally removed the two appropriate statements from the installer.php file. (One for the XML direcotry, and one for INC directory) That did the trick, the program seemed to install OK.
In another post you indicate that the permissions for Data / INC / ATTACHMENTS / PDF and XML all should be 766. If I make that change, the program doesn't run. I HAVE to set the permissions for INC at 755 or 777 to make the program run. Any Thoughts... Am I doing something wrong???
Also, you mention that the files should be owned by APACHE. What does that mean exactly?
Thanks again for the wonderful program.
David
Thorsten
Posts: 15561 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Wed Nov 17, 2004 8:01 am
Hi David,
phpMyFAQ writes files into to the file system, e.g. images uploaded by the Image Manager, attachments, PDFs, XML files and the log files. If PHP runs as a Apache module (mod_php), phpMyFAQ will be executed with the rights of the Apache user. This user has very limited rights and thats okay for security reasons. So the Apache user does not have the right to write into the file system. Thats the problem... I prefere PHP as CGI because then phpMyFAQ is executed under your own user rights and there's no problem.
This is a general problem.
bye
Thorsten
wrinkled
Posts: 5 Joined: Tue Nov 16, 2004 5:03 am
Post
by wrinkled » Wed Nov 17, 2004 11:51 pm
Thorsten
In my website control panel I have a Apache Handlers ICON. It lets me set an extension and its handler.
IE.
Extension(s) Handler
.cgi / .pl cgi-script
.shtml server-parsed
etc...
Should I set .php to be handled by something here?
Thanks again for your time...
Dave
Thorsten
Posts: 15561 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Thu Nov 18, 2004 8:25 am
Hi,
could you please post your phpinfo() and I can say what you could do.
bye
Thorsten
DogTags
Posts: 9 Joined: Sun Oct 17, 2004 7:24 am
Post
by DogTags » Thu Nov 18, 2004 3:13 pm
wrinkled wrote: Thorsten
In my website control panel I have a Apache Handlers ICON. It lets me set an extension and its handler.
IE.
Extension(s) Handler
.cgi / .pl cgi-script
.shtml server-parsed
etc...
Should I set .php to be handled by something here?
Thanks again for your time...
Dave
Hmmm....this could be done in .htaccess, too, couldn't it?
Maybe that would be the easiest answer. Would be great
Cheers
wrinkled
Posts: 5 Joined: Tue Nov 16, 2004 5:03 am
Post
by wrinkled » Sat Jan 01, 2005 5:15 am
Hello
Should i just attach a file to my post with the data or place it in a message? David
Thanks
Thorsten
Posts: 15561 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Sat Jan 01, 2005 2:23 pm
Hi David,
do you have SSH access to your webserver? Then you could easily set with
Code: Select all
chown -R <apache-user>:<apache-user> <phpmyfaq-folder>/
the correct rights.
bye
Thorsten
wrinkled
Posts: 5 Joined: Tue Nov 16, 2004 5:03 am
Post
by wrinkled » Sat Jan 01, 2005 3:04 pm
Yes, I have SSH access but I can't do a CHOWN myself, but the admin folks will do it for me if I submit a helpdesk. Thanks for all your help.
David