0
votes
1answer
100 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 ...
-1
votes
0answers
35 views

phpmyadmin and ubuntu external database [on hold]

I have a web server running apache and php5 and another server that runs my mysql. I've setup phpmyadmin on the apache server, and got it running... Took some doing, but I got it to create the ...
0
votes
2answers
117 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
126 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 ...
0
votes
2answers
6k 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
55 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
83 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
33 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
2answers
3k 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
251 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
79 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
88 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
64 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
88 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
810 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
186 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
35 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
284 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
931 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
1k 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
2k 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
655 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
1answer
510 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
1k 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
0answers
13 views

What are the recommended directory/file permissions for a web root content? [duplicate]

I'm using Ubuntu for deploying a website and I use same in PC also,recently I've faced error chmode() operation not permitted when trying to upload a file,though folder having 0777 permissions. And ...
0
votes
1answer
633 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
17k 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
13k 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
392 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
188 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 ...
4
votes
2answers
23k 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 ...