I just bought a VPS (virtual private server) and did a fresh joomla install but then it says it couldnt create configurations.php ... which is alright not too bad.. i just copy the text at the end and create it myself.. but then ......
i removed the installation folder as usual on joomla... i login to the backend and i cant even change anything in global configuration because configurations file isnt writable or something and also ...
I couldnt delete or add pictures ... same thing .. permission problem!!!
Also in template manager those template folders didnt have the right permissions and it says:
Warning: file_put_contents(/public_html/templates/rt_omnicron_j15/custom/gantry_version) [function.file-put-contents]: failed to open stream: Permission denied in /public_html/components/com_gantry/core/gantryini.class.php on line 124
Here are my questions:
- Is this my hosts fault? It cant be because i had to configure the server myself!
- Will i just set the file permissions on my public_html folder to 755 or is that a security risk?
I have changed every single folder that joomla asked in the system info tab and on the template manager page but normally this didnt have to be done before on any other host?
My last shared host never had this problem! I just install (no problems there what so ever.. no red NO) and all permissions were set fine in all joomla folders!
please assist! I dont want my website to be a security risk!
If you are in VPS you have the root account and I would suggest you to install and configure suPHP. If you are using cPanel (if no, I would suggest you to use it too as it's easier to manage the site using cPanel and the license for vps is not expensive too), you can configure it using WHM easily. Here is the details how to configure it.
click here
I have root access and cpanel but never owned a vps before, always shared hosting ... so its all very new to me!
thank you very very much for your post and link!
if i install suPHP and configure it... i can leave my folders protected and this will solve all my problems when i want to change global configurations etc?
With suPHP, all iles created or uploaded by PHP or the user will be owned by the user instead of nobody like without suPHP so it will solve your permission issue.
I installed on a shared-server and the meaasage: "file_put_contents(/xxxxx/public_html/templates/rt_omnicron_j15/custom/gantry_version) [function.file-put-contents]: failed to open stream: Permission denied in /home/xxxxx/public_html/components/com_gantry/core/gantryini.class.php on line 124" is showing.
I have not ran into any problems so far but would really like a solution.
Seeing your error message, I am pretty sure it's the permission issue in your hosting. Could you please ask your hosting provider to check the permission issue in your account? You might want to ask them to install suPHP in the server for better security.