Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#795550
Hi,
ProcessMaker blocks anything placed in an unauthorized sub-directory of the /workflow/public_html directory, so/workflow/public_html/test/index.php will cause a problem.

You need to place your code file directly in the /workflow/public_html directory and it should work.

For example: /workflow/public_html/mycode.php
Is this still a bug at the moment ?

I have an index.php file which needs to call a lib in js/lib.js, is there any directories that I can put my files to ?

Many thanks,
Yuan
#795551
Hi,

It is not a bug, It is a security restriction that processmaker is set.

Open your .htaccess file in your public_html and you must see lines like these:
Code: Select all
<FilesMatch "\.(htaccess|php|ini|log|sh|inc|bak|config)$">
        Order Allow,Deny
        Deny from all
</FilesMatch>

<FilesMatch "^(app|sysGeneric)\.php$">
        Order Allow,Deny 
        Allow from All 
</FilesMatch>
This allow run only app.php and sysGeneric.php file.

You can change to this to run any php file in public_html:
Code: Select all
<FilesMatch "\.(htaccess|ini|log|sh|inc|bak|config)$">
        Order Allow,Deny
        Deny from all
</FilesMatch>

<FilesMatch "^(app|sysGeneric)\.php$">
        Order Allow,Deny 
        Allow from All 
</FilesMatch>
or change to this to run php files in a folder:
Code: Select all
<Directory full-path-to/test>
     <FilesMatch "(?i)\.(php|php3?|phtml)$">
            Order Deny,Allow
            Deny from All
    </FilesMatch>
 </Directory>
 
 or 
 
 <LocationMatch "/test/.*(?i)\.(php3?|phtml)$">
     Order Deny,Allow
     Deny from All
</LocationMatch>
Thanks
#795561
Hi Programmerboy,

Can I ask what's the difference between the locations of "c:/processmaker/workflow/public_html" and "c:/processmaker/shared/sites/workflow/public" where I put my index.php file in.

I have tried to put a index.php file in web-entry folder(the second url), what if I put it in the first sub directory , what could be the url for it?

Many thanks,
Yuan
#795565
Hi,

You can upload your php files in a process with "Public Files" menu. Then a folder with process's name Is created in "c:/processmaker/shared/sites/workflow/public" path. (When you create a web entry system do this automatically)

Therefore you can insert your php files like your "index.php" file manually in the "c:/processmaker/shared/sites/workflow/public/YOUR PRO_UID" and then can call them without login to program with this adderss : "http://your ip/sysworkflow/en/neoclassic/YOUR PRO_UID/YOUR PHP FILE".

Thanks

To convert MBOX to PST, start by downloading and i[…]

My Assignment Services stands out as one of the be[…]

Erectile Dysfunction, commonly known as impotence,[…]

Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]