php - Laravel 5 and Wordpress 4.1.1 in the same server -
this first time try , after day of trying stuck. not have lot of experience ubuntu perhaps missed obvious.
i trying install wp (latest) , laravel 5 on ubuntu 14.04 installation in virtual box. want both work side side since wp take care of web site side of things , web app based on laravel 5.
the result wordpress works ok when go http://domain.com/app blank page , infamous 500 error:
failed load resource: server responded status of 500 (internal server error)   what have missed. thanks!
the directory structure:
/etc/var/www/public_site - public web site (wordpress installed here)  /etc/var/www/ (laravel 5 installed here)  /etc/var/www/public_site/wp-admin,                           wp-content,                           wp-includes                            app (as laravel public folder)   after reading multiple forum posts, have done:
.htaccess in /public_site/ contains:
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_uri} !^/app [nc] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress   .htaccess in /public_site/app contains:
<ifmodule mod_rewrite.c> rewriteengine on rewritebase /app/ rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>     /etc/apache2/sites-enabled/000-default.conf (and same sites-available)
<virtualhost *:80>         servername 10.0.0.204         serveradmin webmaster@localhost         documentroot /var/www/public_site          <directory /var/www/>                 options indexes followsymlinks multiviews                 allowoverride                 order allow,deny                 allow         </directory>          errorlog ${apache_log_dir}/error.log         customlog ${apache_log_dir}/access.log combined </virtualhost>      
i think best solution install them in separate folder.
e.g.:
/etc/var/wordpress   and
/etc/var/laravel   then, main domain point /etc/var/wordpress , can create subdomain point laravel, e.g.:
domain.com      --> /etc/var/wordpress app.domain.com  --> /etc/var/laravel   i think should not install them in same folder, make mainteinance nightmare
Comments
Post a Comment