Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi.
Newbee on board.
I installed suse desktop 10.1.
Apache is running but when i try to test apache under user it returns: object not found.
Testing as localhost it works!
localhost (works)
localhost/me/index.html (object not found)
Moderator note: I have moved this thread from Member Intro to Newbie, because you ask a technical question.
I understand you can get the Apache welcome page. Now, what is your Apache root dir and where's the directory you want access to relative to the root dir? Without extra configration you can't access directories outside Apache root dir. Example (default config in most systems): Apache root dir is /var/www/html. It means that if you want to access /var/www/html/mydir/somefile.html, you point your browser to http://localhost/mydir/somefile.html. With such config you can't access /home/myname/anotherfile.html
Moderator note: I have moved this thread from Member Intro to Newbie, because you ask a technical question.
I understand you can get the Apache welcome page. Now, what is your Apache root dir and where's the directory you want access to relative to the root dir? Without extra configration you can't access directories outside Apache root dir. Example (default config in most systems): Apache root dir is /var/www/html. It means that if you want to access /var/www/html/mydir/somefile.html, you point your browser to //localhost/mydir/somefile.html. With such config you can't access /home/myname/anotherfile.html
As i said i have installed suse linux 10.1 desktop edition.
The problem lied elsewhere.
As i mentioned /localhost/ was ok. it returned the "it works" page from apache.
I found the solution.
A friend told me to use the ~ before my folder... so i tryed this: /localhost/~myacount/index.php and it worked fine!
I don't know why ~ (tilda) is necessary, i forgot to ask my friend :P
But anyway thx for your suggestion Mara.
~ moves (in this case) to your home dir. So that's more of less what I was writing about. But, if you have such config, be very careful when creating new users etc, because they can access their scripts/files the same way (if you're the only users, that's probably ok).
~ moves (in this case) to your home dir. So that's more of less what I was writing about. But, if you have such config, be very careful when creating new users etc, because they can access their scripts/files the same way (if you're the only users, that's probably ok).
Ok Mara.
I understand now.
I will check where apache resides when i'm@home.
So what do suggest me to do, so that i can call apache directly as user and not calling a redirect link?
You can set up a different Apache share, let's say in /var/www2. If you set the permissions in such a way that you and the apache user can work with the files, it will be fine. You can copy your files inside, but they stay in a safe place. I can provide an short example of such configration if you wish.
You can set up a different Apache share, let's say in /var/www2. If you set the permissions in such a way that you and the apache user can work with the files, it will be fine. You can copy your files inside, but they stay in a safe place. I can provide an short example of such configration if you wish.
Something like this should do (added to Apache config file):
Code:
<Directory /var/www2/public_html>
AllowOverride All
Options MultiViews Indexes
</Directory>
/var/www2/public_html is the real dir. Create it as root, change owner to your user. Then create a group with your user and apache user (www-data or apache, should be in the config file or just look into the system settings, it should be obvious) and change group of /var/www2/public_html to that group.
Give read/write permissions as needed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.