Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Any idea? When I execute other php codes, it simply shows the codes instead of the graphic mode.
Please advice!
Thank you.
Regards
Edward Han
1. A parse error is a code, which php doesn't know. Or an unespected character....which can not be combined with other codes.
2. You say: When I execute other php codes, it simply shows the codes instead of the graphic mode.
It does mean that or: the php module for apache is not installed
or: something is wrong with the file types in your httpd.conf, or if you use apache2: commonapache2.conf
What apache version do you use ?
What distro ?
What php version ?
I've written a article, howto install apache php mysql mod_ssl
it can be found at: http://www.linuxaddicted.org/index.p...etarticle&id=2 and reffer to the install part of PHP in the manual.. there's also a way explained, how you can check whether PHP is installed and working or not ... I suggest that you should read the whole article. If you got any questions afterwards, let me know ...
and follow the procedure to install. [I have re-install a fresh new setup for this].
But I have encountered these errors:
After running this:
SSL_BASE=../openssl-0.9.7b ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=ssl --enable-shared=ssl
I try to make the binarys... and has the error shown as:
Entering directory '/usr/local/apache_1.3.27'
Entering directory '/usr/local/apache_1.3.27/src'
** No rule to make target 'all'. Stop
Leaving directory '/usr/local/apache_1.3.27/src'
*** [build-std] error 2
Leaving directory '/usr/local/apache_1.3.27
*** [build] Error 2
--------------
When installing PHP with the command:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --enable-versioning --with-mysql=/usr/local --enable-ftp --enable-bcmath --disable-debug --enable-memory-limit=yes --enable-track-vars
I have the following errors:
Sorry, I was not able to successfully run apxs. Possible reasons:
1. Perl is not installed {confirm that it is installed}
2. Apache was not compiled with DSO support (--enable-module=so)
3. 'apxs' is not in your path. try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
./configure: line 3215: /usr/local/apache/bin/apxs: No such file or directory
Configure: error: Aborting
When using make and install PHP, I have the errors:
*** No targets specific and no makefile found. Stop
*** No rule to make target 'install' Stop.
Please advice how I can install without errors for the above. I have not proceed further since it did not complete the above.
and follow the procedure to install. [I have re-install a fresh new setup for this].
But I have encountered these errors:
After running this:
SSL_BASE=../openssl-0.9.7b ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=ssl --enable-shared=ssl
I try to make the binarys... and has the error shown as:
Entering directory '/usr/local/apache_1.3.27'
Entering directory '/usr/local/apache_1.3.27/src'
** No rule to make target 'all'. Stop
Leaving directory '/usr/local/apache_1.3.27/src'
*** [build-std] error 2
Leaving directory '/usr/local/apache_1.3.27
*** [build] Error 2
When installing PHP with the command:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --enable-versioning --with-mysql=/usr/local --enable-ftp --enable-bcmath --disable-debug --enable-memory-limit=yes --enable-track-vars
I have the following errors:
Sorry, I was not able to successfully run apxs. Possible reasons:
1. Perl is not installed {confirm that it is installed}
2. Apache was not compiled with DSO support (--enable-module=so)
3. 'apxs' is not in your path. try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
./configure: line 3215: /usr/local/apache/bin/apxs: No such file or directory
Configure: error: Aborting
When using make and install PHP, I have the errors:
*** No targets specific and no makefile found. Stop
*** No rule to make target 'install' Stop.
Edward Han
--Sleepy-me-edit-my-post-again--
I see that you've typed "make all" instead of what's in the manual "make" right ? it complains that: ** No rule to make target 'all'. Stop
1. Cleanup the system and re-install all packages again. (incl source)
Cleaning source packages can be done by: /usr/src/www/apache then type "make clean"
No. I did not isssue make all. I followed your article and issue the command make. That is the error I have got. Anyway, I will re-install the entire RH8.0 again and see if I encounter the same error.
I will be back again after re-installation to let you know if there is still error.
No. I did not isssue make all. I followed your article and issue the command make. That is the error I have got. Anyway, I will re-install the entire RH8.0 again and see if I encounter the same error.
I will be back again after re-installation to let you know if there is still error.
Regards
Edward Han
Edward,
I did not mention re-install your system, but only the packages and sources of the packages.
Does it give error messages afther the: SSL_BASE=../openssl-0.9.7 ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=ssl --enable-shared=ssl
?
I did not mention re-install your system, but only the packages and sources of the packages.
Does it give error messages afther the: SSL_BASE=../openssl-0.9.7 ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=ssl --enable-shared=ssl
?
No. It didn't give error. Only when I try the command: make
Then it gave the error as mentioned earlier.
I have re-installed the entire server. Will try again and see if the error appears when issuing the command: make
Please note. It is a rare day indeed when a person has to reinstall the entire system on Linux. Perhaps a major disk crash, but even then one should only have to "restore" the system from backups.
Most pieces of the system are generally independent. Note that this architecture sometimes leads to the "dependency" problems people run into, which means a person just has to add and configure the new required part. Such a minor hassle is far out-weighed by the stability (and resilience) of the Linux system.
I am new to Linux and get very frustrated as my Web Server went down [crashed] and have to re-install the entire server. This server was installed by another person and can't be contacted so I have to do it all by myself. Indeed it is a very tough task as I completely have no knowledge of Linux. After numerous installation, I am getting a little passion out of it as I am impressive with it though I am still unable to get it running and working as it should be in the first place.
Anyway, I am still in the progressing of re-installing the entire server in accordance to Dave's article and see if my php can login to the mysql database. This is my 12 times of re-installing since the beginning of this week [Monday] and hopefully I can restore it to run before the end of this week.
This time, I hope I will not encounter any error with the re-installation.
I have tested with my database, it still shows the codes.
Arrggghhh! How do I resolve this??? I thought after re-installing without errors, I will be able to get the system up. But again, I am disappointed!
Also, I have installed the Webmin, it seems like the path for MySQL Server and Apache Server are not the same. So, do I use symbolic link for both of them if I want to use them to do changes? Or what do you recommend for remote web browser editing software ? Please advice.
I have tested with my database, it still shows the codes.
Arrggghhh! How do I resolve this??? I thought after re-installing without errors, I will be able to get the system up. But again, I am disappointed!
Also, I have installed the Webmin, it seems like the path for MySQL Server and Apache Server are not the same. So, do I use symbolic link for both of them if I want to use them to do changes? Or what do you recommend for remote web browser editing software ? Please advice.
Regards
Edward Han
First congratulations!
Second .. you say: But when I do the index.php for the <? phpinfo(); ?>, it didn't show up."
Hmm do you see only the code ?
Does the php.ini exists in /usr/local/apache/conf ?
if not do: locate php.ini (it might also be located in /etc/apache) then copy php.ini to /usr/local/apache/conf/
Stop and start the server ...and try again.
Personally I'm not using any software to administrate Apache, for MySQL I use phpmyadmin ....:-P
Originally posted by daveo First congratulations!
Second .. you say: But when I do the index.php for the <? phpinfo(); ?>, it didn't show up."
Hmm do you see only the code ?
Nope. I see a blank screen. But if I look into the source, I can see the codes.
Does the php.ini exists in /usr/local/apache/conf ?
if not do: locate php.ini (it might also be located in /etc/apache) then copy php.ini to /usr/local/apache/conf/
Yes. I have copied the php.ini from /etc/php.ini to the /usr/local/apache/conf/
Stop and start the server ...and try again.
Personally I'm not using any software to administrate Apache, for MySQL I use phpmyadmin ....:-P
Okay. If I want to do the same as you, can I let it auto starting the necessary stuff like executing httpd [apache server], mysql without doing it manually like what I am doing now ?
2. Yes you can. I thought you're running redhat huh?. To configure the httpd service to start up at boot time using an initscript utility, such as /sbin/chkconfig, /sbin/ntsysv, or the Services Configuration tool program. I thought that mysql can be added also this way ...correct me if i'm wrong.
Hope that all works for you now..[sleepy me edit again]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.