Reputation: 209
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
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
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