I am having an issue when I have a php application that is returning an internal server error (500) however nothing is showing up in the error log.
Now I know there are error with what I am trying to run, I know I have missing some files and what not but something should show in the apache error log (otherwise how are I supposed to know exactly what I am missing).
I created a test script is errors it in under the same vhost configuration and those error show up fine so everything seems configured right as far as php/apache. Are there certain php errors that does show up in the error log (php is configure to display any type of notice, warning, , error, fatal error, etc...)?
This is running on ubunut 10.04 with the standard apache and php from the ubuntu repo with apt-get.
How to create domain and subdomain in AWS?
I recently tried to set a test server up with Apache. The site must run under domain
www.mytest.com. I always get a
403 Forbidden error. I am on Ubuntu 10.10 server edition. The doc root is under dir
/var/www. The following are my settings:
Content of /var/www
ls -l /var/www/
drwxr-xr-x 2 root root 4096 2011-08-04 11:26 mytest.com
-rwxr-xr-x 1 root root 177 2011-07-25 16:10 index.html
Content of the host file on the server (with IP 192.168.2.5)
192.168.2.5 americano.mytest.com www.mytest.com
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ServerAdmin [email protected]
CustomLog /var/log/apache2/mytest-access_log combined
# This should be changed to whatever you set DocumentRoot to.
Options -Indexes FollowSymLinks
Allow from all
I have no
.htaccess file in my doc root. The permissions are set correctly (readable by www-data).
If I type in the IP address from my desktop, the site shows up correctly. I changed the hosts file on my desktop to point
www.mytest.com to the server's IP. When I use it, I get
403. Since many functions of this site are sitename-sensitive, I have to be able to access the site by the domain name.
Another funky thing is, even if all log files are created properly, they have no information regarding this error.
I am stuck. Can anybody help?
I am trying to change the DocumentRoot in httpd.conf from
/var/www/shop just so I can be organized. But even when I do that after restarting apache and httpd, I go to localhost and it still points to
/var/www. My httpd.conf is basically the same as this file here:
I am running this on Debian.
Any ideas? Thanks
I'm having a very weird issue with file_exists(). I'm using this function to check if 2 different files in the same folders do exist. I've double-checked, they BOTH do exist.
echo $relative . $url['path'] . '/' . $path['filename'] . '.jpg';
echo $relative . $url['path'] . '/' . $path['filename'] . '.' . $path['extension'];
Now let's use file_exists() on these:
var_dump(file_exists($relative . $url['path'] . '/' . $path['filename'] . '.jpg'));
var_dump(file_exists($relative . $url['path'] . '/' . $path['filename'] . '.' . $path['extension']));
I don't get it - both of these files do exist. I'm running Windows, so it's not related to a case-sensitive issue. Safe Mode is off.
What might be worth mentioning though is that the .png one is uploaded by a user via FTP, while the .jpg one is created using a script. But as far as I know, that shouldn't make a difference.