Hi,
I can access to:
http://tresjolie.com.ar/administrator
but not to http://tresjolie.com.ar/index.php
The users report the same.
I’m running Apache as www-data and php also, I have mod_php activated for the server.
To get if working I moved the directory from
/home/tresjolie/public_html
to
/home/tresjolie/domains/tresjolie.com.ar/public_html
I just Recheck of the configuration and I got:
Apache configuration file /etc/apache2/mods-enabled/php5.conf contains SetHandler lines that PHP from running with domain owner permissions. These lines must be removed.
I comment them out, but the problem persists.
Btw, if I comment out those lines, how apache knows it has to execute php files?
Best regards,
Carla
Ps. My apache config:
<VirtualHost *:80>
ServerName tresjolie.com.ar
ServerAlias www.tresjolie.com.ar
DocumentRoot /home/tresjolie/domains/tresjolie.com.ar/public_html
ScriptAlias /cgi-bin/ /home/tresjolie/cgi-bin/
DirectoryIndex index.php index.html index.php4 index.php5
estos cuatro los pongo por desesperacion
AddType application/x-httpd-php .php
AddHandler application/x-httpd.php .php .phtml
AddHandler x-httpd.php .php .phtml
AddHandler php-script .php
AddHandler php-script .php
#AddHandler fcgid-script .php
#AddHandler fcgid-script .php5
#FCGIWrapper /home/tresjolie/fcgi-bin/php5.fcgi .php
#FCGIWrapper /home/tresjolie/fcgi-bin/php5.fcgi .php5
#ExpiresActive On
#ExpiresByType text/html “access plus 30 seconds”
#ExpiresByType text/css “access plus 1 weeks”
#ExpiresByType text/javascript “access plus 1 weeks”
#ExpiresByType image/png “access plus 1 day”
Compress some text file types
#AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Set header information for proxies
Header append Vary User-Agent
<Directory /home/tresjolie/domains/tresjolie.com.ar/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
#AddOutputFilterByType DEFLATE text/html text/plain text/xml
allow from all
AllowOverride None
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^tresjolie.com.ar$ [NC]
RewriteRule ^(.*)$ http://tresjolie.com.ar/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
<Directory “/home/tresjolie/cgi-bin”>
allow from all
AddDefaultCharset UTF-8
ErrorDocument 404 http://tresjolie.com.ar
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
ErrorLog /var/log/virtualmin/tresjolie.com.ar_error_log
CustomLog /var/log/virtualmin/tresjolie.com.ar_access_log “combined”
#php_value memory_limit 128M
#RemoveHandler .php
#RemoveHandler .php5
#IPCCommTimeout 61
#FcgidMaxRequestLen 1073741824
#SuexecUserGroup “#1008” “#1013”