-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File/Folder Permissions #4
Comments
If it is that script, you shouldn't have any permission issues as you are running Apache as you, not |
I've been using this one for a lamp stack: https://github.com/betweenbrain/linux-stuff/tree/master/ubuntu-web-dev-setup but on lubuntu? Joomla won't create a config file, FOF can't create a folder for caching stuff etc. |
It does sound like Apache is not running as you, or maybe the public_html is owned by root. Check out http://serverfault.com/questions/125865/finding-out-what-user-apache-is-running-as . Also, try running the following commands, as root, with replacing $USER with your username. chown -R $USER:$USER /home/$USER/public_html |
It looks like root has control unforunately :( but your commands above there don't seem to make any difference. I'd already tried the latter 2 before actually. I also checked my httpd.conf file and it seemed to be fine from the instructions |
Yes, Apache is not running under your user account, which is the root cause of the issue. Can you post the contents of |
Contents of that file. user being the username of the only user account i have set up for linux |
Is "user" your username? I'd not, you need to replace user with your real Best, Matt Thomas Sent from mobile. Please excuse any typos and brevity.
|
Yup user is the username of the account (thanks to the pc shop who did the initial setup) |
Can you post the output from |
|
Odd, that should work. Do you get any error messages when running |
There is a warning - but no errors. Warning:
|
I susect the issue is with |
OK i removed it. Still get a warning though:
Running that command just gives me |
So then, try reverting the last change to |
OK done that when restarting seems OK now
However still no file permissions. However I found adding those details to apache2.conf rather than httpd.conf (which I'd had to create - although the interweb said often you do) solved the issue as in I got this:
However apache then refused to restart. Which clearly was a real pita. So I'm wondering does there need to be some specific inclusion of the httpd.conf file in the apache2.conf file? which is where we're ending up with the issue? |
Now that Apache is running under the correct user, try these again
Yes, you do need to create Now, is Apache running or not? |
It does if root has permissions and it doesn't if user has permissions. ran those commands again and no joy. |
restarting apache gives:
|
There is obviously something wrong with your Apache configuration, but unfortunately, I'm not sure what else to suggest other than reviewing the tutorial step by step and see if you missed a step. Maybe even launch a VM and reproduce the steps by using https://github.com/betweenbrain/linux-stuff/tree/master/xubuntu-12.04-web-dev-setup. On a related note, I do wonder how using |
gahh. right will go through it again and triple check everything. thanks for all the advice :) I have no clue. I'm not sure what is 'supposed' to come with lubuntu. I don't think so though. As far as what I understood they just loadtested the PC for 24 hours before they handed it over to me as custom build pc's are most likely to break in 1st 24 hours |
I'm really sorry to say that. I've used these tutorials to build many Best, Matt Thomas Sent from mobile. Please excuse any typos and brevity.
|
For the web script it would be awesome to have a point about setting file permissions. been struggling to fix creating files/folder permissions for Joomla for the last 30/45 mins minutes!
The text was updated successfully, but these errors were encountered: