Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running OpenSuse 11.3 X64. I have installed apache2, PHP5 and MySQL in order to do some web-design offline - that is internal network use only. phpMyAdmin is also installed. The default directory for the "server" is /srv/www/htdocs.

To access a specific site in progress, I create a subfolder there then just navigate via http://10.13.23.201/NAMEOFFOLDER from my internal network.

At least that is how it should work but it doesn't. I created a new folder called wlc so it's directory is /srv/www/htdocs/wlc. However, when I navigate to the address http://10.13.23.201/wlc I get a Remote Server Or File Not Found error from my browser. There are files in the directory that should load, for example: index.php as Apache has been set to recognize *.php files.

I know my approach should work as I can access /srv/www/htdocs/phpMyAdmin by going to http://10.13.23.201/phpMyAdmin and it loads just fine. Also the error is different if I go to a folder that doesn't exist, for example, http://10.13.23.201/THISFOLERDOESNTEXISIT will return an Object Not Found error.

share|improve this question
1  
What do the error logs say? Your error logs will provide clues to explain what is happening. – Stefan Lasiewski Mar 29 '11 at 3:36
Take a look at /etc/apache2/sites-enabled and verify that there is a default site that maps to /srv/www/htdocs. It may be that phpMyAdmin may have a mapping just for itself. – hafichuk Nov 24 '11 at 4:43

closed as too localized by Michael Mrozek Feb 26 '12 at 19:42

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

2 Answers

Sorry , is your wlc folder inside a vhosts or in the httpd.conf ?. If it isn't , just add it ( i don't know how it's set on suse though , because i'm way used to FreeBSD ), but check the httpd.conf or the /path/to/apache/conf/extra/httpd-vhosts.conf in that machine.

( the configurations be different on that one , and may have a Debian Layout ( sites enabled... ) ) Lemme know what you have ;)

share|improve this answer

make sure your application folder is owned by wwwrun:www

sudo chown -R wwwrun:www /srv/www/htdocs/[yourfoldername]
share|improve this answer