Programming :: PHP Debugger That Runs On A Webserver?

Jan 24, 2010

I'm a newbie on Linux and currently in the process of installing it. I'm planning to install the latest version of Apache, MySql, and PHP on the machine with a debugger on it. I haven't decided which debugger is suitable for this environment since I don't have any experience on it.

View 5 Replies


ADVERTISEMENT

Programming :: Code - Blocks - Shared Object - Debugger ?

Jan 18, 2010

I have created an application that has a executable program that loads in a shared object

the shared object loads in another shared object

both of these shared object I have created

For debugging I have been printf'in data to determine what is going on

I now have some odd memory issue, and need a bit more control over debugging...

I have one workspace set up and under my exectuable(will call maintest from now on) I have two items in my link libraries under project build options being soA and soB (so A is the shared object that maintest uses, soB is the SO that soA uses) I also have linker options pthread and ldl

At the beginning of my maintest I do my dlsym and load in each function that I will be using

I always run my program using maintest, because when I have one of the SO as the startup project(turns bold) and try to run it gives me "You must select a host application to run a library"

I tried to set up this host library, i Go to Menu->Project->SetProgramArguments and change the Host Application to the debug version of my maintest

I then hit OK and try to run again but I get the same error: "You must select a host application to run a library"

If I get this part working - which I need help doing, is tehre other steps that need to be taken to debug the so's? or will this make it so when i hit f8 it will run.

View 1 Replies View Related

Server :: Accessing Internal Webserver From Public Webserver

Dec 18, 2009

Ok let's say I have Apache Webservers on 2 different machines within my network, I have http://outterABC.com setup at dyndns.org to point to my modem at home, and my router forwards Port 80 to the ServerA Machine (i.e. 192.168.0.3). I can access my webpage I setup for the Server A Machine.

But what I want to try and do is somehow access my ServerB machine's website that is on my same network. I tried something like this http://ServerB.outterABC.com and the apache page came up with something like the page wasn't available. I want to access the content of the ServerB website, but because I have only one router, i can only forward Port 80 site traffic to my ServerA machine's website. I'm sure it's a different syntax I should use but i'm just not sure what I should enter to bring up the apache root web page for the Server B website via http://outterABC.com

I tried setting up DNS A records on ServerA, but I don't think it will work with what i'm trying to do above.

View 1 Replies View Related

Ubuntu :: Launcher For Quake That Essentially Runs A Shell Scripts That Runs Quakespasm With Certain Options?

Oct 13, 2010

I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?

View 6 Replies View Related

Programming :: Multiple Runs With The Same Login, C++?

Aug 3, 2010

I am trying to implement a corba program (client) to retrieve customerinformation from the server. Since the server allow to login once andperform your operations until the lifetime experies, i want the client to use already login connection to perform the retrieve function withoutlogin in to the server for every request.Suppose retrieve has three functions, logon(), perform() and logoff()Pseudo code;Quote:

1. User runs a client application
./retrieve <URI> <customerID>
2. if the client program has already login, donot login, go to 4

[code]....

View 3 Replies View Related

Programming :: Create The Thread Which Runs Then Drops Out?

Mar 11, 2010

I hope someone can help me with this. I need to call the same thread multiple times, but only run one thread at a time. So what I do is create the thread which runs then drops out. Run the main loop and after some time pthread_create the same thread again. So in pseudo code

[Code]...

I always presumed if I run a thread and it reaches with a pthread_exit, then the thread was destroyed? However I've found that after I've created the thread several 100 times the programme crashes? So can anyone advise how I call the same thread over and over?

View 10 Replies View Related

Programming :: Making Sure Only One Instance Of Script Runs Concurrently

Dec 11, 2010

I need to write a shell script that will be run from cron every minute or so. The script will use rsync to keep some folders across several machines in sync. I am very new to shell scripting so some answers might seem obvious but they are not to me:

1. How do I check at the beginning of the script if the script is already running and abort if it is? I saw that most processes use a PID file for that but I am not sure this is the right case for that and in fact how to do it exactly

