Need php HElp in ubuntu

0 jurgen wolf · January 22, 2015
Hi
t apache up and running and everything works fine

the only thing i have a problem with is following

I created following file out of the terminal

test.php and i saved it in my hml folder  /var/www/html/test.php

if I go to localhost it shows up

now if I create a new file for example
/var/www/html/itsallfun.php

from the terminal, I can only edit and save  the file from within the terminal

if I try to edit this file in Notepad++, or geany it won't allow me to save it

whats going on there

If I try to save it in Notepad++ I get following message
"file is opened somewhere else"

If I try to edit it in geany I receive following
"Error opening file '/var/www/html/itsallfun.php': Permission denied

The file on disk may now be truncated"

What's going on here guys

Please help
thx

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Bernard Pyc0d333 Parah · January 22, 2015
cd /var


chmod 777 www


after trying that and it still doesn't work, you can then make change the html folders permissions thus:
cd /var/www
chmod 777 html

should work

or you can just open the file using nautilus which will surely work.
0 jurgen wolf · January 22, 2015
chmod: missing operand after ‘755/var/www/html/itsallfun.php’

Try 'chmod --help' for more information.
0 jurgen wolf · January 22, 2015
777 isnt working at all

@Bernard  i didnt change any permission

i dont know why i even have to do this

i can edit the site in the terminal BUT NOT in any editor
and if i check the permission i get the regular permission of rw-r-r  isnt that supposed to be like that??
0 Bernard Pyc0d333 Parah · January 22, 2015
did you change try changing the permissions in the while in the www folder?
0 Bernard Pyc0d333 Parah · January 22, 2015
did you change try changing the permissions in the while in the www folder?
0 jurgen wolf · January 22, 2015
if i type in the password i can only edit it in the terminal

but i cant do anything in notepad++
0 jurgen wolf · January 22, 2015
chmod: changing permissions of ‘/var/www/html/itsallfun.php’: Operation not permitted



its still not working

above message is what i get if i run this command
  • 1
  • 2

PHP

107,039 followers
About

Server-side, HTML embedded scripting language used to create dynamic Web pages.

Links
Moderators