I am totally new in Linux. I installed Ubuntu 14.04 and installed lamp also phpmyadmin. When I create any file or folder in
var/www/html
that time everything works fine. But when I past any folder or file from wamp that time that file is not working. I don't know the problem . actually I have few projects on wamp and I wanna transfer all project to lamp . now can any-one tell me that how to do it.
thanks in advance
You can give a permission to that folder.
In you command terminal write the following.
//This gives you permission for that folder and all its contents.
sudo chmod -R 777 /www/html Or
Alternatively you can first change to your development directory
cd /var/www
sudo chmod -R 777 html
Related
Well I have just switched to linux and i am having everything setup installed xampp installed every tool but when i try to run my project on localhost it gives an error and app does not open
I have tried to give access to my htdocs folder using this cammand but it still not working
sudo chmod 777 -R /opt/lampp/htdocs
please help if someone have any idea
Thanks
Your monolog set-up is pointing to /var/www and your install is at '/opt/lampp/htdocs'. The install is trying to set-up logging in the wrong place.
You would need to change the monolog setup to point to `/opt/lampp/htdocs'.
By the way, having a public facing web site with permissions at 777 is a security risk. I recommend you do either
sudo chmod 775 -R /opt/lampp/htdocs
or depending on your setup
sudo chmod 755 -R /opt/lampp/htdocs
More info at guide to linux file permissions
it was my MONOLOG_PATH which was not correct in application.ini file
the corrected path for me is
/opt/lampp/htdocs/myproject/logs/
I've setup HHVM & NGINX on my local machine, and it works perfectly without any problems. Last day I did it on my Ubuntu VPS, but with alot of errors, which mostly has been fixed, but the one I am unable to resolve is this one:
Fatal error: require_once(/usr/share/nginx/html/app/interfaces/interface.core.php): File not found in /usr/share/nginx/html/global.php
Now the issue is, that the path and file does exist, but this only works if I try to require a .txt file, but doesn't work with for example .xml neither. I have included the web path inside my server.ini file also: included_path = /usr/share/nginx/html
Other than that, HHVM & NGINX is setup correctly, it just isn't able to handle requires or includes, I don't know why.
Okay, after some research, I found out I had to chown the root folder of my webserver, but it didn't work with /usr/share/nginx/html. I had to move my files to /var/www/html and change the root folder, then I used this to grant entire folder permission access. sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 775 /var/www/html
I'm using the AWS for deploying my website contents and am using windows machine
Things I did
1)I use zend pdt for development and i have configured by the pem file via ssh
2)Checked whether files which is getting uploaded and inside the var/www/html folder
3)I have created all the folder /var/www/html via linux commands using Mobaxterm
4)I have changed the permission by chmod 777 for the folder
Finally i have tried the commands also
sudo adduser gs www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
Problem Statement
When i try to access the files via browser its not getting loaded http://54.191.190.17/c.html
Is there any steps which i missed , Kindly tell me a right step to follow to get it launched
I'm on Ubuntu 14.10 .
I copied a subdirectory which has project files (php, html, css) from xampp/htdocs on my Windows PC into /var/www/ of my ubuntu.
However, when I access those files from browser (I can not see the directory listing), I get 402 Object not found. Hence that, I installed Apache2,mysql 5.5 and phpmyadmin and also conducted update apt-get update for the system and I granted chmod-R 777 access to /var/www.
Any idea what might be the problem?
You must put the files on /var/www/html
Then try sudo chmod -R 755 /var/www/html
I've been using xampp to develop on windows with success but as recently I decided to make a change and start developing on Linux. I successfully installed xampp onto my linux machine. and the Apache sever is running "localhost". opt/lampp/htdocs is where Apache project resources are stored. the htdocs folder permission is restricting read and write, and i can't create folders and files to start my projects. I tried change permission for the folders but to no success.
How do i start developing on xampp severe and add files to /opt/lampp/htdocs
please advice ! ! !
cd /opt/lampp
sudo chmod 777 -R /opt/lampp/htdocs `
777 is the permission where you,group and other get all permission -R is any changes will affect in subdirectories and directories of subdirectories htdocs. where adding read=4;write=2 and execute=1 makes it 7.