2. Assuming the list of target machines/dirs to sync are supposed to come from some config file. How should I code that? Just use the normal shell tools that I already know (cut etc) or is there a better way?

View 6 Replies View Related

Programming :: How Can User Runs Bash Script At Boot Of PC?

Dec 28, 2008

I wanna that the pc starts (on/off), the pc arrives to gdm. It waits for an user to log.But but at the boot of this machine, I would like that an user has a script started in the processes (NO X cuz bash script).How can an user runs a script at boot of the PC ? (once only and no one loged)

View 4 Replies View Related

Programming :: Same Program Runs Multiple Times But Get Very Different Results?

Dec 7, 2010

I used wait4 to time a child process. but the results differ each other dramatically. why?my core source code lists as below.to the point: in linux 2.6 kernel, how to time a process with a high precision. and, only its user-time rather than the elapsed time???

static struct rusage ruse;
static pid_t u_pid;
int main(int argc, char *argv[])
{
int i;
code....

View 14 Replies View Related

Programming :: Make Script That Runs Program As Another User With Pass?

Jun 7, 2010

I'm trying to do a shell script which are suppose to run a program as a specific user at system boot up. The problem is that I don't know for sure how to make the script add the users password to the prompt when it's necessary.

Basically the program would be run like this:

sudo -u extrema program_name -r /srv/program_name -d

and in this example the password is, "hidden".

How would I make this script run this program as user extrema with the password "hidden" at boot-up? I know how to put the script in the rc.X directory and so on, its more the syntax of the code.

View 4 Replies View Related

General :: Used Debugger With (for C And C++)?

Mar 8, 2010

How do i use the Debugger in Linux. I am using Vi editor and terminal.For C and C++ programs.2. Any great tutorials or link.3. Is there any C and C++ IDE similiar to VC++? Were I can set breakpoints etc?4. Is makefile the option to compile multiple files while using Terminal for compiling?I would be delighted if someone can point me a valuable guide or book.

View 4 Replies View Related

Programming :: Write A Batch File For Windows That Starts Cygwin Tool And Runs Unix Scripts?

Nov 17, 2008

I need to write a batch file for windows that automatically starts the cygwin tool in windows and executes the unix scripts.Previously we had these scripts in unix server.Now we need to migrate them to Windows server.For this reason we are using cygwin tool that allows the scripts to be executed on Windows server.We had written a batch file that starts the cygwin tool,but we were not able to execute the unix scripts.How can we write a batch file such that it executes all the unix scripts in cygwin.

View 5 Replies View Related

OpenSUSE :: Debugger Exits Without Stopping At Breakpoints?

Sep 14, 2010

openSUSE 11.1
KDevelop 3.5.5 using KDE 3.5.10 "release 21.12.1"
gdb 6.8.50.

Problem: When I attempt to debug my program with breakpoints set the debugger does not stop at breakpoint. Message in gdb window is:

/bin/sh -c libtool gdb .../C++/Graphyxs/debug/./src/graphyxs --interpreter=mi2 -quiet
(gdb) set print static-members off
(gdb) Process exited

Attempted fix: Some forum posts suggest KDevelop upgrade. Upgraded from 3.5.4 to 3.5.5; gdb upgrade not available in openSUSE.

Other posts recommend assurance that debugger options are properly set. KDevelop Project Options has Compiler Flags -O0 -g3 with "debug" configuration.

View 1 Replies View Related

Ubuntu :: Configure Eclipse PDT With Zend Debugger?

Apr 14, 2011

I've been using Eclipse PDT with Zend Debugger to debug my PHP web scripts for a while, but after installing Ubuntu 10.04, I've been having issues setting up the development environment again.

I have installed Apache 2.2.16 and PHP 5.2.14 manually.

Eclipse was installed from the Synaptic Package Manager. I installed the Zend debugger and PDT for Eclipse under Eclipse's Help -> Install New Software.

Yet whenever I try to debug a web script it executes the script without stopping at any of my breakpoints. The debug window immediately shows the debug session terminated.

The end of my php.ini file located in /usr/local/lib says:

Code:
[Zend]
zend_extention=/home/nathan/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

[Code]....

View 1 Replies View Related

Ubuntu :: Unable To Get The Debugger Gui, Kdbg In The Repositories?

May 6, 2011

I just installed 11.04 and found that the debugger gui, kdbg, is no longer in the repositories. I have all repos enabled except backports. I also tried to find any information about the fate of kdbg, whether it is just not yet packaged for 11.04, or whether it is discontinued, but to no avail.

If it is being discontinued, I'll probably roll my own .deb package and post it somewhere - kdbg is too good to drop, I think. And while we are at it?

View 5 Replies View Related

Ubuntu Installation :: Unable To Install Data Display Debugger In 10.4?

Mar 13, 2011

I am trying to install DDD on ubuntu 10.4. Downloaded the tar.gz file and followed the instructions given on DDD web page.But I am not able to install DDD. While trying to do './configure && make' I get the following error. It says c++ is not working and is not able to create executables. I have g++ installed and I successfully create excutables from .cpp files. I've also checked the CXX variable and it is set to /usr/bin where g++ is expected to be placed.

root@tirth-laptop:/home/tirth/Downloads/ddd-3.2.1# ./configure && make
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu

[code]...

View 1 Replies View Related

General :: Debugger For Shell Script - Get Rid Of Multiple Exit Command ?

Jun 14, 2010

My two doubts:

(i) In office i open many terminal windows when i start my day and in each terminal i keep on login as different users many times in a day to do some task, by the end of the day when i need to exit from all terminals in a safeway instead of directly closing it i need to execute exit command or CTRL+D many times to close a single terminal safely. Can anybody tell me a way to exit from each terminal in single go, is there any command to acheive this ? I wish if we had a command like exitall like in vi we have :qa command to close multiple files opened in single window. I hope friends you have got what i am asking for ?

(ii) I want a software for debugging shellscripts searched a lot but dint got it.

View 7 Replies View Related

Ubuntu :: Make KGDB(kernel Level Debugger) Work On 2.6.35?

Nov 4, 2010

I am writing a device driver and want to debug it using KGDB.Could anyone tell how to install and debug with KGDB on Linux 2.6.35 distribution?

View 2 Replies View Related

General :: Install Immunity Debugger On System And Found It Very Diff?

Jul 19, 2010

install immunity debugger on system and found it very diff?

View 2 Replies View Related

Fedora :: Webserver After Update To F13?

Aug 26, 2010

My installation is Fedora 11 with Apache 2.2.15, PHP 5.2.13, mysql 5.1.47 an joomla 1.0.13.When I upgrade to Fedora 13 with preupgrade all seem to be ok, but when I open my website the main site is showing. I can see all the menu but when I open an article there is no text. I log on to joomla and edit the contents and I can see all text. Can anyone give a tip of how to solve this?

View 7 Replies View Related

Server :: Best Distro For A Webserver?

Jan 29, 2011

Which distro is the best for a webserver? and are there any specifics I should keep in mind choosing one?

View 1 Replies View Related

Fedora Hardware :: Install A 64 Bit - 14 - Webserver With 8 CPU's ?

May 24, 2011

I want to install a 64 bit Fedora (14) webserver with 8 CPU's. I am not sure if 8 CPU's are supported in Fedora 14? Do I need to configure something first or will Fedora just install nicely and use all of the installed CPU's?

View 2 Replies View Related

Ubuntu Servers :: Php Not Running On Webserver?

May 8, 2010

when i go to my server's IP address, the index.php files is downloaded, not run, how can I fix this? I have php5 installed and enabled.

Quote:

root@ubuntu:~$ ls /etc/apache2/mods-enabled/
alias.conf authz_user.load dir.load php5.load
alias.load autoindex.conf env.load reqtimeout.conf
auth_basic.load autoindex.load mime.conf reqtimeout.load

[Code]....

View 4 Replies View Related

Ubuntu Servers :: Accessing Webserver From Outside LAN?

Oct 20, 2010

I posted this question a while ago but haven't had any luck getting it answered so I reworded everything to make it more clear. I started an Ubuntu web server on an old work laptop. The purpose of this server is to host a small file-sharing site, a forum, and a wiki. I have no prior experience with command line Ubuntu but am trying to figure this all out.

So far Ive setup the LAMP server, so apache, mysql, and php are installed. Ive also installed phpBB3 and Mediawiki. Both phpBB3 and Mediawiki are able to open from inside my LAN. I also have SSH setup and am able to use putty to manage the server from inside my LAN. Mediawiki runs slow internally but this is a secondary concern.

Externally to the LAN I can access the webserver using SSH(but sometimes it is too slow for anything that opens up such as nano or the SQL password prompt to display and the connection drops). I can also browse to the site and see the default apache welcome message. But I cannot open the mediawiki or phpbb site. Both will sit indefinitely and not open. The access log on the server shows that the request is being passed through though.

View 9 Replies View Related

Ubuntu Servers :: Setting Up DNS For Webserver

Nov 17, 2010

how to create an entire server from scratch using a minimal install. I know Ubuntu Server 10.04.1 comes with packages that can be included during install but for the sake of learning I only installed SSH access.

I was able to get Apache2, MySQL, PHP5 installed and running fine. What I'm trying to do next is setup DNS so I can point fragdata.com to my Ubuntu server and have other people see my test site.

I have registered the nameserver ns1.fragdata.com with my IP and updated DNS in my registrar. I followed the tutorial but "dig fragdata.com" gives me the following:

Code:
root@linux-server:/home/syvil# dig fragdata.com
; <<>> DiG 9.7.0-P1 <<>> fragdata.com
;; global options: +cmd
;; Got answer:

[Code]....

View 9 Replies View Related

Ubuntu :: How To Turn Spare Pc Into Webserver

Feb 10, 2011

I have a spare duel core pc with 500GB HDD and 2GB memory so decided last night to do a full format and a complete install of ubuntu 10.10. My mission is to turn it into a web server. I have installed xampp for Linux and everything seems to be running smooth.

1) I used sudo apt-get install openssh-server and edited the sshd_config to change the port to 28. I have also opened the ports in my router but when i try to connect from another network pc i get connection refused.

