I do the phpize..
When I reach the ./configure It tells me it can fins the php-config (configure: error: Cannot find php-config. Please use --with-php-config=PATH
)
I assume it means a file named php-config
I do ./configure --with-php-config=/usr/local/src/php5/php-5.3.5/scripts/ --enable-entities
Which points to that file's directory, but still, I get same error.
Itay Moav -Malimovka's questions
I am on Ubuntu,
Apache 2.2
Installed the fcgi via apt-get then removed it via apt-get remove.
Installed mod-ruby
configuration I added to Apache:
LoadModule ruby_module /usr/lib/apache2/modules/mod_ruby.so
RubyRequire apache/ruby-run
<Directory /var/www>
Options +ExecCGI
</Directory>
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
I have a file in the www
direcoty with puts 'baba'
I have other files in that directory, all accessible via Apache.
Test file has been chmod 777
In the browser I get 403
.
In Apache error log I get:
[error] access to /var/www/t.rb failed for (null), reason: Options ExecCGI is off in this directory
If I move this to a sub folder rubytest
and modify the relevant config to be:
<Directory /var/www/rubytest>
Options +ExecCGI
</Directory>
and making sure the directory has 755 permissions on it, it just try to download the file, as if it does not recognize the postfix *.rb any more
If I give directory and files 777 it fails:
usr/lib/ruby/1.8/apache/ruby-run.rb:53: warning: Insecure world writable dir /var/www/rubytest in LOAD_PATH, mode 040777 [Tue May 24 19:39:58 2011] [error] mod_ruby: error in ruby [Tue May 24 19:39:58 2011] [error] mod_ruby: /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in
load': loading from unsafe file /var/www/rubytest/t.rb (SecurityError) [Tue May 24 19:39:58 2011] [error] mod_ruby: from /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in
handler'
BUT, IF I USE *.rbx it works like a charm...go figure.
Since I have upgraded to php 5.3 I have issues with the session GC.
Seems he can't access the directory which is owned by root, Although I see sessions are being created there.
Is it safe to change the ownership of that directory to the Apache?
I have a lot of static pages, which include html files + js (SCORM packages).
I have dynamic pages, also with JS which talks to the static pages JS.
Static pages are being opened in an iframe, and we get them as-is from a third party (SCORM content), so no changes there are possible.
For performance sake, and centralization sake, we want to put all the static files on a dedicated server with lighthttp.
Problem: now the js in the dynamic pages (served via Apache) don't have permission to talk to the light-http hosted pages.
The domain is the same for both, the port is different.
Any suggestions on how to accomplish this.
Is open ldap a good solution to a centralized way to authenticate users on a web site?
Was it build in the web in mind?
From the documentation:
Use your favorite editor to edit the provided slapd.conf(5) example (usually installed as /usr/local/etc/openldap/slapd.conf) to contain a BDB database definition of the form:
database bdb suffix "dc=<MY-DOMAIN>,dc=<COM>" rootdn "cn=Manager,dc=<MY-DOMAIN>,dc=<COM>" rootpw secret directory /usr/local/var/openldap-data
But, my domain is either 127.0.1.1 or localhost,
What should I put instead of MY-DOMAIN and in COM ?