Vico la patate
Vico la patate

Reputation: 209

Gedit do not display PHP (Lampp)

I use Apache 2 server with Lampp. Php 5 and MySql are correctly installed (under Ubuntu).

The server and all applications are started. But when I want to open a .php doc, it is empty. When I'm using firefox with locahost to check, the .php works fine.

Is it Gedit or PHP configuration? Should I ensure that PHP is in any manner used by Gedit?

Thank you for your response

Victor

Upvotes: 0

Views: 48

Answers (3)

william.eyidi
william.eyidi

Reputation: 2365

you probably don't have the permission to read your file created by apache

try this

cd your_directory_name_for_apache

sudo chmod -R 775 .

then try again

if it doesn't work try to reinstall gedit or simply install sublime

sudo apt-get install --reinstall gedit

this will install sublime

    sudo add-apt-repository ppa:webupd8team/sublime-text-3
    sudo apt-get update
    sudo apt-get install sublime-text-installer

then open it with sublime

Upvotes: 1

odus
odus

Reputation: 48

Make sure you are opening the file under var/www/html

Upvotes: 1

Parsa
Parsa

Reputation: 3236

Have you tried using another editor to open the php files such as nano. I think it is unlikely that gedit is failing to open the files. You could try reinstalling gedit:

sudo apt-get install --reinstall gedit

Upvotes: 0

Related Questions