Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2011, 01:52
Woody619 Woody619 is offline
Junior Member
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Having trouble creating PHP file in terminal

Hello all! I am relatively new to Linux and the whole LAMP environment. I was following this excellent guide . When it came to make the info.php file I ran into a problem.

I write the code: vi /var/www/info.php
When I hit enter I get a blank screen with a descending line of blue tildes (~) on the left side. I figured this was creating a new php file and I insert my code into it.

I went to start the code, but it would not allow the less than (<) sign to be used as a character. When I hit the question mark (?) it allowed me to type, but each time would give an error.

Is there something I am missing from this step?

Thanks in advance!
Reply With Quote
Sponsored Links
  #2  
Old 13th June 2011, 01:59
Woody619 Woody619 is offline
Junior Member
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nevermind. I installed emacs and it works fine!
Reply With Quote
  #3  
Old 14th June 2011, 09:40
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

Argl

you have to switch to the Insert Mode by hitting "i". then enter your code, hit :w to just write, :wq (or :x) to save and quit.

it's not the newest one, but here is a vi manual: http://www.cs.fsu.edu/general/vimanual.html
Maybe google will help you find a more recent one, in case you use vi once again
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[The Perfect Spamsnake Ubuntu 10.10] - No mail relay, just errors. itsnedkeren HOWTO-Related Questions 2 20th February 2011 11:45
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 22:13
add web site serr57 Installation/Configuration 18 13th April 2008 12:40
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 15:22
site - databases trueshanti Installation/Configuration 20 26th May 2006 02:28


All times are GMT +2. The time now is 01:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.