On win10 pro 64 I use WAMP Server 3.0.6 64bit for joomla localhosting
So, there are two virtual hosts in server: interopt and gmdb
The first works perfect
but when trying to run the second it responses with
Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (f:/wamp64/tmp) in F:\wamp64\www\gmdb\libraries\joomla\session\handler\native.php on line 194
Session_save_path looks correct while it's really placed on f:/wamp64/tmp (folder has read/write permissions
On 194 line of native.php is
session_write_close();
I use php version 7.0.10 (but the same problem appears when turnning on 5.6.25 too)
virtual hosts seem work perfect and host file too
Any idea? Could you please help?
My virtual hosts
<VirtualHost *:80>
ServerName localhost
DocumentRoot f:/wamp64/www
<Directory "f:/wamp64/www">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName interopt
DocumentRoot f:/wamp64/www/interopt
<Directory "f:/wamp64/www/interopt">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName gmdb
DocumentRoot f:/wamp64/www/gmdb
<Directory "f:/wamp64/www/gmdb">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Related
I have never had this issue before, it was working perfectly and after I reinstalled the server I now got a 404 when I call my 0.0.0.0/api/students/show.
I did composer production call on SSH to create latest autoloader. Cleared the cache for php artisan, the normal steps to setup a Laravel production app. But I still get 404 when I call the API endpoint.
Maybe the problems is something with chmod rights? Storage, etc. is already done...
In your apache2.conf make sure you've AllowOverride All and not AllowOverride none.
Example
<Directory /var/www/html/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Original Answer
You should not need to write Directory at all.
This is my working page custom .conf file on sites-available folder:
<VirtualHost *:80>
ServerName matiaslauriti.dev
ServerAlias www.matiaslauriti.dev
Redirect 301 / https://matiaslauriti.dev
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName matiaslauriti.dev
ServerAlias www.matiaslauriti.dev
DocumentRoot /var/www/html/public
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/matiaslauriti.dev/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/matiaslauriti.dev/privkey.pem
</VirtualHost>
</IfModule>
What I do have on my apache2.conf is default, I did not change anything:
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
My local IP is 192.168.29.248. And I want to run the PHP site normally when I run 192.168.29.248:8086 and Django website as 192.168.29.248:8086/django/. How can I achieve this?
My current vhosts.conf is:
<VirtualHost *:8086>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Please help?
I am trying to access my web app from my phone connected via same router but I am being able to only access the localhost home page but when I click on the respective virtualhost, I am not being able to access the page.
I have setup my virtual host through the interface provide in wamp server.
Wamp Server Version: 3.0.6
httpd-vhosts.conf
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp64/www
<Directory "D:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
Require all granted
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName transmit
DocumentRoot "d:/wamp64/www/transmit_renewed"
<Directory "d:/wamp64/www/transmit_renewed/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/projects/RnD"
ServerName dev.ei-rnd.loc
<Directory "D:/projects/RnD">
Options FollowSymLinks
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
Apache : 2.2.17
I have written above code to configure virtualhost in newly installed wamp. It gives me 403 error when dev.ei-rnd.loc hit on browser.
Please Note:
Already tried below options
uncomment Include conf/extra/httpd-vhosts.conf
Solution
<VirtualHost *:80>
DocumentRoot "D:/projects/RnD"
ServerName dev.ei-rnd.loc
<Directory "D:/projects/RnD">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
Im running Xampp on a windows 7 machine. I want to follow symlinks, but cant get it to work.
Anyone offer any help.
httpd-vhosts.conf file:
<VirtualHost *:80>
DocumentRoot E:\xampp\htdocs\xampp
ServerName localhost
<Directory E:\xampp\htdocs\xampp>
Options Indexes FollowSymLinks MultiViews ExecCGI
Require all granted
</Directory>
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
<VirtualHost *:80>
DocumentRoot E:\PHPDev
ServerName mypc.localhost
<Directory E:\PHPDev>
Options Indexes FollowSymLinks MultiViews ExecCGI
Require all granted
</Directory>
ErrorLog "logs/mypc.localhost-error.log"
CustomLog "logs/mypc.localhost-access.log" combined
I found the answer out.
Kind of feel stupid, it was because I was pasting a shortcut and assumed that it was the same. I needed to use the windows "mklink" command.
Didnt know they were different.
Create an .htaccess in your Document Root
Copy and Paste,
Options +FollowSymLinks
Options +Indexes
I have a feeling that your configuration in the Virtualhost is been overwritten by a other configuration file. Try to create the .htaccess file