PHP 5.4 and Zend Guard Loader installation issues, help!

General discussion on PHP
Post Reply
asdf3680
Posts: 4
Joined: Thu Jul 23, 2015 10:56 pm

PHP 5.4 and Zend Guard Loader installation issues, help!

Post by asdf3680 » Thu Jul 23, 2015 10:58 pm

Hello,
I am wondering if someone could help me troubleshoot Zend Guard Loader.
Using:
ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
PHP 5.4.16
CentOS 7

I added the ZendGuardLoader . so to /usr/lib64/php/modules
I added /etc/php.d/ZendGuard.ini containing:
zend_extension=/usr/lib64/php/modules/ZendGuardLoader . so
zend_loader.enable=1

I restart httpd (also tried rebooting the whole server)

When I run 'php -v' I get:
PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies

However, on the phpinfo() webpage, there is no section for Zend Guard Loader. The software I am trying to get working also says there is no Zend Guard Loader installed.

In the phpinfo() webpage, it does successfully state that it is reading /etc/php.d/ZendGuard.ini successfully. I definitely have the correct php.ini file (/etc/php.ini)
I tried adding the two lines to the php.ini file instead, but it still does not work...

Please help!

asdf3680
Posts: 4
Joined: Thu Jul 23, 2015 10:56 pm

Re: PHP 5.4 and Zend Guard Loader installation issues, help!

Post by asdf3680 » Fri Jul 24, 2015 8:06 pm

Issue is solved.
For anyone else having the issue, selinux needs to be disabled.

sudo nano /etc/selinux/config
SELINUX=disabled
sudo reboot

arsl554
Posts: 1
Joined: Wed Jul 29, 2015 12:06 pm

Re: PHP 5.4 and Zend Guard Loader installation issues, help!

Post by arsl554 » Wed Jul 29, 2015 12:15 pm

please sir help me
Every time I hit the submit button to process this code in my webpage it goes to the Object Not Found (404 error) page. It has happened in a few of my scripts and i don't know the source of the problem of whether its my localhost(Xampp) or my code.
<html>

<head>
<title>Emp_Registration</title>
<body>
<form method='post' action='Emp_Registration'>
<table width="500" border='5' align='center'>
<tr>
<th bgcolor="orange" colspan="7" align="center">Emp_Registration</th>
</tr>
<tr>
<td align="right">Name</td>
<td><input type='text' name='emp_name'>
</tr>
<tr>
<td align="right">Address</td>
<td><input type='text' name='emp_address'>
</tr>
<tr>
<td align="right">City</td>
<td><input type='text' name='emp_city' >
</tr>
<tr>
<td align="right">Salary</td>
<td><input type='text' name='emp_salary'>
</tr>
<tr>
<td align="right">Phone</td>
<td><input type='text' name='emp_phone'>
</tr>
<tr>
<td align="right">Gender</td>
<td><select name='emp_gender'>

<option value='Male'>Male</option>
<option value='Female'>Female</option>
</tr>
<tr>
<td align='center' colspan='7'><input type='submit' value='submit' name='submit'></td>
</tr>
</table>
</form>
</body>
</head>
</html>
<?php
$servername = "localhost";
$username = "root";
$password = "1234";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);

}
if(isset($POST['submit']))
{
$name=$_POST['emp_name'];
$address=$_POST['emp_address'];
$city=$_POST['emp_city'];
$salary=$_POST['emp_salary'];
$phone=$_POST['emp_phone'];
$gender=$_POST['emp_gender'];

$sql="insert into e_registration(emp_name,emp_address,emp_city,emp_salary,emp_phone,emp_gender)
VALUES('$id','$name','$address','$city','$salary','$phone','$gender')";

if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql. "<br>" . $conn->error;
}

$conn->close();
}
echo "Connected successfully";
?>

mark397
Posts: 87
Joined: Thu May 30, 2013 6:12 pm

Re: PHP 5.4 and Zend Guard Loader installation issues, help!

Post by mark397 » Wed Jul 29, 2015 9:12 pm

arsi554: For future reference this is a new topic, so should be a new thread. That being said, when you submit the script the URI becomes whatever is in the action attribute of the form tag. Do you have a file named "Emp_Registration"? This should point to your form action script, which should be something like "Emp_Registration.php". For further reading see W3Schools Form Tag. If you still can't solve it please start a new thread.

Post Reply