For David Powers - Apache 2.2 and php 5.2. Virtual hosts
Hi David,
I have updated to the latest Apache and PHP
Apache 2.2 and php 5.2. Must easier instal,
But now I'm setting up Virtual hosts to make it easier to use
php
includes and DW templates.
I have followed instructions on page 86 of above book, but I
can't
find the section NameVirtual Host on Apache's httpd.conf and
it is
much shorter than 950 lines.
Malcolm N_
~Malcolm N....
~
On Sun, 21 Jan 2007 11:49:47 -0000, "Dave Buchholz"
<[email protected]> wrote:
>Malcolm,
>
>a different David I know but you will find an updated
tutorial on the "real"
>David's site here
http://foundationphp.com/tutorials/apache22_vhosts.php
Many thanks David - I had found his revised tutorial on
installing
Apache - but I must have missed the bit on virtual hosts.
That's great - I've not got all my sites working as virtual
hosts (:-)
Now to play with relative links / links to php include files
in
templates. !!!
I'm going to try to get headers, footers and nav panels etc
out of the
main template(s), and do what Murray has been nagging
everyone to do
for ages.....
I wasn't getting on well with that with before !! - standby
for more
questions.
I had to read two of David's excellent books about three
times - eh !.
Malcolm
~Malcolm N....
~
Similar Messages
-
Hello,
I have a Customer who wants to develop an application with IAS 9.0.4. There should be an Integration of PHP 5 as Apache module mod_php (using the following PEAR packages)
- DB
- DB_LDAP
- Auth
- Config
- File
- Log
- XML_Serializer
and additional Apache modules mod_ssl and mod_dav should also be used.
Has somebody done something similar.
I know that this is not official supported, but I just wan t to know if there are technical traps or bugs which could be show stopper.
thanks in advance for your help
MartinRecent traffic on php.internals makes me think the note in
http://www.php.net/manual/en/install.apache2.php
"Do not use Apache 2.0 and PHP in a production environment
neither on Unix nor on Windows." is still valid.
-- CJ -
David,
Hope you having a good break from here - as you've not been
around for
a few days.
When you are back - I need a little help please
~Malcolm N....
~> Come to think about it - Murray seemed to make the move
to using php
> only a few months ago - and given his enthusiasm for
SSI's maybe this
> tells something about the next release - or maybe I'm
reading too much
> between the lines (:-))
You're looking for deep inner meaning in a shallow bowl, I'm
afraid! 8)
Templates are part of DW and will be for a long time. And
personally, I
have no problem with includes in DW templates.....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Malcolm N_" <[email protected]> wrote in message
news:[email protected]...
> On Sat, 27 Jan 2007 19:38:04 +0000, David Powers
<[email protected]>
> wrote:
>>
>>I'll wait for the summary. The basic thing to
remember about include()
>>is that it expects a relative path, an absolute path,
or for the file to
>>be in the PHP include path.
>
> Thanks David - at the moment things are under control,
but I haven't
> altered much of the site with DW.
>
>> Things get complicated if you use includes
>>with Dreamweaver templates.
>
> Yes - well DW has been good at controlling some tricky
things to date,
> I hope that the next release makes using includes within
simple
> Template's a little easier.
>
> After all the Adobe Community Experts have been pushing
the use of
> SSI's very strongly in the last couple of years, telling
us to abandon
> tables, and complex templates (:-))
>
> Come to think about it - Murray seemed to make the move
to using php
> only a few months ago - and given his enthusiasm for
SSI's maybe this
> tells something about the next release - or maybe I'm
reading too much
> between the lines (:-))
>
> --
>
> ~Malcolm N....
> ~ -
Question for David Powers re file 'quotations.sql'
It would appear from the first few lines of this file (shown
below) that it
first checks if a table "quotations" already exists, and if
so deletes it. Then
it creates a new version, and populates it with the following
data.
Is this correct?
Clancy
-- Table structure for table `quotations`
DROP TABLE IF EXISTS `quotations`;
CREATE TABLE `quotations` (
`quote_id` int(10) unsigned NOT NULL auto_increment,
`quotation` varchar(255) NOT NULL default '',
`first_name` varchar(30) NOT NULL default '',
`family_name` varchar(30) NOT NULL default '',
PRIMARY KEY (`quote_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- Dumping data for table `quotations`
INSERT INTO `quotations` VALUES (1, 'My disability is ......'
ClancyClancy wrote:
> I thought so. As the sql file redefines the table, is it
necessary to define
> the table at all before running the file?
The purpose of the preceding section is to teach you how to
define a
table. If all you're interested in is copying my table
structure, feel
free to do so. However, I believe in the principle of
teaching a man to
fish, rather than giving a man a fish.
> I have been thinking about how to set up a database for
my photo album, and
> wondering how to order it. If I have a text file, like
'quotations.sql', it
> looks as if the easiest way to change the order of the
photos is to swap the
> lines in the text file, and then reload the whole
database.
If that's your conclusion, then I'm afraid that you have
failed to
understand the fundamental principles of how a database
works. The order
in which records are entered is totally irrelevant. You use
SQL to
display them in whichever order you require.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Hi,
I have used your method for a news blog from PHP for
Dreamweaver 8.
When no image is selected, firefox does not display the image
container with the red X.
However, most of our users are still using IE6.
In IE6 when no image is used it shows an image holder with
the red x in it.
Is there a way to remove the image place holder if no image
is displayed?
Also when no caption is used, in all browsers you get a
"Caption here" in place of the caption.
cheersMacnimation wrote:
> As a by the way, I also have the Essential Guide to
Dreamweaver with CC, AJAX
> and PHP and bwtween them I get most help.
Thanks. That's nice to know.
> Do you know of or are you planning a future book to
build applications other
> than Blogs and Photo Galleries, because it seems that
nearly all books on Web
> developement whether it is PHP, ASP or Coldfusion seem
to concentrate on these
> applications only.
I suspect that's because they involve basic database
techniques.
Beginner-level books sell more than advanced ones, mainly
because anyone
who moves beyond the beginner level is usually fairly capable
of
tackling more complex projects without the assistance of a
book.
Anyway, the ideas you have suggested will certainly give me
something to
think about for future books. I'm currently putting the final
touches to
a CS4 book, but it doesn't cover the sort of area you're
looking for.
> I discussed this last year at Adobe MAX in Barcelona and
alot of people agreed
> that some more diverse applications would be useful.
I'll be in Milan in
> December also......
I'm hoping to go too, but haven't made a firm decision yet.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Video2Brain question for David Powers
Hi David (and anybody else wanting to read this), I have a number of projects where I am being asked to create mobile apps with HTML5 packaged through phone gap, but I am also being asked to include a CMS for ease of editing. I can create the CMS no problem, and I can create the the mobile app too, but I have no idea of how to marry a native app with a remote database so the app's contents stays up-to-date. I mainly need to pull data, but also insert data on occassions. If I can get the pulling of data to work, that will help me immensely.
My question to you David is: Do any of your Video2Brain courses cover this kind of subject?
If anybody else knows of any tutorials on the net, or in books that cover this subject, I'd love to hear about them.
I am assuming it's not important, but just in case it is, I am using DWCS6, MySQL and PHP
Thanks.
MatPhoneGap creates native apps using HTML, CSS, and JavaScript. It does not support PHP or any other server-side technology.
If you want to communicate with a remote database, you need to use JavaScript to send an Ajax request to the database, which needs to send the response formatted as XML or, preferably, JSON. You then use the success callback function of your Ajax request to display the results. It's also possible to store data on the mobile device using the Web SQL API, which uses JavaScript rather than PHP to communicate with the database.
My video2brain courses don't go into this level of detail. My book, Adobe Dreamweaver CS5.5 Studio Techniques: Designing and Developing for Mobile with jQuery, HTML5, and CSS3, has a fully worked example of creating a local database on the mobile device using Web SQL, but it doesn't cover accessing a remote database.
There's an online tutorial by Raymond Camden about synchronizing remote and local databases with a PhoneGap project at http://css.dzone.com/articles/adding-database.
There's also a very detailed article in the Adobe Developer Connection by Andrew Trice about connecting a PhoneGap app to a database in the cloud at Database.com: http://www.adobe.com/devnet/phonegap/articles/phonegap-apps-powered-by-developercom.html.
I haven't tested the code in either article, but both authors are very reliable.
If you don't have any experience of using Ajax, I recommend using jQuery. It makes Ajax communication very simple. On the PHP side, use json_decode() and json_encode() to handle the incoming and outgoing data. -
Hi David has helped so much and I have read two books but am
stuck on one thing.
You gave me a solution for submitting forms and validating
with the inserted results returning, and I wrote ages ago saying
the solution worked. It really did but then stopped. So I have been
going through the Foundation Dreamweaver book for Dreamweaver 8
even though I am using Dreamweaver mx 2004.
I have gone through everything again ( well many times ) and
I have it working again except that the form will not go anywhere.
I will insert the code and see if you can tell me why. I
would really like to understand so that I can continue to make many
forms and have the correct validation.
Thank you for your time, and I love the book!Thanks David I have had a look on Google and read about all
the different types of patterns you can use - quite a lot.
One last question on this subject of email and then I think
my new directory will be ready (apart from design).
If I am wanting to send the form above with contents as an
email to myself on submission, should I place the mail()
information just above the new location:
$to = "";
$subject = "";
$message = "";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: ";
mail($to, $subject, $message, $headers);
$insertGoTo = "signin.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
$_POST = array();
?>
The email should only fire off when all errors have been
cleared, but will there be a problem with the braces I have placed
here.
I understand the logic of the braces but am I breaking
Dreamweaver's code too much?
Hope this makes sense. I was aiming to place the mail() code
above the error checking but thought it had to make its way past
that first before sending.
Thank you so much I am learning something from here everyday.
It's a great forum. -
I am attempting to upload files using the zend _file_transfer system from cs5 training from the source.
On trying to upload to a remote server I am having trouble with the destination setting (C:/upload_test) in the example, please could you point me in the right direction for the an example of this setting for a remote file transfer
Also do I have to construct a connection file to activate a Ftp file transfer?
David Woolston>I am on windows platform
Who is your host? When you checked your host path in your host control panel, what did it say?
>i have assumed (may be incorrectly) that the purpose of the exercise was to upload to a remote site (ie my website)
That is correct.
>Of course that upload might take place on a computer that does not have DW installed (an internet cafe for example)
That's irrelevant. DW is just the tool you are using to build your site. The site runs on your hosting accounts servers. This includes the php scripts you are working with.
>I have uploaded all files necessary for the operation, when i click upload it returns no such directory exits.
Do you have a url we can check? What destination are you specifying in zend code?
>This made me suspect that I would need to construct a ftp file transfer connection file to satisfied username, password , connection address etc
The exercise you are dealing with is using http file transfer. This has nothing to do with FTP. You do not need FTP for this, other than using it to move your source code from your local client to your server. -
Compiling Apache 2.2 and php 5.2 from source on Arch
Hi there
Wanting to compile Apache 2 with PHP 5 on my Arch server. I figure this must be frequently done by people out there wanting more control over how their servers are setup, and was wondering if anyone had some good documentation for this? If none exists I'm keen to work on putting it up on the Arch Wiki.
I've compiled apache httpd-2.2.16 from source already, and have it running nicely.
Apache compile options were:
./configure --prefix=/usr/local/apache \
--enable-rewrite --enable-ssl --enable-so \
--enable-mime-magic --enable-suexec \
--enable-static-rotatelogs \
--disable-imap --disable-userdir --enable-cgi \
--disable-dav \
--disable-proxy-connect --disable-proxy-ftp --disable-proxy-http --disable-proxy \
--disable-authnz-ldap
$ /usr/local/apache/bin/httpd -Vvv
Server version: Apache/2.2.16 (Unix)
Server built: Sep 6 2010 06:10:41
Server's Module Magic Number: 20051115:24
Server loaded: APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Now installing PHP from source is proving to not work out so easily.
root@server: ~/source-programs/apache/httpd-2.2.16/php-5.2.14
$ ./configure with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php
configure: warning: with-apxs2=/usr/local/apache/bin/apxs: invalid host type
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /bin/sed
checking host system type... with-apxs2=/usr/local/apache/bin/apxs
checking target system type... with-apxs2=/usr/local/apache/bin/apxs
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for icc... no
checking for suncc... no
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking whether ln -s works... (cached) yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking for bison version... (cached) invalid
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking for flex version... (cached) invalid
configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: )
checking for re2c... no
configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking whether to force non-PIC code in shared modules... no
checking whether /dev/urandom exists... yes
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no
I end up with the PHP bin files, but just can't get the module to compile.
$ /usr/local/apache/php/bin/php -v
PHP 5.2.14 (cli) (built: Sep 6 2010 05:37:45)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
Have tried to make Apache execute php bin via CGI without any luck, but I think I'd rather work on compiling PHP into a module properly.
Any help or pointers in the right direction would be greatly appreciated.
Thanks
Last edited by craig_nz (2010-09-08 08:07:13)Thanks for this!
Using:
./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--prefix=/usr/local/apache/php \
--disable-cgi
--enable-so \
--enable-rewrite \
make
libtool --finish /root/source-programs/apache/httpd-2.2.16/php-5.2.14/libs
In /usr/local/apache/modules I get:
libphp5.a libphp5.la
No libphp5.so yet but closer.. Also looking at how I can use ABS just to compile php. -
Question for David Powers: specifying CSS
Each of the pages in your East-West seasons demonstration
website uses a
somewhat complex indirect method for specifying the CSS rules
applying to the
page.
The page itself contains the php statement:
<?php include('style_rules.php'); ?>
Which invokes style rules.php, which in turn links in
basic.css, and imports
bluebells_01.css:
Style_rules.php------------------------------------------------
<link href="styles/basic.css" rel="stylesheet"
type="text/css"
media="screen" />
<style type="text/css">
<!--
@import url("styles/bluebells_01.css");
-->
</style>
This somewhat complex sequence appears to have exactly the
same overall effect
as the two lines:
<link href="styles/basic.css" rel="stylesheet"
type="text/css" media="screen" />
<link href="styles/bluebells_01.css" rel="stylesheet"
type="text/css"
media="screen" />
1. What is the reason for going through this two-step
process, rather than
simply linking in the two files?
2. Why is the second stylesheet imported rather than linked
in?
3. I gather that the only function of php in all this is to
enable the contents
of style_rules.php to appear in the original file as inline
code. Is this
correct?
ClancyClancy wrote:
> Each of the pages in your East-West seasons
demonstration website uses a
> somewhat complex indirect method for specifying the CSS
rules applying to the
> page.
>
> The page itself contains the php statement:
> <?php include('style_rules.php'); ?>
>
> Which invokes style rules.php, which in turn links in
basic.css, and imports
> bluebells_01.css:
>
>
Style_rules.php------------------------------------------------
> <link href="styles/basic.css" rel="stylesheet"
type="text/css"
> media="screen" />
> <style type="text/css">
> <!--
> @import url("styles/bluebells_01.css");
> -->
> </style>
> ---------------------------------------------------
> This somewhat complex sequence appears to have exactly
the same overall effect
> as the two lines:
>
> <link href="styles/basic.css" rel="stylesheet"
type="text/css" media="screen" />
> <link href="styles/bluebells_01.css" rel="stylesheet"
type="text/css"
> media="screen" />
>
> 1. What is the reason for going through this two-step
process, rather than
> simply linking in the two files?
If changes to the style sheet, styles/basic.css are made then
they would
update to every page which uses the php 'include'. I'm
guessing that
David is NOT using a template based site, which would
effectively do the
same thing.
> 2. Why is the second stylesheet imported rather than
linked in?
'import' is used so that Netscape Naviagtor 4 only gets the
page content
and no css styling. A lot of css styling is not compatible
with that
browser. Its generally accepted for those developers that
still support
that browser only the content is good enough to provide.
> 3. I gather that the only function of php in all this is
to enable the contents
> of style_rules.php to appear in the original file as
inline code. Is this
> correct?
No, that answers in the response to your first question.. -
Need help regarding Apache httpd.conf and PHP setup.
Hi,
I am facing problem setting up my PHP and apache setup. I have installed Apache2.2 Root path = C:\Program Files\Apache Software Foundation\Apache2.2
I have also installed PHP in my C:\PHP drive earlier. I moved this PHP folder to C:\Program Files\Apache Software Foundation\Apache2.2 just to keep all things at one place.
I have copied php5ts.dll at 4 locations - C:\Program Files\Apache Group\Apache2 \bin , %SYSTEMROOT%\System32, %SYSTEMROOT%\system and %SYSTEMROOT%. I have also added these paths in Environment variable 'PATH'.
In httpd.conf file entries are as follows:
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
I have added these 3 lines as
LoadModule php5_module php/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
When restarting apache http server I get message as:
httpd.exe error ...... cannot load C:\Program Files\Apache Software Foundation\Apache2.2\php\php5ts.dll into the server. The specified module could not be found.
I have checked that php5ts.dll DLL exist at above path. Please help me out urgently.Sorry I don't have Windows available to check the paths. With recent versions
of PHP I never copied files out of the php source directory.
Make sure the Oracle 10g Instant Client is in your PATH environment variable.
You could try using the PHP Windows MSI installer.
cj -
Question for David Powers - Zend Framework
Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.
Silken_thread wrote:
Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.
Simple. You upload the Zend Framework to your remote server, and point $library to the new location.
It's covered in Lesson 13 of the book (pages 468-469). -
David Powers cs5 with php...Zend
This one is aimed for David Powers. We are using your book for my advanved programming class. I continually have problems because they had us buy a domain instead of the one the book does it. At this point I'm on page 222ish, installing Zend. Obviously I'm using dreamweaver and my domain is with godaddy.com. I'm doing the section where you are are installing the library. I've got the library.php with no errors, I'm connected to my domain, and I have the zend file inside my local site folder. I've tried in the C drive but I cotinually get the same error:
Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/79/7340479/html/library.php on line 4
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1. 11.4-minimal\library') in /home/content/79/7340479/html/library.php on line 4
I've tried putting the zend folder in c, desktop, in side local site folder and same thing everytime. Any help would be appreciated.Re: David Powers cs5 with php...Zend
Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.
First, are you trying to install zend at godaddy?
Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines
I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...
the code I'm using is:
<?php
$library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library';
set_include_path(get_include_path() . PATH_SEPARATOR . $library);
require_once('Zend/Loader/Autoloader.php');
$loader = Zend_Loader_Autoloader::getInstance();
if ($loader) {
echo 'OK';
} else {
echo 'We have a problem';
I'm followed the book step by step but...
when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site. -
Following the book in chapter 2 I think Ivé followed everything correctly, but have encluded all the things I've edited below.
I was using wamp with no problems but after trying to set up a virtual host and now using xampp im abit lost its probabsomething stupid but I can find the prob.
(This post is abit long and dragged out so I used some colour to try ease the reading..)
When I try to view a dynamic page in live view or in firefox I get the following error:
**when using:
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
result:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
thegoodlife
2009/10/13 12:47:48 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
*when using:
<VirtualHost *:80>
DocumentRoot c:/htdocs
ServerName localhost
</VirtualHost>
result:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
thegoodlife
2009/10/13 12:32:58 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
This is what I've done, blue indicating where I have or was meant to edit, red being the relivant context. (hope it helps )
1. Created a new folder called htdocs (C:\htdocs)
2. Changed the pathname to:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "C:/htdocs"
and
# This should be changed to whatever you set DocumentRoot to.
<Directory "C:/htdocs">
3. Created vhosts folder; with a sub-folder called thegoodlife (C:\vhosts)
4. entered new vhost:
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 dwcs4
127.0.0.1 thegoodlife
127.0.0.1 bin.errorprotector.com ## added by CiD
5.It says uncomment the command by removing the #, (Supplemental configuation.), but this is the origional file; already uncommented?
# Real-time info on requests and configuration
Include "conf/extra/httpd-info.conf"
# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"
# Distributed authoring and versioning (WebDAV)
Include "conf/extra/httpd-dav.conf"
6.Set the permissions and changed the code as instructed, unsing (c:/xampp/htdocs) as advised.
# You may use the command line option '-S' to verify your virtual host
# configuration.
<Directory C:/vhosts>
Order Deny,Allow
Allow from all
</Directory>
# Use name-based virtual hosting.
##NameVirtualHost *:80
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/dwcs4
ServerName dwcs4
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/thegoodlife
ServerName thegoodlife
</VirtualHost>
Then creating the site definition:
local root forlder: C:\htdocs\thegoodlife\
testing server folder: C:\vhosts\thegoodlife\
URL prefix: http://thegoodlife/
hope i've covered all area's where I could have gone wrongJust one more thing - the description of what i did while first Kernel appeared:
Happened 2 days ago. Wasn't turning it off for like a day, only sleep mode by closing it. Worked fine all day, wasn't doing anything, except for checking mail 2-3 times and having windows 7 virtual machine opened but doing nothing, everything was going fine. Then closed it without turning off.
Opened 3-4 hours later, everything was working fine for 30 minutes of checking mail, then Kernel appeared. After that pretty much everything i did is described in part 1-5.
Note: all the time MBP was connected to internet via wifi, so updates to both MBP and virtual machine of all programs were possible.
I only shared downloads and desktop folders, so windows couldn't have access to system folder of Mac Os.
Hope this might help...Thanks again. -
Zend optimizer and PHP startup: unable to load errors
I am finding some errors in the log for my site about zend
optimizer and PHP startup: unable to load dynamic library.
as far as I know, I have never used PHP and i have never done
anything with this zend optimizer. i need some help!
there are some references in there to some pretty strange
websites. my site is a wedding photography site!
thanks for any help.
here is the log:
[Fri Jun 06 13:33:44 2008] [error] [client 82.18.149.126] PHP
Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0, referer:
http://www.justiceandcompassion.com/
[Fri Jun 06 13:33:44 2008] [error] [client 82.18.149.126] PHP
Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0, referer:
http://www.justiceandcompassion.com/
[Fri Jun 06 13:33:45 2008] [error] [client 75.8.116.97]
Failed loading /home/vanity1/ioncube/ioncube_loader_lin_5.2.so:
/home/vanity1/ioncube/ioncube_loader_lin_5.2.so: cannot open shared
object file: No such file or directory, referer:
http://vanitytransformations.com/diamondt/index.php?option=com_fireboard&Itemid=57&func=sh owcat&catid=2&page=2
[Fri Jun 06 13:33:50 2008] [error] [client 80.82.139.143] PHP
Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0
[Fri Jun 06 13:33:50 2008] [error] [client 80.82.139.143] PHP
Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0
[Fri Jun 06 13:33:53 2008] [error] [client 62.50.73.8]
Request exceeded the limit of 10 internal redirects due to probable
configuration error. Use 'LimitInternalRecursion' to increase the
limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jun 06 13:33:53 2008] [error] [client 62.50.73.8]
Request exceeded the limit of 10 internal redirects due to probable
configuration error. Use 'LimitInternalRecursion' to increase the
limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jun 06 13:33:59 2008] [error] [client 200.30.148.234]
Failed loading /home/estudio5/ioncube/ioncube_loader_lin.so:
/home/estudio5/ioncube/ioncube_loader_lin.so: cannot open shared
object file: No such file or directory
[Fri Jun 06 13:33:59 2008] [error] [client 200.30.148.234]
Failed loading /home/estudio5/ioncube/ioncube_loader_lin_ts.so:
/home/estudio5/ioncube/ioncube_loader_lin_ts.so: cannot open shared
object file: No such file or directory
[Fri Jun 06 13:34:09 2008] [error] [client 82.18.149.126] PHP
Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0, referer:
http://www.otmatheist.com/
[Fri Jun 06 13:34:09 2008] [error] [client 82.18.149.126] PHP
Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0, referer:
http://www.otmatheist.com/
[Fri Jun 06 13:34:14 2008] [error] [client 82.18.149.126] PHP
Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0, referer:
http://www.otmatheist.com/2008/06/05/i-dont-want-my-kids-to-be-atheists/
[Fri Jun 06 13:34:14 2008] [error] [client 82.18.149.126] PHP
Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0, referer:
http://www.otmatheist.com/2008/06/05/i-dont-want-my-kids-to-be-atheists/
[Fri Jun 06 13:34:21 2008] [error] [client 75.8.116.97]
Failed loading /home/vanity1/ioncube/ioncube_loader_lin_5.2.so:
/home/vanity1/ioncube/ioncube_loader_lin_5.2.so: cannot open shared
object file: No such file or directory, referer:
http://vanitytransformations.com/diamondt/index.php?option=com_events&Itemid=37
[Fri Jun 06 13:34:21 2008] [error] [client 75.8.116.97]
Failed loading /home/vanity1/ioncube/ioncube_loader_lin_5.2.so:
/home/vanity1/ioncube/ioncube_loader_lin_5.2.so: cannot open shared
object file: No such file or directory, referer:
http://vanitytransformations.com/diamondt/index.php?option=com_events&Itemid=37
[Fri Jun 06 13:34:25 2008] [error] [client 38.100.8.10] PHP
Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0, referer:
http://www.google.com/search?sourceid=navclient&ie=UTF-8&rlz=1T4DMUS_enUS204US205&q=gideon +bible+ebay
[Fri Jun 06 13:34:25 2008] [error] [client 38.100.8.10] PHP
Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0, referer:
http://www.google.com/search?sourceid=navclient&ie=UTF-8&rlz=1T4DMUS_enUS204US205&q=gideon +bible+ebay
[Fri Jun 06 13:34:26 2008] [error] [client 70.241.173.162]
PHP Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0
[Fri Jun 06 13:34:26 2008] [error] [client 70.241.173.162]
PHP Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected
at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0
[Fri Jun 06 13:34:31 2008] [error] [client 70.241.173.162]
PHP Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0, referer:
http://doableevangelism.com/2008/04/16/dali-desi-and-doug-in-seattle/
[Fri Jun 06 13:34:31 2008] [error] [client 70.241.173.162]
PHP Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected
at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0, referer:
http://doableevangelism.com/2008/04/16/dali-desi-and-doug-in-seattle/
[Fri Jun 06 13:34:32 2008] [error] [client 65.214.44.28] PHP
Warning: PHP Startup: Unable to load dynamic library
'//home/offthema/sourceguardian/ixed.lin' -
//home/offthema/sourceguardian/ixed.lin: cannot open shared object
file: Permission denied in Unknown on line 0
[Fri Jun 06 13:34:32 2008] [error] [client 65.214.44.28] PHP
Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
'/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
try reinstalling the Zend Optimizer in Unknown on line 0..... What???
Maybe you are looking for
-
How to transfert all my data and config from 4 to 4s
Hello, Is there a "step by step" doc. On how to transfert all my data and config From one iphone 4 to a 4s without using outlook ( ex:for contacts ) etc... I don't get the ITunes method, sync direction etc... All my Iphone 4 Put into my knew Iphone 4
-
I am working with Dreamweaver 8 and Flash 8 and was wondering how to make a image gallery. What I need is an image gallery with upto 100 images in each category. I would like users to be able to search (say texture) and come up with the results. If P
-
Just purchased Creative Cloud and downloaded programs. The Photoshop CC 2014 stops working. I have not been able to get it to open and stay open. Suggestions? I have logged out of CC and logged back in but didn't make a difference.
-
Deleting damaged or incomplete file,application,etc.
Hello all, If you ever need help deleting a pesky file that is incomplete or damaged, just follow these simple instructions. 1. Locate file 2. Open Terminal (Finder -> Terminal) 3. Drag the file you are trying to delete into Terminal; this should ope
-
Problems in modifying Oracle page (.xml)
We need to add an item to the page /oracle/apps/pos/home/webui/PosHomeMainPG. We cannot do this using personalization, as there are no create items defined by Oracle. All the create items are for the tables in this page. We found webui/PosHomeMainPG.