Re: install cakephp with on a sub-domain
Im not sure about your Apache2 config, but on my own server I following config for a CakePHP based site and it works perfect:
<VirtualHost *:80>
ServerAdmin info@domain.com
DocumentRoot "d:/domain.com/cakephprootdir"
ServerName cakephprootdir.domain.com
ErrorLog logs/cakephprootdir.domain.com-error_log
CustomLog logs/cakephprootdir.domain.com-access_log common
<Directory "d:/domain.com/cakephprootdir">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
one important note that I use windows server!
regards,
Mohammad
________________________________________
Java & C# desktop developer
PHP web developer
On Fri, Aug 9, 2013 at 6:42 PM, gannher <g.lebozec@gmail.com> wrote:
HelloI try your solution but always 404 : The requested URL /login was not found on this server.
Le vendredi 9 août 2013 18:25:59 UTC+2, Mohammad Naghavi a écrit :Have you tried the /var/www/client as DocumentRoot?
What is the 404 page content?Regards,
MNOn Aug 9, 2013 5:21 PM, "gannher" <g.le...@gmail.com> wrote:To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.--I have one web server. I would like run 2 website on this server. 1 website with SPIP (already running good) and 1 website with cakephp (problem with it).> SPIP => /var/www/vitrine/<spip_files>>> cakephp => /var/www/client/<cakephp_files>The cakephp website is accessible by `client.<url>.eu` but when i go to this address, i have a 404 error. Can you say me why ?Here my /etc/apache2/sites-available/default :<VirtualHost *:80>ServerAdmin webmaster@localhostDocumentRoot /var/www/vitrineServerName <url>.eu<Directory />Options FollowSymLinksAllowOverride All</Directory><Directory /var/www/vitrine>Options Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from all</Directory>ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<Directory "/usr/lib/cgi-bin">AllowOverride NoneOptions +ExecCGI -MultiViews +SymLinksIfOwnerMatchOrder allow,denyAllow from all</Directory>ErrorLog ${APACHE_LOG_DIR}/error.log# Possible values include: debug, info, notice, warn, error, crit,# alert, emerg.LogLevel warnCustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost><VirtualHost *:80>DocumentRoot /var/www/client/app/webrootServerName client.<url>.eu<Directory /var/www/client>Options Indexes FollowSymlinks MultiViewsAllowOverride AllOrder allow,denyallow from all</Directory></VirtualHost>Here the /var/www/client/app/.htaccess :<IfModule mod_rewrite.c>RewriteEngine onRewriteBase /RewriteRule ^$ webroot/ [L]RewriteRule (.*) webroot/$1 [L]</IfModule>Here the /var/www/client/app/webroot/.htaccess :<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php [QSA,L]</IfModule>Thanks :)
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home