Jump to content

Need to use wine


Looktrne

Recommended Posts

Ok I have a windoes exe file that I need to run on my linux/apache/fedora dedicated server...

 

so sat the file name is

 

php.exe

 

then I would run it by using

 

wine php.exe

 

is this correct?

 

also could I have a link to install wine on my server?

 

thanks for your help

 

Paul

Link to comment
Share on other sites

ok I got wine installed that worked...

 

but now I am trying to run the file

 

wine php.exe main.php

 

(would this command be the same as dropping main.php into php.exe in windows????)

 

I am getting the following error though

 

Application tried to create a window, but no driver could be loaded.

Make sure that your X server is running and that $DISPLAY is set correctly.

X-Powered-By: PHP/5.2.1

Content-type: text/html

 

Any Idea why this is not working

 

thanks for the help

 

Paul

Link to comment
Share on other sites

Because I have no clue what I am doing.. someone told me I needed to use wine to run a windows exe file

 

this file called php.exe on my windows computer at home

 

when I drag and drop main.php into the file php.exe

 

it spits out a new file called main.php.de

 

I need to do the same on my server so I can have this happen through a php website..

 

I can code some php but I have no idea how to execute the windows exe file the easiest way?

 

do you suggest I unistall wine?? it was 36 megs to download and if I dont need it I dont want it.. just someone told me I would need wine to run this php.exe file

 

when I run it on windows all it does is show the black command screen and then spits out the new php file

 

if you could help me do tell what I should do...

 

I want to run this function with exec() in php to drop a php file into php.exe

 

thanks for all your help

 

Paul

Link to comment
Share on other sites

Uhm, if there is no equivalent of the windows app on linux. ya can try and use wine.

but since linux has php/apache/mysql there shudn be a need to run the windows version of php.

 

just copy yer scripts over, linux php dun have the .exe extension and try yer scripts

 

php /home/myacct/usr/scripts/test.php

 

just a note, linux and windows store text files line terminators differently.

but shud be fine when running the script on another platform. it's when editing these files it becomes apparent, that something is not quite right.

Link to comment
Share on other sites

ok lemme get to the point

 

the file

 

php.exe (is not to run a php file it is actually transforming this php file into a file I need)

 

for example it takes index.php 

 

and makes index.php.de (this is not a standard php file and is not for running I just need the new file for download)

 

none of these files need to run on the server except php.exe

 

it is basicly a tool to transform the first index.php page into something different and called index.php.de

 

I am not trying to run these files

 

I need to upload one index.php

 

and download what php.exe produces index.php.de

 

php.exe (is not for running php files it is a tool to transform these files)

 

I hope you can understand what I am trying to say

 

Paul

Link to comment
Share on other sites

Is there a way to have it ignore the GUI enviroment???

 

because this file runs without any user input or screen output?? can I tell it forget about the enviroment just run???

 

just a though? probally crazy... otherwise if not how can I check and setup this enviroment?

 

Paul

Link to comment
Share on other sites

This is all a little confusing considering the name of the php cli interpreter on windows is php.exe, anyways...

 

Is there a way to have it ignore the GUI environment???

 

You will need to find out whether or not this exe file has a command line interface, allot of windows applications don't.

Link to comment
Share on other sites

Ignore gui...

nope, i dun think wine was meant for that.

 

but if this is a dos app rather than a windows app, than maybe the solution u shud be looking into is DOSEMU instead of WINE.

 

I'm pretty shure u can give DOSEMU a pathname for an emulated dos environment.

Link to comment
Share on other sites

I believe it is a dos app

 

because when I drop a file into it I see the black comand line box appear for a second or two and then goes away and the process is done...

 

so is this a dos app??? the user does not need to see or input anything into this except to drag a file into it

 

Paul

 

ps.. sorry for the confusion with the php.exe title but I did not name the file :)

Link to comment
Share on other sites

Breaking news...

 

it is a dos ap I just ran it from the command line in windows without a problem....

 

so please tell me how to unistall wine

 

do I

 

yum uninstall wine????

 

also give me a tip on running the dos file?

 

thanks for putting up with my inexperience guys

 

Paul

 

I am really new to this area in things

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.