chombium Posted May 17, 2007 Share Posted May 17, 2007 Hi, I've installed apache 2 and php 5.2.2 on Suse 10 SLES. I'm experiencing some weird problem: In the Apache DocumentRoot directory I have several files they are owned by the same user and have the same permissions. I can open some of them in a web browser and for some of them I get "error 404: Object not found!". At first I thought that I have so problem with the permissions After checking and setting the permissions and owner on the same values as the files that are opened correctly I've tried again but i got the same results. From the command line using the php cli I've also checked if the .php files are prased correctly and everything was ok. I didn't know what else to do so to give one last try I've created a virtual host in the same directory as the DocumentRoot in httpd.conf Everything works fine now, but it's a sort of a hack, not a real solution Everything in the httpd.conf as in the httpd.default except these few lines: DocumentRoot "/vas/www/htdocs/" <Directory /> Options FollowSymLinks Options +Includes +MultiViews +Indexes AllowOverride All Order deny,allow Allow from all Satisfy all </Directory> The config section for the virtual host is (it's the same with the one above): <VirtualHost *:4005> DocumentRoot "/vas/www/htdocs/" ServerName localhost ServerAdmin root@localhost DirectoryIndex index.html index.php AddHandler application/x-httpd-php .php AddHandler application/x-httpd-php-source .phps <Directory /> Options FollowSymLinks Options +Includes +MultiViews +Indexes AllowOverride All Order deny,allow Allow from all Satisfy all </Directory> </VirtualHost> When I try to access the files with http://localhost:4005 everything works fine. I've tried playing around with .htaccess file, but I didn't get any positive result Seems like I'm missing something in the Apache configuration, but I can not find what. Any Ideas? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/51783-weird-apache2-php522/ Share on other sites More sharing options...
btherl Posted May 17, 2007 Share Posted May 17, 2007 Which files could you open and which couldn't you open? Quote Link to comment https://forums.phpfreaks.com/topic/51783-weird-apache2-php522/#findComment-255152 Share on other sites More sharing options...
chombium Posted May 17, 2007 Author Share Posted May 17, 2007 Which files could you open and which couldn't you open? There wasn't anything special php code in the files. For examle I've created a phpinfo.php <?php phpinfo(); ?> then I've copied it as ppp.php, in the same folder as phpinfo.php changed the owner and permissions to the very same as phpinfo.php, and it return error 404. Don't know what to do ??? Quote Link to comment https://forums.phpfreaks.com/topic/51783-weird-apache2-php522/#findComment-255677 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.