News
: October 6, 2008 -
Submit Your Site for the October 2008 Site of the Month!
Home
Help
Search
Calendar
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
October 12, 2008, 11:55:24 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Web Hosting Forum | Lunarpages
>
Lunarpages Web Hosting - Advanced Assistance
>
Lunarpages - VPS Hosting
>
Problems with file permissions
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Problems with file permissions (Read 671 times)
plexcess
Newbie
Offline
Posts: 1
Problems with file permissions
«
on:
October 21, 2007, 05:14:26 PM »
Hello everyone.
I seem to be having a problem with the file permissions on my VPS site. I feel like it's a simple problem but thus far this is really throwing me for a loop.
I had a site that was based on Joomla. I moved it here from a different server and ftped it to a lunar pages shared server plan. Everythuing was fine after the move, no problems at all. A few days ago, me and my partner had to upgrade our account to a VPS plan instead. Again, we ftped and transrrefed the files over to the new host. We installed the database files through shell. The database is fine but the scripts we uploaded ar e reporting errors.
All over the site the Joomla CMS script was logging errors either writing or accessing files on the server, indicating it didn't have proper permission to do so. For example, our Joomla config.php file is supposed to be set to 644 (writable by owner rw-r--r--). At this setting the joomla script cannot write to the file at all, saying it doesn't have permission. It's only when I CHMOD the file so that it is writable by public (646 rw-r--rw-) does the script tell me that the config file is writable. This seems to be a problem caused by our server move, because I have never had to set files writable to the public to be able to be written to like this. I don't want to set all the files the site has problems with to be writeable in this fashion due to security, but I'm not sire where to go with this. There are other scripts on the site besides joomla, and all the scripts are having problems running correctly because of the file permissions. Is there something I need to set in my server that I am missing perhaps in Plesk? Thank you all for any help you can provide.
Logged
perestrelka
Administrator
Master Jedi
Offline
Posts: 1058
Re: Problems with file permissions
«
Reply #1 on:
October 24, 2007, 11:58:03 PM »
Hi,
Our shared servers use suPHP to run PHP scripts. suPHP executes the scripts as the user specified under virtualhost of your domain configuration in such case. Since your account is the owner of all files you upload, this allows PHP scripts to create or modify your files without any problems with permissions.
However, PHP is configured via mod_php module in Plesk by default. This means that all PHP scripts will be executed as the user used to run Apache which is nobody. So in order to get your scripts working, you need to allow nobody to write into files or folders by granting write permission into the files owned by your username to all others users or changing the folders and files modified in PHP scripts to the ownership of nobody.
I hope this helps. Please advise if you have any additional questions.
Logged
Kind Regards,
Vlad Artamonov
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Lunarpages Web Hosting - Information & Opportunities
-----------------------------
=> Lunarpages Web Hosting - Announcements
=> Lunarpages Web Hosting - Hosting Plans & Site Information
=> Job Opportunities at Lunarpages Web Hosting
=> Lunarpages Web Hosting - Network Information
=> Lunarpages Web Hosting - Server Information
-----------------------------
Lunarpages Web Hosting - Before Signing Up
-----------------------------
=> Lunarpages Web Hosting Plans - Pre-Sales Questions
-----------------------------
Lunarpages Web Hosting - Online Help Desk
-----------------------------
=> Lunarpages - Webhosting Help
=> Lunarpages - Beginner Assistance
=> Lunarpages - How to's
=> E-mail with your Lunarpages Hosting Plan
=> Lunarpages - CPanel Help
=> Lunarpages - LPCP Beta
=> Lunarpages - Ecommerce Hosting
=> Lunarpages - FrontPage
=> Lunarpages - DreamWeaver
=> Lunarpages - Message Boards-Forums-Fantastico Scripts
===> Lunarpages - Joomla / Mambo
-----------------------------
Lunarpages Web Hosting - Advanced Assistance
-----------------------------
=> Web Management
=> Lunarpages - Webdesign and HTML
=> Lunarpages - Search Engine Optimization
=> Lunarpages - Animation & Flash
=> Lunarpages - Graphics
=> Lunarpages - Web Hosting, Email & PC Security
=> Lunarpages - Dedicated Web Hosting
===> Lunarpages - cPanel & WHM
===> Lunarpages - General
===> Lunarpages - Plesk
===> Lunarpages - Security
===> Lunarpages - Tutorials
===> Lunarpages - Webmin
=> Lunarpages - Reseller Web Hosting
===> Lunarpages - WHM
=> Lunarpages - VPS Hosting
=> Lunarpages - SharePoint Services (Beta)
-----------------------------
Lunarpages Web Hosting - Coding
-----------------------------
=> Lunarpages - ASP
=> Lunarpages - C++ / PERL / CGI
=> Lunarpages - PHP & MySQL
=> Lunarpages - Java Applets & Javascript
=> Lunarpages - JSP & Servlets
=> Lunarpages - Ruby Hosting
=> Lunarpages - Windows Development & Hosting
-----------------------------
Lunarpages Web Hosting - Entertainment
-----------------------------
=> Lunarpages - Chat & Stuff!
=> Lunarpages - Contests
=> Fun at Lunarpages!!
=> Lunarpages - Online Gaming
-----------------------------
Lunarpages Web Hosting - General
-----------------------------
=> Social Networking
=> Lunarpages Free Web Hosting - Education Program
=> Lunarpages - Affiliate Program
=> Introduce Yourself to the Lunarpages Forum Community!
=> Your Websites & Creations at Lunarpages!
=> Lunarpages Website of the Month
=> Lunarpages - Service and Trade
Loading...