2) I have a domain name I would like to assign to my server pc but don't know how to do it since "ifconfig" states 192.168.1.3 and my external IP from "whatsmyip.com" keeps changing.

View 8 Replies View Related

Ubuntu Servers :: Upgrade Webserver From Php 5.3.5 To Php 5.3.6?

Sep 1, 2011

In order to pass PCI compliance I need to upgrade our webserver from php 5.3.5 to php 5.3.6. I found this: [URL] however it doesn't seem to work. My best guess is due to the fact I have 64bit server. Is there something else I can do without going through a compile?

Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

Linux 2.6.38-10-server #46-Ubuntu SMP Tue Jun 28 16:31:00 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

View 7 Replies View Related

General :: Having A Dns Server And Webserver On The Same Machine

Sep 3, 2010

I have one desktop machine with fedora 11 installed and a Laptop with both linux and Windows Xp. I use the laptop as my client machine.

I want to set up both a dns and web servers on the same machine for testing and practise purposes.

how to do it bcoz I can set up the webserver but I can't browse the website on the Fedora machine when I use my laptop. I have learnt that I should set up a Dns server.

View 1 Replies View Related

General :: Setting Up A Webserver In Ubuntu 9.10?

Sep 1, 2010

i am planning to setup a Web server on AWS Cloud Platform.The requisites are

ubuntu karmic 9.10
Java - 1.6.0_20
Tomcat - 6.0.29
Apache - 2.2.14
Mysql - 5.1.41-3ubuntu12.6

Since i am not much familiar with Ubuntu,Shall i go for apt-get install or download source and compile each application.

View 4 Replies View Related

Server :: Move Over 500 Sites From Webserver

Jul 30, 2011

What's the best way to move over 500 sites from a webserver with apache and mysql on the same server.. to a new server?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved