Page 1 of 1

public_html folder not visible

PostPosted: 14. December 2006 12:10
by nutkenz
Check out http://nutkenz.net/browse/tmp/xampp.png

I already tried renaming the folder to webroot and TEST, but neither would show in the browser after a hard refresh... How is this possible?

Re: public_html folder not visible

PostPosted: 14. December 2006 12:30
by Izzy
nutkenz wrote:Check out http://nutkenz.net/browse/tmp/xampp.png

I already tried renaming the folder to webroot and TEST, but neither would show in the browser after a hard refresh... How is this possible?

You need to put an index file in the directory like index.html or index.php etc.
Edited

PostPosted: 14. December 2006 12:37
by nutkenz
No, I want the default index because on the production server the actual webroot will be the /public_html folder. The problem is that I cannot see or access it on localhost.

When I try going to http://localhost/Zoek.net/public_html/ manually (the folder I do not see listed), I get a 500 Error:

Error 500
localhost
12/14/06 12:36:02
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0

Could this be related to the CakePHP .htaccess file?

Here's the contents of it:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

PostPosted: 14. December 2006 12:42
by nutkenz
Apparently it is because changing the .htaccess to:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

Resulted in the page being loaded, with errors of course because mod_rewrite isn't enabled by default apparently. I'll find out how to enable it and post it here, in case anyone else is having the same issue and stumbles upon this post. :-)

PostPosted: 14. December 2006 12:43
by nutkenz
Uncommented LoadModule rewrite_module modules/mod_rewrite.so and restarted Apache. I think that did the trick.

PostPosted: 14. December 2006 12:50
by Izzy
I see now what you are talking about but it was not clear in your first post.

When you get a server error read the xampp\apache\logs\error.log
The log file will have more clues than a message sent back to the browser.

re mysql error

PostPosted: 23. December 2006 12:54
by Marta
Hello
I looked at the error file but is not clear enough and here are the messages.

[Sat Dec 23 11:50:18 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0 configured -- resuming normal operations
[Sat Dec 23 11:50:18 2006] [notice] Server built: Sep 30 2006 21:24:06
[Sat Dec 23 11:50:18 2006] [notice] Parent: Created child process 3068
[Sat Dec 23 11:50:23 2006] [notice] Child 3068: Child process is running
[Sat Dec 23 11:50:23 2006] [notice] Child 3068: Acquired the start mutex.
[Sat Dec 23 11:50:23 2006] [notice] Child 3068: Starting 250 worker threads.
[Sat Dec 23 11:50:23 2006] [notice] Child 3068: Starting thread to listen on port 443.
[Sat Dec 23 11:50:23 2006] [notice] Child 3068: Starting thread to listen on port 80.
Could you please give me any suggestions?