Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Please Save Me From Insanity!!!by bennierounder (Sexton) |
on Feb 08, 2018 at 23:17 UTC ( [id://1208763]=perlquestion: print w/replies, xml ) | Need Help?? |
bennierounder has asked for the wisdom of the Perl Monks concerning the following question: Sorry its a long post guys, but this is my situation. I'm trying to upload a perlscript onto hostgator access server and they are telling me I need a .php file to execute this code. Can anyone help at all? HostGator Support The agent has requested for your authentication before they are able to assist you further with your request. i want to upload and execute a perl file Nicolas Bryan joined Thank you for contacting live support. My name is Bryan. How may I assist you? hi bryan am I able to execute a perl file on a subdomain? Yes that is executable on a sub-domain. how do I do it please i want to execute the following code
i have created a subdomain is there anything else i need to do to make it go live Just to clarify. When were you able to create the sub-domain? earlier about 4 hours ago I see your pathing appears to be correct #!/usr/bin/perl based on this but could you please allow the sub-domain to propagate(update)? how long will that take? Please give it 24 hours after you set the sub-domain. I'm having same problem with my normal domain protechflooring.co,uk i have uploaded a file index.html and it wont display on the site why won't it execute Give me a moment to check it out. But can I verify the account first? Please use the incoming pop-up to input the same credentials you use at portal.hostgator.com. CONFIRMED SIGN IN INFO Thanks for verifying the account. Is it okay if check out your file manager? yes do whatever you think is necessary please help I have spent 5 hours and still nothing i just want to execute a simple prescript so i can start developing it further, but i know nothing about servers, just know the language are you there ? I'm checking out the folders now. But some folders are missing. protechflooring.co.uk's folder appears to be missing. yes i thought that ! plus the other folders aren't responding at all its driving me insane! The reason on why http://protechflooring.co.uk/ is showing this error
is bcause the folder may have possibly been deleted or it's missing essential files. Did you make any recent changes on the folder of protechflooring.co.uk? never done anything to it i get same error for all sites unless i use wordpress but i need to use perl now And I've noticed the file uploaded under name quotemyfloor.protechflooring.co.uk is index.html.html. I've renamed it and i appears to be resolving when I load quotemyfloor.protechflooring.co.uk its working now Can you please try to clear the cache of the browser and attempt to load it again? i will try and upload the perl file Alright please do. As long as the path is followed as #!/usr/bin/perl there should be no issues.
i uploaded it to cgi bin is that right? hello world text displaying on the text no hello world text displaying on the site should i change permissions to 0755 Please give me a moment to check it out. no hello world and I've got permission set to 0755 and uploaded perl script to the server in CGI bin An index.php file needs to be uploaded along with the respective perl script in order for it to resolve. what needs to be in the file? the php file? is a blank file ok? will that do, if so I'll create the file and upload now!
Does it need to be next to the html file or in the cgi-bin or do I need to create a new folder for php? Unfortunately we cannot determine for certain here what would be inside the index.php and it needs to be within the cgi-bin. that's fine I will just put that, its just basic php. php and perl aren't the same anyway so i'm a bit confused why its like this, but I'll give it a go now. does the php needs specific permissions to execute? The permissions would be 755. done still only displaying the text from the HTML file I'm afraid no error messages, but nothing displayed i cant tell if its executing or not perl_script.pl file contains the following
Index.php is displaying the following
And index.html is displaying
only output I'm seeing on the screen is from the html file surely I should be seeing Hello World From the perl file and hello world from the php file as well??? its driving me nuts this We cannot really determine on what the particular content of the index.php file needs in order execute the perl file from our end as this is more of a web development side of your domain. As much as I wanted to help you out on this, we can't. For we are only covering the technical hosting problems of your domain this particular problem of yours is way beyond our reach. Hello, just checking in with you. Are you still with me? PHP is nothing to do with perl perl executes code by itself i shouldn't need php to execute it like if i was programming with java, i wouldn't need php its something to do with the server. the apache config file is probably not set right or something that perl script should execute The php file would allow the perl file to be read and executed. so can I not execute a perl file on your server with out finding a way how to get php to do it for me. bearing in mind the php file isn't executing anyway! i shouldn't need php for perl i haven't needed it before there must be a way to do this at your end? I'm confused The reason on why the php file cannot read or execute the perl is because the respective php file needs to be configured specifically for the perl file in question. But we cannot determine the specific configurations for it in order to be executed. As for the configurations we cannot determine which are the correct values from our end. I strongly suggest that you should contact a professional web developer regarding this matter for they are the ones who can help you with this all the way. I think its a server issue already i should not need php to run perl. it can be set up in the apache config file to accept perl code. you have access to the apache config file as I rent the server from you I may be wrong is there nothing you can do to help? Thank you for contacting HostGator support. 2018-02-18 Athanasius added code and paragraph tags
Back to
Seekers of Perl Wisdom
|
|