You say “but everytime i try it failes”. Now that is a very logical, but in computers also very vague way to tell something. After all it may be “you” at the throttle, but it is de userid you use that matters. Also, you say “it fails”. That again is a very human way of expressing something, but in realty the compter tells you different. In other worrds: What is the error message. Also explaining how you try to put files “in that directory” is needed information because there are miriad ways of doing this.
E.g., when I try with ny “normal” username to put something there:
Now everybbody can see who I am, where I am, what I do and what the computer says.
What matters is the owner and group of /srv/www/htdocs. What matter si also what access the owner, the group and the world has on /srv/www/htdocs. And what matter last is if the username you ar working with is that owner, or if it is member of the owning group, or not
you see that the owner of the file is wappl and that owner may read/write/search the directory;
that the group is www and all members of that group may not write;
that all others may not write.
Thus *henk, *not being *wappl, *may not write. (it would be a bit of a shame when all users on your system could write there and deface your web-site).
BTW that user wappl is of my invention. You will have a different owner, but we will know as sson as you post the output of
Sorry, to see enough it should of course be* ls -ld*.
Well, we see that user root (and group* root*) own that directory. That is not what I expected. I “invented” the user wappl to own this, but the group www is IIRC the default after install. Can you please post
ps -ef | grep apache
to see which user runs Apache. That user (or at least the group it belongs to) should be able to work with those files there.
You should BTW NOT log in as superuser, but you can use Dolphin as root by using (from the main menu > system > File manager) file manager in system management mode. You will be able then to copy those files there (being root). But as said above, I am not sure everything is OK there.
You talk about “a quick setup according the wizzard”, but again that is onknown to me. Never assume that others use the same things in the same way as you. Also I do not know any "Wizzard, not believing in magic. Did you start Apache using YaST ? Networkserver > HTTP server? or different?
Note this is a German Blog and i hope that you personally understand some German… - I runned the installation and the configuration using the Wizzard that is
described here : Webserver Installation unter OpenSUSE 11.4 | mnTechBlog
I personaly create a user wapppl in group www to be a fellow of wwwrun. And then made everything from inclusing /srv/www owned by wappl:www. Then I manage the contents with user wappl (where I do not use the GUI, but that is not important, the GUI can be used for those who want). Result: no root involved, not during managing the sites web contents and also not as owner of a place where maybe new files can be uploaded from the web.
I made the user wappl instead of using my “own” user for this. Seperation of responsibilities is important. I know now allways exactly when I am manageing the website and when I am at everyday scores like writing mails to aunt Betty and working with my bank account. Unix/Linux is a multi-user OS. Use that feature!
I do not explain this so that you do the same. But I want to show by example what ownership is and why it is important.
In the mean time I guess you found out that using a file manager (Dolphin or any other of those strange beasts) in superuser/administrator mode, will let you (that is* root*) copy anything to everywhere on the system. So your basic question is solved.
I can read German well, no problem. But the word wizard he uses in of his own invention (or is he MS infected?).
And when you post as you do on the English forum it is of no use to point to a German blog. Most can not read it and will leave your thread. Also you better tell yourself in short what you did:
. Install the LAMP pattern with YaST;
. Configured/started using YaST > Network Services > HTTP server, filling in the the following;
. etc.
That gives people direct real information and teases them to help you. I guess that is what you want: making it easy for people to help you.
I am going for a beer now and will logout till tomorrow.
Some differences here too. My /srv/www/htdocs is owned by root:root as well. If I need to copy files in it, I temporarily change the perms to 757, but I must say, that below htdocs I have folders, for multiple development sites, each have their own folder:
@henk - many thanks for the hints: Well with dolphin and Superuser-rights - i can place the files into the webroot, no problem here.] But this leeds to another issue. Well i have some issues with the user.
When trying to get to the site with the browser - then i get serious errors - 403 -!
Well this is told to be a general problem for all Joomla-users. They get into trouble with the so called wwwrun issue that is derived from the mode of some Apache-servers.
in almost every *ampp Systems PHP is loaded as an Apachemodule - and - with the usersystem of linux this causes the wwwrun issues
well i am trying to install a joomla-cms. This very very often causes issues in environments that load PHP as an Apachemodule.
When trying to get to the site with the browser - then i get serious errors - 403 -!
I must again point out the complete lack of information here. What browser? From where ( same system, same LAN, Internet)? What is the URL used?
I do not know if you have tried to find out what HTTP Error 403 means (also I am pretty sure that it is on the screen when you get it), it means “Forbidden”. It may point to a permission problem from Apache to the file. Thus again, what are the permissions of the file (and the directory it is in) that you think should be loaded by the URL given
ls -la /srv/www/htdocs
or another directory if that is where it is.
Also IMHO this is the very first time that you mention Joomla. My advice is that we first try to solve your present problem and that you then start a new problem whith a new telling title with the word Joomla in it. That will attrackt fellow Joomla users. Not the halfway mentioning of it in this thread.
Wow great advice - first things first; let us solve the first things here. What a great walktrough…** i am overwhelmded! **
Your ideas and questions were very helpful - i had a naming issue - there were some subfolders whitin my folder. So the very first trail was not able to find the correct one with the installation files.
With your tipps i was able to find out the mistake; and yes - meanwhile Joomla has some troubles with the wwwrun issue and the owner of the files (that migth be solved with some ideas of switching the way of PHP is load) that is not the question here.
Now i can see the installation process - and i can say - i am at the end of this thread - the goal is reached.
On a sidenote - nonetheless it would be clever to have several users - i have your words in mind that advice that security-issues that arise
if someone does not take care this - and works with an Apache that runs on his local machine!
PS;: the command back the following - the old - infect way - with the directory issue
and the new one - with the right way - the right directory-nane and all the stuff at the right place.
Well - someone migth find the root not the right user that does the stuff .- but as mentioned above. This is - right at the moment a thing i do not
know how to solve… Perhaps i have to re-read your advices above - and try to find out how to solve this - and create a new user that owns this stuff at
htdocs - hopefully i do not run into the traps the wwwrun issues …
well - beside i reached some goals - i think it is - on the long run helpful to think about your advices to have several users:
… Perhaps i have to re-read your advices above - and try to find out how to solve this -
sorry - i thougth that all has been solved and fixed - but unfortunatley this is not the case!
well - as you mentioned - i do not get rid of the issues - i still have them - untill i do some clear fixes and workarounds…
see the i got some things back after i installed a joomla cms - then i tried to install more things like some extensions (/into this CMS): See what i got back:
Warning: Failed to move file!
JFolder::create: Could not create directory
Unable to create destination
Well - i think i have to do something!
inux-ps95:/home/martin # ~> LANGUAGE=C ls -ld srv/www/htdocs
bash: /root: ist ein Verzeichnis.
linux-ps95:/home/martin # ls -d /srv/www/htdocs
there is no need to address me personaly if it is not a real personal messaage. I guess you want people here to help you, not just me.
I do not understand fully what you post, You do *ls -ld … but not between CODE tags and no output shown. and you do ps -ef … * but put it between PHP tags instead of CODE and two times (why?). And what did the first line in both PHP listings come from?
This is the last time I try to help you here in this thread. When you do not post things we ask from you we can not help you. The above is no answer to my questions why you are posting in post 13 what you post there and why you are not posting the COMPLETE computer command/output of what you want to show within CODE tags.
At the moment it is not even clear to me what your problem is. Can’t you still not put file into* /srv/www/htdocs* as the title of this thread says?
Or are you having a different problem> With Joomla maybe (you mentioned it somewhere). When you have a Joomla problem, then my advice is to start a new thread in the Applications forum which a title that mentiones in short what Joomla problem you have. This to make other Joomla users see that you need Joomla help.
In that new thread I also advice you to mention again what openSUSE you have and all that you may think could be of interest to the volunteers that might help you. Do not forget it is you who wants help and you should make it others as easy as possible to help you. They are not payed. The only reward they can get from helping you is the satisfaction it gives to have your cooperation to come to a good and fast solution.
And I hope you are now well aware about users, groups, ownership of files and the meaning of access bits. When not, do study that first.
O, and before I forget, you better forget about using user *nobody, *at least not before you have a proper idea about why that should be a solution (and for what) and telling us that. We should be able to follow your strain of though before we can make any useful comment on your conclusions.