1
vote
1answer
46 views

File Permission In www/html Directory For Security

How can I give permission to directories and files in www/html for security. This files have an .js , .php , .sh extensions.They execute in www/html by apache's user(mine is www-data). When I give ...
0
votes
0answers
62 views

Sending Email With PHP (SMTP) By Apache's User

I could send e-mail with php in ubuntu 12.04. The apache user (in ubuntu 12.04) didn' t make problem. But I can't send e-mail when I pass the ubuntu 14.04. The apache user(ın ubuntu 14.04) make ...
1
vote
2answers
89 views

Permission Denied When Create New File

I could create file with php fopen(..) when I used the ubuntu 12.04. But now I can't create file with php, because I pass ubuntu 14.04. I can open existing file to read or to write. But I can't ...
0
votes
1answer
101 views

Change Folder Permissions and All Sub-Folders

I'm working on a PHP website at the moment and I'm doing a LOT of writing to files and directories. Whenever these files are made, they're automatically owned by Daemon and I have to go into Terminal ...
0
votes
1answer
50 views

Can't access uploaded image to generate thumbnail in PHP [duplicate]

I had trouble fixing the file uploading, but then I ran chmod a+w /var/www and it worked - files were being uploaded to my specified directory. However, my script also generates a thumbnail ...
0
votes
0answers
29 views

Apache HTTP on UbuntuServer 13.10. No permissions to enter site from another computer

I've installed Apache, PHP5, MySQL and phpmyadmin on my 13.10 Server. Created folder /public_html and a file index.php in there like tutorial I read said. I gave chmods for these (folder and .php ...
2
votes
1answer
96 views

What are the best practices when setting files and folder permissions as a php developer under ubuntu?

I have created and set the permissions to some files and folders under /var/www/mywebsite. For files 644 and for folders 755. I am the owner of those files and folders, since I created them ...
0
votes
1answer
16 views

Setting up a debug/profiling environment for remote site

I'm having some issues with profiling a site that is loading slowly (close to 2 minutes). It is developed in PHP, Smarty and MySQL (using nginx as the web server), and I've been wanting to use Xdebug ...
0
votes
1answer
541 views

error (13: Permission denied) in nginx 1.4.1

I am facing this issue on my nginx setup on ubuntu 13.10 I got these weird error on the log of my local domain 2014/04/06 21:29:37 [crit] 18065#0: *3 stat() "/media/user/Backup/Sites/sp/" failed ...
0
votes
2answers
548 views

Problems with the /var/www folder

I am new to Ubuntu, I've installed 12.04. I used to use wamp server on Windows, and after changing OS I moved some files from www folder to /var/www on Ubuntu. But when I try to view that folder in a ...
1
vote
2answers
416 views

Apache permission problem in ubuntu 12.04

i am new to ubuntu , i have install ubuntu 12.04 install in my system i have install localhost(lamp) in my system . i was trying to import a data base with more size so dor that i need to change the ...
1
vote
2answers
21k views

ERROR 1045(28000) : Access denied for user 'root@localhost' (using password: no )

I got a problem with mysql server Actually i am not sure im tring to install queXS cati app on my ubuntu desktop i installed mysql server and php5 and when im trying mysql -u root it says "ERROR ...
0
votes
0answers
131 views

cron job exetue, but receive error + 500 internal server error

I created a cron job on my apache server's cPanel, every 5 minute push the script, with this command: lynx -source http://mydomain.com/...c_html/xxxx.php and that script does not execute.. i receive ...
0
votes
2answers
180 views

Is it Good Practice to Change Apache's /var/www/ (Default Root Directory)?

When you install Apache, PHP's default folder is /var/www/ by default. Some developers find it necessary to change the root directory to something like: /home/public_html/ (many shared hosting ...
0
votes
1answer
36 views

Http 500 while running .php code [closed]

I'm trying to create a VirtualBox that I can recycle across multiple projects, using a shell script to install all packages I need. I got Apache2, MySQL and PHP5 installed regularly and running a page ...
1
vote
3answers
6k views

default permissions for /var/www

I was trying to open a file and write to it with PHP at /var/www folder but it wasn't working so I did sudo chmod 777 var/www now I want to set the permissions for var/www to the default. what are ...
0
votes
1answer
584 views

Apache2 server failed to start after enabling `mod_rewrite`, returns “Operation Not Permitted” errors

I am trying to install cakephp ( a php framework) which requires to enable mod_rewrite. For this I followed Enable mod_rewrite answer. But after restarting my server It says: nitish@nitish-G31T-M7:~$ ...
0
votes
0answers
127 views

creating a file by php in /var/www/

i have a little problem. i'm studying php and my script: <?php $file = fopen("file.txt", "a+"); fwrite($file, "trolololo"); fclose($file); ?> doesn't work. On windows everything works ...
0
votes
0answers
112 views

problem with playing mp4 file on apache hosted webpage

I hope someone could assist me. My problem is: I want to achieve playing a mp4 file in webpage hosted by my apache2 server. Now I tried everything but he keeps giving me nothing. First my php ...
2
votes
0answers
82 views

Coordino permission issues?

I have downloaded the Coordino and wanted to run it on Ubuntu, tried to run it but its giving the following errors Warning: require(app/webroot/index.php): failed to open stream: Permission denied in ...
1
vote
2answers
182 views

Testing a php file for school with fopen() function, which does not work because of… permission issues?

I'm using Ubuntu in my laptop. Every time I turn it on, and after Ubuntu initializes, it ask me for my admin password, wich I do provide, in order to be able to use it. I've installed Sublime2, and ...
1
vote
1answer
2k views

403 forbidden error for all local projects after updating php and apache

I have 5 web app projects in my local machine with Ubuntu 12.04 installed on it. Everything was good, but today when I started a new project with symphony, I found that I should upgrade php to 5.4.x, ...
0
votes
1answer
199 views

apache2 wont display a folder - while another folder works…confused

I am on Ubuntu 13.10 PHP5 and am an intermediate PHP developer Exact same file (1.php) in 2 diff folders - one works and the other doesnt... http://localhost/vetpro2/1.php The above works as ...
0
votes
1answer
148 views

Changed apache www folder

So I changed it from /var/www to /home/John/Dropbox/www and I also did chmod 755 /home/John/Dropbox/www but it still says You don't have permission to access / on this server. I forgot how to do ...
0
votes
0answers
433 views

I have 403 Forbidden error run xampp

I have 403 forbidden error when call localhost Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ...
2
votes
2answers
1k views

Ubuntu 12.04 php PEAR package problem

I am using LAMP server on my Ubuntu 12.04 system. Before this time I have installed prestashop without any issues. But after a long time when I tried to install prestashop today, it really showed me a ...
1
vote
2answers
2k views

How to make php webpage to access the file in /root directory?

I am using Linux 12.04,apache and php is installed on it.I want to access a text file in /root/ folder.I am really confused with the permissions.The php script i m using <?php $file = ...
0
votes
2answers
3k views

Why can't I write to a file even after 777 permission?

On my ubuntu server I have Apache and PHP and all that nessory stuffs.. but when I run a php file <?php ...
0
votes
4answers
1k views

php script not executed by crontab

I have setup a cron to execute one of my php scripts. But the problem is the php script is not being executed at all not even partially. Here is the cron I have set up 45 23 * * * /usr/bin/php -q ...
0
votes
2answers
697 views

cannot access copied folder in htdocs of lampp in ubuntu?

I want to move my web content from window 7 to ubuntu 12.04. So I copy my web content and move it to my /opt/lampp/htdocs folder, then I have change the folder permission using :: 1) sudo -s 2) ...
1
vote
2answers
2k views

Permission denied while writing a file in var/www inspite of adding me to user group

I gave permissions to read and write files in /var/www to the working user(me) through the steps given in Whats the simplest way to edit and add files to “/var/www”?. It works fine when I try to ...
0
votes
1answer
1k views

How do I set up a localhost website?

I have created a simple index.php file which I have places in /var/www/ next I changed the permissions of the file with sudo chmod +x index.php I then ran Chromium and typed in localhost to the ...
0
votes
1answer
1k views

Change permission for ALL folders and files [duplicate]

Possible Duplicate: How to avoid using sudo when working in /var/www? I've been around Ubuntu for not too long now and I'm getting tired of a thing I used to accept. When I installed Apache ...
0
votes
2answers
20k views

Getting access to var/www [duplicate]

Very, very new user to Ubuntu and I've been searching for a long time without finding an answer. Probably I've gotten the answer but I don't understand it all that very well so I thought I try this ...
4
votes
2answers
15k views

I cannot save php.ini in ubuntu 12.04

I want to change the upload_max_filesize = 2M to 50M, then I started edit on php.ini, but when try to save it, it displays error message below Could not create a backup file while saving ...
0
votes
1answer
401 views

How can I run PHP scripts without prefixing my scripts with sudo?

I'd like to be able to run PHP scripts without needing to use sudo in every command. My user is not root obviously. How can I accomplish this feat? I'm new to Linux, and I have a little knowledge ...
0
votes
1answer
222 views

Executing adb from php

I am trying to run adb from PHP using: exec( 'adb devices', $output, $return_val ); but I get 126 error. I think the problem is that php is running as 'www-data' user and does not have permissions ...
6
votes
3answers
24k views

Default file permissions for php user www-data

I have a php installed on my ubuntu machine. The web root is /var/www I set the permissions for this folder like so: sudo chown -R ftpuser:www-data /var/www ftpuser is the user I set up so I ...