phreeze icon indicating copy to clipboard operation
phreeze copied to clipboard

Builder not working

Open deviation56 opened this issue 10 years ago • 13 comments
trafficstars

After entering database info into builder, I'm gettting:

The requested URL /phreeze/builder/analyze was not found on this server.

deviation56 avatar Jul 15 '15 02:07 deviation56

that's a problem with mod rewrite not being enabled on the server for that directory

jasonhinkle avatar Jul 15 '15 04:07 jasonhinkle

i checked my httpd.conf file and mod_rewrite.so is definitely enabled and allowoverride is set to all. i've also tried uploading the current version oh phreeze that's on github to a server where older versions of phreeze were working and i'm having the same issue. any other possible ideas? thank you for your time.

deviation56 avatar Jul 15 '15 17:07 deviation56

if you search the issues for "404" or "file not found" in the issue tracker here, there are a few solutions that others have posted.

I can pretty much tell you it will come down to a mod_rewrite configuration issue, though. If there were an issue with the phreeze libs then you would either get a 500 error or this page: screen shot 2015-07-15 at 2 01 49 pm

jasonhinkle avatar Jul 15 '15 19:07 jasonhinkle

Okay I will take a look at the other solutions, thank you. One more thing I noticed is that for whatever reason, maybe related to the above problem, the builder is completely unstyled. Not that this is a huge deal to me lol, but I thought it may be indicative of some other problem. I downloaded the zip from github then extracted it directly to my server- any ideas why it would be doing this?

You can see what I mean at: http://www.devtechnica.com/rcs/builder

Thanks again.

deviation56 avatar Jul 15 '15 22:07 deviation56

Ah, I think the cause is that the app isn't in the expected location "phreeze/builder". If you go into phreeze/builder/_machine_config.php there is a line that looks like:

GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'phreeze/builder/';

You can replace that line and update the root url, for example:

GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'rcs/builder/';

Or if that doesn't work, then hard-code the line entirely:

GlobalConfig::$ROOT_URL = 'http://www.devtechnica.com/rcs/builder/';

I suspect that will fix it.

jasonhinkle avatar Jul 16 '15 01:07 jasonhinkle

It certainly did! Now I (hopefully) only have one more question, upon building the app I'm getting this error (I suspect it's a file permissions issue but I'm not sure what needs to be changed):

file_put_contents(G:\PleskVhosts\devtechnica.com\httpdocs\rcs\builder/temp\wrt55a720cc6eba84_05628389): failed to open stream: Permission denied in smarty_internal_write_file.php at line 42

Thanks again for your time!

deviation56 avatar Jul 16 '15 03:07 deviation56

I should add that the "temp" folder in builder is chmod 777.

deviation56 avatar Jul 16 '15 22:07 deviation56

Hello, Im at the same point of generating and an error of

Oh Snap! file_put_contents(/var/www/html/phreeze/builder/temp/wrt55e7bf5749e999_80930558): failed to open stream: Permission denied in smarty_internal_write_file.php at line 42

I did an echo of the variable used in the line 42 and its /var/www/html/phreeze/builder/temp/wrt55e7bf5749e999_80930558

I added permissions (chmod 777) to the temp folder but nothing changes....

This is a CentOS 7 with PHP Version 5.4.16

Server: Localhost via UNIX socket Server type: MariaDB Server version: 5.5.44-MariaDB - MariaDB Server Protocol version: 10

Apache/2.4.6 (CentOS) PHP/5.4.16
Database client version: libmysql - 5.5.44-MariaDB
PHP extension: mysqli Documentation
PHP version: 5.4.16

What other folder can be having the permissions issue ? Thanks!

diegolaz avatar Sep 03 '15 03:09 diegolaz

I was never able to resolve the issue- the only thing that seemed to solve it and I have no idea why was switching to a different web host / VPS provider. If you find out anything further please do let me know.

 

Regards

deviation56

----- Original Message -----
From: diegolaz [email protected]
To: jasonhinkle/phreeze [email protected]
Cc: deviation56 [email protected]
Sent: Wednesday, September 02, 2015 8:44 PM
Subject: Re: [phreeze] Builder not working (#213)

Hello, Im at the same point of generating and an error of

Oh Snap!
file_put_contents(/var/www/html/phreeze/builder/temp/wrt55e7bf5749e999_80930558): failed to open stream: Permission denied in smarty_internal_write_file.php at line 42

I did an echo of the variable used in the line 42 and its /var/www/html/phreeze/builder/temp/wrt55e7bf5749e999_80930558

I added permissions (chmod 777) to the temp folder but nothing changes....

This is a CentOS 7 with PHP Version 5.4.16

Server: Localhost via UNIX socket
Server type: MariaDB
Server version: 5.5.44-MariaDB - MariaDB Server
Protocol version: 10

  Apache/2.4.6 (CentOS) PHP/5.4.16

Database client version: libmysql - 5.5.44-MariaDB PHP extension: mysqli Documentation PHP version: 5.4.16

What other folder can be having the permissions issue ?
Thanks!


Reply to this email directly or view it on GitHub.

deviation56 avatar Sep 03 '15 19:09 deviation56

It must be something with the permissions for that host, I can't say for sure what their setup is. But essentially there needs to be a writable folder. You can change location of these folders in builder/_app_config.php

jasonhinkle avatar Sep 03 '15 19:09 jasonhinkle

In my case is a local server, so I can change the permissions... /var/www/html/phreeze/builder/temp/ has 777 is it possible that the temporary subfolder /var/www/html/phreeze/builder/temp/wrt55e7bf5749e999_80930558 is not created with those permissions? can that be chantged?

diegolaz avatar Sep 08 '15 13:09 diegolaz

In the end, it worked using

chcon -R -t httpd_sys_content_rw_t /path/to/www/dir/for/rw

diegolaz avatar Feb 15 '16 04:02 diegolaz

cool thanks for following up @diegolaz

jasonhinkle avatar Feb 15 '16 16:02 jasonhinkle