Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 1999
Posts: 37
Power User
Power User
Offline
Joined: Dec 1999
Posts: 37
i am wondering about the file permissioning and ownership for the wwwthreads installation package.
who should be the owner and the group the files belong to? root? apache? another user on the system? and what should all the file permissions be set to other than the ones that need to be able to be written to by the web server. It seems that after extracting the files they have different permissions and i can't figure out the system behind the defaults. for example i can't figure out why certain files have write permissions like the readme files etc...i have been doing some trial and error but i can't figure out the system of the permissioning. should any files be executable? the documentation is very limited in explaining this.. maybe someone can help me clear things up a little.



tgnb
Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
You should be able to set all files to being owned by the user you log in as. The PHP scripts do not need to be executable, so the normal scripts should be something line 644 or 664.


UBB.threads Developer
Sally #209298 03/22/2001 4:07 PM
Joined: Dec 1999
Posts: 37
Power User
Power User
Offline
Joined: Dec 1999
Posts: 37
Hmmm maybe something wrong with my server setup then.

i extract the fresh install file on my server using:
tar xvf wwwthreads.tar.gz
i rename the wwwthreads dir to forum using:
mv -p wwwthreads forum
i edit the config.inc.php, theme.inc.php and theme.inc.php files to use the database i have used with the php 5.1.6 version.
i ran the altertable script from the browser.
i enter the board in my browser and i get a parse error:
---
Warning: Failed opening '/var/www/html/fafa/languages/english/generic.php' for inclusion (include_path='') in /var/www/html/fafa/main.inc.php on line 41
Fatal error: Failed opening required 'languages//wwwthreads.php' (include_path='') in /var/www/html/fafa/wwwthreads.php on line 11
---
after some troubleshooting i find out that if i change the permission setting of just the "languages" dir from the default to 100 then i can get in.. however i still get warnings.
after i change the permission settings to some of the other dirs in the package to 100 i get almost no more warnings.
however if i try to post or preview a post i get some warnings as described in > this < thread.
i was wondering if this also could have something to do with permissioning and temporarily set all files and dirs to 777. but with no luck..
what do you think?
maybe it is a database corruption?



tgnb
RagnarokvW #209299 03/22/2001 4:25 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Many times hosting companies have very strict guidelines set to what directory/file permissions need to be. Normally directories need to be either 755 or 775.


UBB.threads Developer
Sally #209300 03/22/2001 4:35 PM
Joined: Dec 1999
Posts: 37
Power User
Power User
Offline
Joined: Dec 1999
Posts: 37
i am my own host :)



tgnb
Sponsored Links
RagnarokvW #209301 03/22/2001 4:47 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Ok, that makes things easier[]/w3timages/icons/laugh.gif[/]. On my system, for PHP, all directores are chmoded to 775, all files (except for the ones that are writeable) are 664, and owned by my user and group.


UBB.threads Developer
Sally #209302 03/23/2001 11:11 AM
Joined: Dec 1999
Posts: 37
Power User
Power User
Offline
Joined: Dec 1999
Posts: 37
Thanks for your help smile its definetely appreciated...



tgnb

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)