I have stuck in a problem and have been trying to resolve it for last five days but could not get success up till now. Please help me out...
I have moved all the files and database one of my magento's project from my PC (running windows 7) to laptop (running Ubuntu 14.04 LTS).
- I installed xampp and import the database (Successfully imported)
- Made a virtual host (running fine)
- But as soon as moved my project files in vitualhost folder, it continuously redirecting to http://mylocalhost.local/downloader and throwing "Access Forbidden ERROR 403".
System.log of my magento's project is full of such type of errors
Warning:implexml_load_string():in E:\virtualhosts\myproject\app\code\core\Mage\Core\Model\Layout\Update.php on line 444
Please help me out...
please check the files under www/yourDomain.com/public:
1. permissions of files. should be : 0755
2. group of files : www-data
and then restart apache:
sudo service apache2 restart
Related
Web site had been running normally on Windows IIS 10 and .net 3.5 until the web site root directory was shared and was then mounted on Ubuntu via:
$ sudo mount -t cifs -o username=,password= //IP/fis /mnt/share
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
\?\D:...\web.config
After hours of googling and trying, I finally solved the problem by using workarounds.
I zipped the web directory and transfer to my Linux notebook. Unzipped it and zipped again on Ubuntu. I then transferred the new zipped file back to Windows. I unzipped it to a a folder which had not ever been mounted via SMB/CIFS. I created a new web site on the ever new folder and used a new pool. Everything was new and everything worked.
I removed all shares but the problem did get resolved until I used the above workaround. Is this a sever bug of IIS?
OpenProject installed to example.net/openproject per instructions on a rented Ubuntu 18.04 server. The site at example.net/ is no-longer accessible. Getting a 403 Error. How do I fix this?
Having just updated to the newest Windows 10 release (build 14316), I immediately started playing with WSL, the Windows Subsystem for Linux, which is supposed to run an Ubuntu installation on Windows.
Maybe I'm trying the impossible by trying to install Apache on it, but then someone please explain me why this won't be possible.
At any rate, during installation (sudo apt-get install apache2), I received the following error messages after the dependencies were downloaded and installed correctly:
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: No such file or directory
runlevel:/var/run/utmp: No such file or directory
* Starting web server apache2 *
* The apache2 configtest failed.
Output of config test was:
mktemp: failed to create directory via template '/var/lock/apache2.XXXXXXXXXX': No such file or directory
chmod: missing operand after '755'
Try 'chmod --help' for more information.
invoke-rc.d: initscript apache2, action "start" failed.
Setting up ssl-cert (1.0.33) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
WARN: / is group writable!
Now, I understand that there seem to be some folders and files missing for Apache2 to work. Before I start changing anything that will mess with my Windows installation, I want to ask whether there's a different way? Also, should I worry about / being group writable or is this just standard Windows behaviour?
In order to eliminate this warning
Invalid argument: AH00076: Failed to enable APR_TCP_DEFER_ACCEP
Add this to the end of /etc/apache2/apache2.conf
AcceptFilter http none
Note the following in your output
failed to create directory via template '/var/lock/apache2.XXXXXXXXXX': No such file
I tried listing /var/lock. It points to /run/lock, which doesn't exist.
Create the directory with
mkdir -p /run/lock
The install should now work (you may need to clean the installation first)
You have to start bash.exe in administrator mode to avoid a lot of problems related to network.
i installed Lamp (Apache/MySQL/Php) without any problem :
Start bash.exe in administrator mode
type : sudo apt-get install lamp-server^
add these 2 lines in /etc/apache2/apache2.conf :
Servername localhost
AcceptFilter http none
then you can start apache :
/etc/init.d/apache2 start
Following the great advice here I edited apache2.conf and inserted the following to end of file after receiving all the various errors above and apache2 then worked great on the debian wsl package:
Servername localhost
AcceptFilter http none
AcceptFilter https none
I have setup new server with following configuration.
Windows Server 2003 with IIS 6 / PHP 5.2.17 / MySQL 5.0.51a / PhpMyAdmin 3.5.6
PHP working fine as phpinfo is displaying fine in browser.
MySQL is installed properly.
But PhpMyAdmin 3.5.6 gives HTTP Error 403 when try to access it in browser by following way.
http://localhost/phpmyadmin356
OR
http://192.168.11.22/phpmyadmin356
phpmyadmin356 folder is under inetput >> wwwroot.
Please help me to resolve this issue.
I went through this guide. http://dpotter.net/technical/2009/03/installing-phpmyadmin-on-windows-and-iis-60/
Thank you,
Probably your permissions aren't set correctly for the phpmyadmin356 directory and/or files within that folder. You probably need, at a minimum, read permissions for IUSR and IIS_USERS.
I have set up ubuntu server on an old pc with webmin as well. I am not sure what was going on but i restarted the server and when it boots it now get this when Apache tries to start.
* Starting web server apache2
apache2: Syntax error on line 237 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/000-default: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
I have checked this file on this line and it looks like this:
# Include the virtual host configurations:
Include sites-enabled/
I have removed Apache and re installed it but not sure why it still fails.
As also answered by Qben, the issue was an invalid symlink in the sites-enabled folder. Removing the broken symlink and adding a valid one will fix the issue.
You do not have a default site enabled:
/etc/apache2/sites-enabled/000-default: No such file or directory
site-enabled should contain symlinks to files in site-available and I guess your 000-default symlink does not link to a real file in site-available.
I guess this Ubuntu guide might be of interest for you.
One of the reason may be that you might have some site that is not enabled.To check that
Go to /etc/apache2/sites-enabled
Out of many/some [sitename].conf files , one/some may be crossed
Delete those found crossed
Restart apache server
sudo service apache2 restart.
Hope this has helped you , but may be some other reason too. Thank you.