 |
 | Newbie needs configuration/general help. |  |
Joined: 17 Jul 2008 |
Posts: 5 |
|
|
 |
Posted: Wed Jul 16, 2008 3:11 pm |
|
 |
 |
 |
 |
OK. I'm really trying to like this software but can't seem to make it do anything other than be a nice GUI PHP editor. Here's my setup and hopefully someone can tell me what I should or shouldn't be doing differently.
I have a Linux server running Apache, MySQL 5, PHP5. On this server, I have several different applications. ALL of my coding so far has been by using a ssh session to get logged into the Linux server, editing the file with vi, and then testing them out by hitting the server with my web browser. I know, archaic sounding. But it has worked well for me over the years. I have work in Unix and vi for well over 20 years which makes data manipulation and code typing fairly easy for me. And now that the newer vi versions use syntax/color highlighting, it has been easier.
I've installed PhpED on my Vista desktop. The Linux is also running Samba so I can mount its drives on the PC. So I can open my source files in PhpED and edit/save them. But that is all I've been able to do with them so far. Every application is dependent on access to the MySQL services running on the Linux box. I know these are proably pretty basic easy questions to answer, but I've not been able to find clear cut examples/tutorials on how to set this all up for best practices.
1) I'd like to be able to run my php programs in the editor for debugging purposes so that I don't have to resort to looking at my server's apache logs. When I type the simplest of php scripts ( print "Hello there, World!"; ) it won't run. Complains about the TCP port on the SRV web server. I made sure that IIS is not running on my PC but other than that, there isn't much else I know where to look.
2) I'd like to have the php programs run inside PhpED and access the MySQL services on the server so that they will have access to all of my databases. I can't find anything on setting on this type of data connection.
3) In general, are there any tutorials/examples available to point me in the proper direction for this kind of development?
Thank,
MW
|
|
 |
 | |  |
Veteran
Joined: 24 Jan 2006 |
Posts: 311 |
|
|
 |
Posted: Wed Jul 16, 2008 6:55 pm |
|
 |
 |
 |
 |
Hi there, PhpED handles this setup actually very well. What you want is using Run MOde set to 3-rd party webserver and your project mapping set to your files on Linux. IMHO the most straightforward way is using dbg-wizard for that, more over so since you are looking to set the debugging:
http://www.nusphere.com/products/dbg_wizard_download.htm
There is also a very useful link on Project settings:
http://www.nusphere.com/kb/technicalfaq/howto_set_project_mapping.htm - one of the examples there describes your use case with Samba.
Hope it helps! THanks
|
|
 |
 | |  |
 |
 | |  |
Veteran
Joined: 06 Jun 2007 |
Posts: 289 |
Location: Vancouver, Canada |
|
 |
Posted: Thu Jul 17, 2008 12:18 pm |
|
 |
 |
 |
 |
If I understand correctly, you are mapping your Samba share as W:\, and your PHP scripts reside there. Your project settings should be similar to that for a local project:
* Root directory: W:\data\htdocs\
* Remote root directory: The same as the root directory, i.e. W:\data\htdocs\
* Root URL: the URL that would display the pages in W:\data\htdocs
My directories all have trailing back slashes, but I do not know if they are needed.
I hope this helps 
|
_________________

|
 |
 | |  |
 |
 | |  |
 |
 | |  |
Joined: 17 Jul 2008 |
Posts: 5 |
|
|
 |
Posted: Thu Jul 17, 2008 1:14 pm |
|
 |
 |
 |
 |
anno wrote: | Have you tried making the Remote Root Directory the same as the Root Directory as I suggested? |
Yes, I tried that. Get the same error.
As far as the Account goes, my understanding is that since I am able to save the files directly to my Samba mounted drive/directory, I don't need to enter any thing in order to publish the files. I'm not trying to edit/place any source files via http or ftp, and am able to just do File/Save from the menus.
|
|
 |
 | |  |
Veteran
Joined: 06 Jun 2007 |
Posts: 289 |
Location: Vancouver, Canada |
|
 |
Posted: Thu Jul 17, 2008 1:41 pm |
|
 |
 |
 |
 |
Indeed. Using Samba and a mapped drive, you have taken care of the mapping outside of PhpED and you do not need to use an (FTP/SFTP) account too. And account is only needed with remote debugging. The Remote Root Directory setting of /storage/data/htdocs/eval/Baseline would be a typical one with an SFTP account, but for local debugging (as you have), it does not seem appropriate.
In my environment, I have local projects (files on C: drive, and IIS on http://localhost), and also remote projects (files on C: drive, SFTP accounts for uploading to /home/something on server, and remote Apache at http://mywebserver). Debugging on all of these work like a charm. I am not using mapped drives anywhere. Perhaps there is a limitation preventing one from debugging on a mapped drive, but I do not know.
Sorry, I wish I knew the answer.
|
_________________

|
 |
 | |  |
 |
 | |  |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT - 5 Hours
Page 1 of 1
|
|
|
|  |